[Zope] RH 6.1 Startup error
Karl Anderson
kra@monkey.org
26 Oct 1999 17:38:29 -0700
I'll confirm that a vanilla RedHat 6.1 dist. with the Zope/zserver
2.0.1-4 RPMs doesn't work. This is bothersome because 6.1 (or maybe
6.0) is the only RedHat dist. that comes with a recent enough Python.
I think that this is because the system logger isn't listening to a
port by default. I changed /etc/rc.d/init.d/syslog.d to do this by
default (with -r) & then restarted it. For the paranoid, this is yet
another port being listened to, with DoS vulnerabilities mentioned in
the man page.
24,25c24
< # daemon syslogd -m 0
< daemon syslogd -r -m 0
---
> daemon syslogd -m 0
You're supposed to be able to stop using the system logger with the
ZSYSLOG env var, which is set to "anything" in zserver.sh, but I
didn't have any luck with unsetting that.
I also had to set ZSYSLOG_SERVER for some reason.
ZSYSLOG_SERVER=127.0.0.1:514
Look in /var/log/messages to see that you're getting logs.
Oct 26 17:12:25 localhost Computing default hostname
Oct 26 17:12:25 localhost Medusa (V1.10) started at Tue Oct 26 17:12:25 1999 ^IHostname: dclxvi.foobar.not ^IPort:8080
Oct 26 17:12:25 localhost FTP server started at Tue Oct 26 17:12:25 1999 ^IAuthorizer:None ^IHostname: dclxvi ^IPort: 8021
I'm still not getting Zope running with this fix, however - can't
write the pid file, even after I chmod'd /var/zope/var to be
rwx by everyone. I have no idea what's going on.
dclxvi /var/zope### ./zserver.sh
dclxvi /var/zope### Traceback (innermost last):
File "z2.py", line 498, in ?
pf = open(PID_FILE, 'w')
IOError: [Errno 13] Permission denied: 'zserver.pid'
I'm able to get the welcome to Zope page when I tell it to use a pid
file of '':
/usr/bin/env python z2.py -Z '' -z /usr/share/zope -w 8080 -f 8021 -m '' -l zope.log 2>&1 >>zope.fatal.log
"paul Grunwald" <pgrunwald@nmia.com> writes:
> I've been fooling with Zope under Win98. I decided to try it under Linux
> and I'm getting the following error:
>
> File "z2.py", line 379, in ?
> from Zope import ZLogger
> File "/usr/share/zope/lib/python/Zope/ZLogger/__init__.py", line 86, in ?
> import ZLogger
> File "/usr/share/zope/lib/python/Zope/ZLogger/ZLogger.py", line 7, in ?
> loggers = (stupidFileLogger.stupidFileLogger(),
> syslogLogger.syslogLogger(),
> )
> File "/usr/share/zope/lib/python/Zope/ZLogger/syslogLogger.py", line 13,
> in __
> init__
> self.client = syslog_client()
> File "/usr/share/zope/lib/python/Zope/ZLogger/syslog.py", line 147, in
> __init_
> _
> self.socket.connect (address)
> socket.error: (111, 'Connection refused')
>
>
>
> Config:
> -------
>
> RedHat 6.1
> Zope 2.01 -2 RPMS
>
> I haven't changed anything from the default installs, it's a fresh 6.1
> upgrade from 5.2. Permissions look ok and I get the same errors from
> startup as I do when I try and run /var/zope/zserver.sh as root.
>
>
> Any suggestions would be greatly appreciated.
>
> P.
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (Related lists - please, no cross posts or HTML encoding!
>
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>
--
Karl Anderson kra@monkey.org <URL:http://www.pobox.com/~kra/>