Hi,
I have configured a MoinMoin wiki vServer in Cherokee 1.08. I am
getting 503 Service Unavailable whenever I request a page.
It looks like Cherokee is failing to execute spawn-fcgi.
When I run Cherokee from the command line and request a page I see the
following:
r...@hal:/var/log/cherokee# /usr/sbin/cherokee --admin_child -C
/etc/cherokee/cherokee.conf
Cherokee Web Server 1.0.8 (Aug 18 2010): Listening on port ALL:80, TLS
disabled,
IPv6 enabled, using epoll, 4096 fds system limit, max. 2041 connections,
caching I/O, 20 threads, 102 connections per thread, standard scheduling
policy
PID 1765: launched '/bin/sh -c exec /usr/bin/spawn-fcgi -n -a 127.0.0.1
-p 53993 -- /usr/share/moin/server/moin.fcg' with uid=33, gid=33,
env=inherited
PID 1765: exited re=1
PID 1766: launched '/bin/sh -c exec /usr/bin/spawn-fcgi -n -a 127.0.0.1
-p 53993 -- /usr/share/moin/server/moin.fcg' with uid=33, gid=33,
env=inherited
PID 1766: exited re=1
PID 1767: launched '/bin/sh -c exec /usr/bin/spawn-fcgi -n -a 127.0.0.1
-p 53993 -- /usr/share/moin/server/moin.fcg' with uid=33, gid=33,
env=inherited
PID 1767: exited re=1
PID 1768: launched '/bin/sh -c exec /usr/bin/spawn-fcgi -n -a 127.0.0.1
-p 53993 -- /usr/share/moin/server/moin.fcg' with uid=33, gid=33,
env=inherited
PID 1768: exited re=1
PID 1769: launched '/bin/sh -c exec /usr/bin/spawn-fcgi -n -a 127.0.0.1
-p 53993 -- /usr/share/moin/server/moin.fcg' with uid=33, gid=33,
env=inherited
PID 1769: exited re=1
If I run spawn-fcgi myself as www-data or as root it works fine.
For example, as www-data everything works and I see:
www-d...@hal:~$ /usr/bin/spawn-fcgi -n -a 127.0.0.1 -p 53993 --
/usr/share/moin/server/moin.fcg
2010-10-03 18:11:43,957 WARNING MoinMoin.log:120 using logging
configuration read from built-in fallback in MoinMoin.log module!
2010-10-03 18:12:12,414 INFO MoinMoin.config.multiconfig:90 using farm
config: /etc/moin/farmconfig.py
2010-10-03 18:12:12,420 INFO MoinMoin.config.multiconfig:124 using wiki
config: /etc/moin/cloudartisan.py
Another example, as root everything works and I see:
r...@hal:/var/log/cherokee# /usr/bin/spawn-fcgi -U www-data -G www-data
-n -a 127.0.0.1 -p 53993 -- /usr/share/moin/server/moin.fcg
2010-10-03 18:23:09,042 WARNING MoinMoin.log:120 using logging
configuration read from built-in fallback in MoinMoin.log module!
2010-10-03 18:23:16,130 INFO MoinMoin.config.multiconfig:90 using farm
config: /etc/moin/farmconfig.pyc
2010-10-03 18:23:16,136 INFO MoinMoin.config.multiconfig:124 using wiki
config: /etc/moin/cloudartisan.pyc
If I try to mimic the way that Cherokee is executing spawn-fcgi I see
the following:
r...@hal:/var/log/cherokee# /bin/sh -c exec /usr/bin/spawn-fcgi -n -a
127.0.0.1 -p 53993 -- /usr/share/moin/server/moin.fcg
r...@hal:/var/log/cherokee# echo $?
0
r...@hal:/var/log/cherokee# netstat -lnp | grep 53993
I wasn't sure what to expect... but, at a guess, I would have assumed
that some kind of fcgi wrapper would be listening on port 53993.
Instead, there's nothing.
Any hints/suggestions on what I should do?
Cheers,
David.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee