[Zope] zope startup script is failing (2.5.0 on rh linux 7.2)

Joel Burton joel@joelburton.com
Thu, 28 Feb 2002 11:09:23 -0500 (EST)


On Thu, 28 Feb 2002, Duane Douglas wrote:

> i'm new to zope, so please bear with me.
>
> i'm trying to get zope 2.5.0 running on linux 7.2.   i untarred the zope
> tarball in /usr/local and the install script ran without reporting any
> errors.  the start script reported an exception when it ran.  the output is
> below:
>
> [root@grumpy Zope-2.5.0-linux2-x86]# ./start
> ------
> 2002-02-28T15:54:03 INFO(0) ZODB Opening database for mounting:
> '142152360_1014906621.913913'
> ------
> 2002-02-28T15:54:03 INFO(0) ZODB Mounted database
> '142152360_1014906621.913913' at /temp_folder
> ------
> 2002-02-28T15:54:03 INFO(0) ZServer HTTP server started at Thu Feb 28
> 10:54:03 2002
>          Hostname: grumpy.dog-media.com
>          Port: 8080
> ------
> 2002-02-28T15:54:03 INFO(0) ZServer FTP server started at Thu Feb 28
> 10:54:03 2002
>          Hostname: grumpy.dog-media.com
>          Port: 8021
> ------
> 2002-02-28T15:54:03 INFO(0) ZServer PCGI Server started at Thu Feb 28
> 10:54:03 2002
>          Unix socket: /usr/local/zope/Zope-2.5.0-linux2-x86/var/pcgi.soc
> ------
> 2002-02-28T15:54:03 PANIC(300) z2 Startup exception
> Traceback (innermost last):
>    File /usr/local/zope/Zope-2.5.0-linux2-x86/z2.py, line 688, in ?
> IOError: [Errno 13] Permission denied:
> '/usr/local/zope/Zope-2.5.0-linux2-x86/var/Z2.pid'
>
>
> [root@grumpy Zope-2.5.0-linux2-x86]#
>
> can someone please help me troubleshoot this?

Simple file permission problem. The user you're running Zope as doesn't
have write permission to the folder /usr/local/zope/Zope.../var/ in order
to write the file Z2.pid. It needs write permission to the whole .../var
folder, since that's where the Zope data is.

root@yourbox# chown -R running_zope_as /usr/local/zope/Zope.../var

HTH.

-- 

Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
Independent Knowledge Management Consultant