[Setup] Automating ZEO daemon startup
ksgill at mac.com
Thu Aug 24 06:01:23 UTC 2006
Ben, would you confirm that the user is set properly in zeo.conf, and
that user has write perms at $ZEOSERVER_HOME/log/zeo.log ?
For example, if zeo.conf has 'plone' as the effective user, does that
user have the ability to write to zeo.log?
You may need to perform a chown on the directory tree to set the
appropriate ownership to be consistent with the settings in zeo.conf.
On Aug 23, 2006, at 1:31 AM, Ben wrote:
> On 8/23/06, Kamal Gill <ksgill at mac.com> wrote:
>> The error is caused by an improper permission setting in /log/zeo.log
>> when the daemon starts up.
> Hi Kamal, thanks for responding but the problem still stands.
> The tutorial included instructions to change the permissions (to 755,
> not 775 - which I followed). I changed the permissions as you
> suggested, but it hasn't stopped the error occuring. I even tried 777
> for the log directory and the log file, so I don't think that's it.
> Looking at the .py file it seems the error is around opening a socket
> (and perhaps setting it to 700 as well).
> I'll try the Zope list if there's no more ideas as to the resolution -
> that .py file is beyond my understanding
> Perhaps it has something to do with the user private groups in RHEL?
> I'm using:
> CentOS 3.7
> Python 2.4.3
> Zope 2.9.4
> Plone 2.5
>> This is an annoying bug that probably should be reported to the Zope
>> development team.
>> For a workaround, see the following lines the the Plone 2.5 Unified
>> (UNIX/Linux) Installer's install.sh script.
>> # Pre-initialize log file and set appropriate permissions
>> # (if unset, ZEO server refuses to start as an unprivileged user via
>> 'zeoctl start')
>> touch $ZEOSERVER_HOME/log/zeo.log
>> chmod 775 $ZEOSERVER_HOME/log/zeo.log
>> On Aug 22, 2006, at 1:28 AM, Ben wrote:
>> > I am receiving error messages when attempting to start ZEO in
>> > mode. I have looked up several tutorials, but they are all out of
>> > date, or don't help.
>> > I have setup ZEO according to:
>> > http://plone.org/documentation/tutorial/robust-installation
>> > which is why I'm posting here, rather than on the Zope lists.
>> > I receive an error message and a progressive series of dots when I
>> > attempt to start ZEO:
>> > [zope at localhost zope]$ zeo/bin/zeoctl start
>> > . Traceback (most recent call last):
>> > File "/opt/zope/zope/lib/python/zdaemon/zdrun.py", line 719, in ?
>> > main()
>> > File "/opt/zope/zope/lib/python/zdaemon/zdrun.py", line 716, in
>> > d.main(args)
>> > File "/opt/zope/zope/lib/python/zdaemon/zdrun.py", line 243, in
>> > self.run()
>> > File "/opt/zope/zope/lib/python/zdaemon/zdrun.py", line 256, in
>> > self.opensocket()
>> > File "/opt/zope/zope/lib/python/zdaemon/zdrun.py", line 278, in
>> > opensocket
>> > sock.bind(tempname)
>> > File "<string>", line 1, in bind
>> > socket.error: (13, 'Permission denied')
>> > . . . . . . . . [dots continue to appear at a regular interval]
>> > If I start ZEO using:
>> > zeo/bin/runzeo
>> > then all is fine, the Zope clients connect, etc. but it logs to the
>> > console and I want to run in daemon mode.
>> > TIA
>> > Ben
>> > _______________________________________________
>> > Setup mailing list
>> > Setup at lists.plone.org
>> > http://lists.plone.org/mailman/listinfo/setup
More information about the Setup