Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » server connection dropped? IO Error? What's going on? [RSS Feed]

#1 Dec. 20, 2010 16:52:34

b.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


Foolishly posted this late last week, which is a tough time to get
help. Please forgive me for reposting, but I'm at my wit's end here.

What I've got is a very localized, yet apparently completely random
sort of IO error, or something else causing the server to drop out.
You can see an example here:http://gretschpages.com/forum/your-tunes/five-min-love-affair/36446/page1/On initial load, you'll probably see one or two static elements fail
to load.
If you hit reload or follow any link from that page, you'll either get
ALL static media fail to load, or the page will not load at all,
giving some sort of "server busy" message.

That topic will do it every time. Pretty much every place else on the
site will not. The server is not busy, it's something about that
topic, and the handful of others this thing has hit.

I can't find any commonality among the problem topics/posts. All other
posts/topics are fine.
If I copy all the info from the problem topic into a new one, it posts
fine.
If that user posts another topic, it works fine.

Server config is Nginx is handling static media and passing django
stuff over to Apache.

I don't see anything in the nginx or apache error logs, and nothing
looks off in the database, either.

Any suggestions on where to look or how to debug this?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 20, 2010 17:15:36

Dan F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


> That topic will do it every time. Pretty much every place else on the
> site will not. The server is not busy, it's something about that
> topic, and the handful of others this thing has hit.
>
> I can't find any commonality among the problem topics/posts. All other
> posts/topics are fine.
> If I copy all the info from the problem topic into a new one, it posts
> fine.
> If that user posts another topic, it works fine.
>
> Server config is Nginx is handling static media and passing django
> stuff over to Apache.
>
> I don't see anything in the nginx or apache error logs, and nothing
> looks off in the database, either.
>
> Any suggestions on where to look or how to debug this?

Just looking at your style.css file, it's got a weird (to my eye) line in it:

src: local('☺'),
url('/media/fonts/LeagueGothic/League_Gothic-webfont.woff') format('woff'),

Now - I know precisely nothing about font embedding and all that malarky, but
what are those 'funny' characters doing there - are they intentional? Could
they be confusing the browser, and preventing other stuff loading? (I'm viewing
in Firefox 3.6.13 btw)

Cheers,
Dan

--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com


--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 20, 2010 17:19:53

b.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


> Just looking at your style.css file, it's got a weird (to my eye) line in it:
>
>         src: local('☺'),
> url('/media/fonts/LeagueGothic/League_Gothic-webfont.woff') format('woff'),
>

Comes from fontsquirrel. As I recall, it forces the local load if the
font is available, or passes along to download if not.

I'm pretty sure it's nothing in my styles though, as it has only hit
about 5 pages out of about 50,000.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Dec. 20, 2010 17:26:13

Tom E.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


On Mon, Dec 20, 2010 at 4:52 PM, bax...@gretschpages.com
<mail.bax...@gmail.com> wrote:
> Foolishly posted this late last week, which is a tough time to get
> help. Please forgive me for reposting, but I'm at my wit's end here.
>
> What I've got is a very localized, yet apparently completely random
> sort of IO error, or something else causing the server to drop out.
> You can see an example here:
>http://gretschpages.com/forum/your-tunes/five-min-love-affair/36446/page1/>
> On initial load, you'll probably see one or two static elements fail
> to load.
> If you hit reload or follow any link from that page, you'll either get
> ALL static media fail to load, or the page will not load at all,
> giving some sort of "server busy" message.
>
> That topic will do it every time. Pretty much every place else on the
> site will not. The server is not busy, it's something about that
> topic, and the handful of others this thing has hit.
>
> I can't find any commonality among the problem topics/posts. All other
> posts/topics are fine.
> If I copy all the info from the problem topic into a new one, it posts
> fine.
> If that user posts another topic, it works fine.
>
> Server config is Nginx is handling static media and passing django
> stuff over to Apache.
>
> I don't see anything in the nginx or apache error logs, and nothing
> looks off in the database, either.
>
> Any suggestions on where to look or how to debug this?
>

If I load the page in chrome with its resource tracking debug tab
open, I can see that several files that are requested receive zero
sized responses. When I loaded the page, this was for (what looks
like) static files, which you say are being served by nginx.

I don't see how django gets involved in this, which is probably part
of the reason why you aren't getting any responses on this list. Try
asking on a nginx list.

As a wild stab in the dark, does it still happen when you turn
sendfile off in nginx ? If so, that points to an OS/nginx bug.


Cheers

Tom


http://wiki.nginx.org/HttpCoreModule#sendfile--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#5 Dec. 20, 2010 17:49:29

b.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


On Dec 20, 11:26 am, Tom Evans <tevans...@googlemail.com> wrote:
> On Mon, Dec 20, 2010 at 4:52 PM, bax...@gretschpages.com
>
> If I load the page in chrome with its resource tracking debug tab
> open, I can see that several files that are requested receive zero
> sized responses. When I loaded the page, this was for (what looks
> like) static files, which you say are being served by nginx.
>
> I don't see how django gets involved in this, which is probably part
> of the reason why you aren't getting any responses on this list. Try
> asking on a nginx list.
>
> As a wild stab in the dark, does it still happen when you turn
> sendfile off in nginx ? If so, that points to an OS/nginx bug.
>
> Cheers
>
> Tom
>

Tom, I initially thought it was an nginx thing as well, but I don't
believe so any more. I don't think that would explain why it fails on
this topic EVERY time, and every other topic NONE of the time. I think
the failure to load some static media is a sympton, not the actual
problem. Turning sendfile off did not change the behavior at all.

Plus I have no errors in my nginx logs. Problem is, I can't find
anything about that particular topic that would cause any problem.
That topic (and a couple of others) will error every time, while all
the other pages on the site don't, ever.

I do think whatever it is, it's very low in the stack. Maybe
middleware?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#6 Dec. 21, 2010 08:25:15

bruno d.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


On 20 déc, 17:52, "bax...@gretschpages.com" <mail.bax...@gmail.com>
wrote:
> Foolishly posted this late last week, which is a tough time to get
> help. Please forgive me for reposting, but I'm at my wit's end here.
>
> What I've got is a very localized, yet apparently completely random
> sort of IO error, or something else causing the server to drop out.
> You can see an example
> here:http://gretschpages.com/forum/your-tunes/five-min-love-affair/36446/p...
>
> On initial load, you'll probably see one or two static elements fail
> to load.

ATM I don't get anything at all. Tracking with firebug, response
status is ok (200), but the response body is empty. And I don't see
how one could help you debugging this without access to the code,
database etc. Have you tried dumping the database and running the app
on your own workstation using django's dev server ?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#7 Dec. 21, 2010 08:58:53

Dan F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

server connection dropped? IO Error? What's going on?


>
> ATM I don't get anything at all. Tracking with firebug, response
> status is ok (200), but the response body is empty. And I don't see
> how one could help you debugging this without access to the code,
> database etc.

FWIW, this is what I was seeing too.

Can you turn up debug logging on nginx? As Tom said, you might get more
pointers (even if it does turn out to be Django which - to be honest - seems
unlikely at this point) from the nginx list.

Cheers,
Dan

--
Dan Fairs | dan.fa...@gmail.com | www.fezconsulting.com


--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » server connection dropped? IO Error? What's going on? [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support