A few hours afterwards I noticed that my Django site was no longer
returning. The browser would just spin and timeout with some sort of
Apache based 500 error. To trouble shoot I took Django out of the mix
by clearing my .htaccess file and tried to hit a very simple hello.fcgi
file. Same issue. I have since removed the svn from the domain via
the panel, but the problem still persists.
As far as I can tell the only thing that changed, and could have cased
this is the addition of svn, and the change to the DNS/Virtual Host.
This has not affected and subdomains. To see this in action
http://dev.socialistsoftware.com/ is a development version of my Django
project, and works just fine.
http://www.socialistsoftware.com/hello.fcgi is a simple fcgi script
that does not work on the main site but works alright on the dev site
http://dev.socialistsoftware.com/hello.fcgi
So the point of this message is to warn other Django/Dreamhost users to
avoid using the new svn on your current domain. However it looks like
adding it to a subdomain should be fine.
"""
Our apologies for the delays. We did have SVN problems at the time it
was implemented, but our admin team has found the source and rectified
the situation. All Subversion should now be compatible with PHP and
PHP
as CGI domains.
If there is anything more we can help you with, please let us know and
we
will be more than happy to accommodate.
"""
I noticed that once, I would get 500 after some compile error in my code. I
don't get 500 for every compilation error, but occasionally, an error seems
to cause 500 and timeouts. But then, it just solves itself after a wait.
Hans-Christian
Make sure your code actually works before trying FastCGI. Remember to
kill FastCGI processes after modifications (or wait for them to reload
"naturally" --- takes a while). You can look them up using "ps -ef" and
kill them using "killall python" (or "killall python2.4", if you use
Python 2.4).
Thanks,
Eugene
Thank you for help
Regards,
L.
pkill python;pkill fcgi.py
"pkill python" refreshes the process', so I can hit reload on the
browser and see the changed code. While "pkill fcgi.py" make the
"Mysql server has gone away" problems disappear.
Dreamhost hasn't been good to me. I will be switching hosts soon...
can't have such unreliable apps live.
--
Julio Nobrega - http://www.inerciasensorial.com.br
First make sure that there are any using "ps -ef". If you see "no
proccess killed", do "ps -ef" again and compare with previous list. The
chances are your processes were recycled already (PID is different). If
it happens regularly --- most probably your processes crashed somehow
(bug in the code?).
If you run several web sites from one account, you cannot tell which
process serves a given web site. I kill all of them. Alternatively use
different users for different web sites --- it is more organized.
Thanks,
Eugene
But how can I kill ALL of them?
One by one something like:
kill processNumber
?
or use a little shell scripting, like
ps aux | grep python2.4 | awk '{print $2}' | xargs kill
or something like that..
(i have to admit, the pkill solution looks simpler :))
gabor
> On 3/8/06, PythonistL <pyt...@hope.cz> wrote:
> >
> > But how can I kill ALL of them?
> > One by one something like:
> > kill processNumber
> > ?
>
>
> pkill is your friend.
>
> I use "pkill -9 python2.4" on abovenet for most code changes.
I've actually had pretty decent success with
killall -USR1 the_process_you_want_to_die
This is supposed to signal the process it needs a restart so that the
next request in will be a process running your new code.
- jmj
I'm a bit reluctant to switching hosts. I haven't had my DH account for that
long, but they have offered great value for money so far, and there seems to
be a few Django apps running happily there already. And switching is so
boring work.
Hans-Christian
----- Original Message -----
From: "Julio Nobrega" <ine...@gmail.com>
To: <django...@googlegroups.com>
Sent: Tuesday, March 07, 2006 5:05 PM
Subject: Re: Attn. Dreamhost users
lighttpd+FastCGI is the way to go for shared hosting, IMHO, but
Dreamhost doesn't offer lighttpd.
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
Of course, if lighttpd needs root access, the standard plans at
DreamHost won't work - I think I've answered my own question...
Cheers,
Tone
I'm a bit reluctant to switching hosts. I haven't had my DH account for that
long, but they have offered great value for money so far, and there seems to
be a few Django apps running happily there already. And switching is so
boring work.