zope startup script is failing (2.5.0 on rh linux 7.2)
hello, 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? tia
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
It means the Zope process does not have permission to write to the var directory (under the Zope home). Don't run Zope as root; set up a different Zope userid to run the software and have the software and data homes owned by the Zope userid. On Thursday, February 28, 2002, at 10:49 AM, Duane Douglas wrote:
hello,
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?
tia
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 11:12 AM 2/28/2002 -0500, Matthew T. Kromer wrote:
It means the Zope process does not have permission to write to the var directory (under the Zope home).
Don't run Zope as root; set up a different Zope userid to run the software and have the software and data homes owned by the Zope userid.
ok. i created a user called *zope* and recursively changed the ownership of the zope directories to the zope user. but now i'm getting a *permission denied* message when i run the zope startup script. the output is below: [zope@grumpy Zope-2.5.0-linux2-x86]$ ./start ./start: /usr/local/zope/Zope-2.5.0-linux2-x86/bin/python: Permission denied ./start: exec: /usr/local/zope/Zope-2.5.0-linux2-x86/bin/python: cannot execute: Permission denied [zope@grumpy Zope-2.5.0-linux2-x86]$ pwd /usr/local/zope/Zope-2.5.0-linux2-x86 [zope@grumpy Zope-2.5.0-linux2-x86]$ cd bin [zope@grumpy bin]$ ls -l total 1424 -rwxrwxrwx 1 zope users 1453722 Jan 25 13:47 python [zope@grumpy bin]$ the file *python* is owned by the zope user who has full access to the file. yet, i'm getting a *permission denied* error when the startup script attempts to execute this file. any ideas on how to resolve this issue? tia
participants (3)
-
Duane Douglas -
Joel Burton -
Matthew T. Kromer