Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interrupted connections in 19.4.0+ on Heroku #1158

Closed
hheimbuerger opened this issue Dec 2, 2015 · 6 comments
Closed

Interrupted connections in 19.4.0+ on Heroku #1158

hheimbuerger opened this issue Dec 2, 2015 · 6 comments

Comments

@hheimbuerger
Copy link

(I know this bug report is short and incomplete but I'm low on time. Wanted to report it anyway, feel free to ask and I'll extend it when I can.)

I'm serving static files using whitenoise 2.0.6 and Python 2.7.10 on Heroku via gunicorn. This worked fine in gunicorn 19.3.0. When I upgrade to 19.4.0 or 19.4.1, these static files are only partially delivered.

Here's what it looks like accessing jquery-1.11.1.js with Chrome:

2015-12-02_2210

See how the content length differs from the actual delivered size and how the file is incomplete?

Here's what Heroku shows:

Nov 27 10:40:30 still-depths-9379 heroku/router: sock=backend at=error code=H18 desc="Server Request Interrupted" method=GET path="/static/js/libs/jquery-1.11.1.js" host=myapp.herokuapp.com request_id=63fdbac8-11f3-4725-88ed-be627d4fdd2b fwd="79.192.97.113" dyno=web.1 connect=1ms service=9ms status=503 bytes=291 
@benoitc
Copy link
Owner

benoitc commented Dec 4, 2015

it's probably a duplicate of #1156 can you try the fix there?

@hheimbuerger
Copy link
Author

@benoitc I see no indication that #1156 is related to this. What makes you think so?

@benoitc
Copy link
Owner

benoitc commented Dec 4, 2015

because static files may use sendfile. also both describe rhe same symptoms
imo. did you test the change?
On Fri, 4 Dec 2015 at 14:42, Henrik Heimbuerger notifications@github.com
wrote:

@benoitc https://github.com/benoitc I see no indication that #1156
#1156 is related to this.
What makes you think so?


Reply to this email directly or view it on GitHub
#1158 (comment).

@michaelgodshall
Copy link

I had the same problem and I was directed to this issue by Heroku support. I added --no-sendfile to the gunicorn command in my Procfile and the static files are working correctly now.

@benoitc
Copy link
Owner

benoitc commented Dec 6, 2015

@hheimbuerger sorry it was #1155 ?. Can you check with the latest master? @godshall should also fix your issue. Let me know

@hheimbuerger
Copy link
Author

@benoitc Ah yes, #1155 indeed sounds exactly like the issue I was having! Didn't have a chance to test the fix yet, but I'm very confident that this will cover my issue as well (I'm doing nothing special here at all really).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants