List Info

Thread: Automating ZEO daemon startup




Automating ZEO daemon startup
user name
2006-08-22 08:28:45
I am receiving error messages when attempting to start ZEO
in daemon
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-instal
lation
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:

[zopelocalhost 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 main
    d.main(args)
  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 243, in main
    self.run()
  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 256, in run
    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
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
Automating ZEO daemon startup
user name
2006-08-23 05:43:07
The error is caused by an improper permission setting in
/log/zeo.log  
when the daemon starts up.
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.

--snip--

###########################################
# 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

--snip--

HTH,
Kamal


On Aug 22, 2006, at 1:28 AM, Ben wrote:

> I am receiving error messages when attempting to start
ZEO in daemon
> 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-instal
lation
> 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:
>
> [zopelocalhost 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 main
>    d.main(args)
>  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 243, in main
>    self.run()
>  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 256, in run
>    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
> Setuplists.plone.org
> http://
lists.plone.org/mailman/listinfo/setup


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
Automating ZEO daemon startup
user name
2006-08-23 08:31:19
On 8/23/06, Kamal Gill <ksgillmac.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

--
Ben

> 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.
>
> --snip--
>
> ###########################################
> # 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
>
> --snip--
>
> HTH,
> Kamal
>
>
> On Aug 22, 2006, at 1:28 AM, Ben wrote:
>
> > I am receiving error messages when attempting to
start ZEO in daemon
> > 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-instal
lation
> > 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:
> >
> > [zopelocalhost 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 main
> >    d.main(args)
> >  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 243, in main
> >    self.run()
> >  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 256, in run
> >    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
> > Setuplists.plone.org
> > http://
lists.plone.org/mailman/listinfo/setup
>
>

_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
Automating ZEO daemon startup
user name
2006-08-24 06:01:23
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.

-Kamal

On Aug 23, 2006, at 1:31 AM, Ben wrote:

> On 8/23/06, Kamal Gill <ksgillmac.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
>
> --
> Ben
>
>> 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.
>>
>> --snip--
>>
>> ###########################################
>> # 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
>>
>> --snip--
>>
>> HTH,
>> Kamal
>>
>>
>> On Aug 22, 2006, at 1:28 AM, Ben wrote:
>>
>> > I am receiving error messages when attempting
to start ZEO in  
>> daemon
>> > 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-instal
lation
>> > 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:
>> >
>> > [zopelocalhost 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  
>> main
>> >    d.main(args)
>> >  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 243, in  
>> main
>> >    self.run()
>> >  File
"/opt/zope/zope/lib/python/zdaemon/zdrun.py",
line 256, in  
>> run
>> >    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
>> > Setuplists.plone.org
>> > http://
lists.plone.org/mailman/listinfo/setup
>>
>>


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )