[ZODB-Dev] Zope2.6 + ZEO 2
Lou Scalpati
lou@hi-privacy.net
Tue, 8 Apr 2003 14:41:14 -0500
This should work fine for opening the 8080 ports but probably will not work
for port 80 since you have to be root......
----- Original Message -----
From: "Andrew Sydelko" <andrew@sydelko.org>
To: "Lou Scalpati" <lou@hi-privacy.net>
Cc: <zodb-dev@zope.org>
Sent: Tuesday, April 08, 2003 2:30 PM
Subject: Re: [ZODB-Dev] Zope2.6 + ZEO 2
On Tue, 8 Apr 2003 14:21:34 -0500 "Lou Scalpati" <lou@hi-privacy.net> wrote:
> I had the same problem.... It took me about a week to figure out what
was
> going wrong. It seems that when ZEO is installed on a zope client the -u
> (setuid) option is broken. zdaemon starts as root and will serve the
first
> hit then spawns a child owned by zope. The child can not serve any pages
> because of permissions (I think), the "virtual" database is internally
> locked by root.
>
> You need to either run the client as root (VERY BAD IDEA) or manually
start
> the client as the user you want to run as. This posses a problem for
> automated started. I do not have a solution to that yet.... If I find
one
> I will post it back to the group.
The same problem exists with Zope 2.5.1 and ZEO2. We solved the problem by
using the following in the start script:
exec su httpd -c "${install_dir}/bin/python $INST_HOME/z2.py -l
/dev/null -D -w 8080 -F 8081 -W 8082 -u httpd
STUPID_LOG_FILE=${INST_HOME}/var/Zope.log ZEO_CLIENT=1 "$@""
--andy.