Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a django website deployed on a shared webhost. The shared webhost uses fastcgi.
I'm noticing that valid urls will randomly throw up http404 but as soon as I refresh will work again.
does anyone know why this may be?

* Update * Sys admins have culled logs for me and I think the following logs are examples of what is being generated by the issue:

Mon Oct 03 12:53:37 2011] [warn] [client my ip] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: valid url on site
[Mon Oct 03 12:53:37 2011] [error] [client my ip] Premature end of script headers: fs.fcgi, referer: valid url on site

all my googling only turned up issues that should always happen. not random, sporadic occurrences.
any suggestions?

share|improve this question

migrated from Dec 11 '11 at 17:03

This question came from our site for computer enthusiasts and power users.

do you have access to logs ? – ascobol Oct 3 '11 at 20:14
@ascobol kind of. shared host so rely on sys admins to cull them for me. new information in post – w-01 Oct 4 '11 at 7:25

I had this same fault but my config is different - Django behind uWSGI, behind Nginx.

However, in my case, it was cured simply be restarting the uswgi service:

$ sudo service uwsgi restart

Job done. I know this is an old question and I'm amazed to be only the 2nd person to have the problem in 5 years - but hopefully this will help someone :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.