Zope install & ./start problem...
Hello, I just installed Zope but can't get it to start properly. Here's the output: [root@frankenstein Zope]# python w_pcgi.py ..bunch of output... ---------------------------------------------------------------------------- -- Done! [root@frankenstein Zope]# ./start ------ 2000-03-30T16:07:56 PROBLEM(100) ZServer Computing default hostname ------ 2000-03-30T16:07:56 INFO(0) ZServer Medusa (V1.13.4.1) started at Thu Mar 30 08:07:56 2000 Hostname: frankenstein.energywright.com Port:8080 ------ 2000-03-30T16:07:56 INFO(0) ZServer FTP server started at Thu Mar 30 08:07:56 2000 Authorizer:None Hostname: frankenstein.energywright.com Port: 8021 ------ 2000-03-30T16:07:56 INFO(0) ZServer PCGI Server started at Thu Mar 30 08:07:56 2000 Unix socket: /usr/local/Zope/var/pcgi.soc ------ 2000-03-30T16:07:56 INFO(0) ZServer Monitor Server (V1.5) started on port 8099 Traceback (innermost last): File "/usr/local/Zope/z2.py", line 586, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/local/Zope/var/Z2.pid' [root@frankenstein Zope]# FYI, there is no '/usr/local/Zope/var/Z2.pid' file. Q1. Why is Zope looking for Z2.pid if I installed it WITH PCGI? Q2. If Zope still needs Z2.pid with PCGI, how do I get the file there? Q3. What is Z2.pid and what is its purpose? (maybe this should be Q1) Thanks a lot! Eric.
"Eric L. Walstad" wrote:
Hello,
I just installed Zope but can't get it to start properly. Here's the output:
[root@frankenstein Zope]# python w_pcgi.py
Traceback (innermost last): File "/usr/local/Zope/z2.py", line 586, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/usr/local/Zope/var/Z2.pid' [root@frankenstein Zope]#
FYI, there is no '/usr/local/Zope/var/Z2.pid' file.
That's because Zope can't write it (that's what the 'w' means). The user you are running Zope as (if you are root, Zope turns itself into nobody) does not have permission to write to your var/ directory.
Q1. Why is Zope looking for Z2.pid if I installed it WITH PCGI?
The Z2.pid file contains the process id of Zope, it allways writes it and has nothing to do with PCGI.
Q2. If Zope still needs Z2.pid with PCGI, how do I get the file there?
Zope will put it there if it can write to the var/ directory. -Michel
OK, this is probably a stupid question, but how do I fix it? I tried: changing the /Zopedir/var/ folder and file settings to user=ewalstad, group=users and had no luck running ./start. I also tried copying one of the other .pid files and renaming it z2.pid; that didn't work, either. Any advice is appreciated. Eric. // -----Original Message----- // From: Michel Pelletier [mailto:michel@digicool.com] // Sent: Thursday, March 30, 2000 11:48 AM // To: ewalstad@energywright.com // Cc: zope@zope.org // Subject: Re: [Zope] Zope install & ./start problem... // // // "Eric L. Walstad" wrote: // > // > Hello, // > // > I just installed Zope but can't get it to start properly. Here's the // > output: // > // > [root@frankenstein Zope]# python w_pcgi.py // > // > Traceback (innermost last): // > File "/usr/local/Zope/z2.py", line 586, in ? // > pf = open(PID_FILE, 'w') // > IOError: [Errno 13] Permission denied: '/usr/local/Zope/var/Z2.pid' // > [root@frankenstein Zope]# // > // > FYI, there is no '/usr/local/Zope/var/Z2.pid' file. // // That's because Zope can't write it (that's what the 'w' means). The // user you are running Zope as (if you are root, Zope turns itself into // nobody) does not have permission to write to your var/ directory. // // > Q1. Why is Zope looking for Z2.pid if I installed it WITH PCGI? // // The Z2.pid file contains the process id of Zope, it allways writes it // and has nothing to do with PCGI. // // > Q2. If Zope still needs Z2.pid with PCGI, how do I get the file there? // // Zope will put it there if it can write to the var/ directory. // // -Michel //
"Eric L. Walstad" wrote:
OK, this is probably a stupid question, but how do I fix it? I tried: changing the /Zopedir/var/ folder and file settings to user=ewalstad, group=users and had no luck running ./start. I also tried copying one of the other .pid files and renaming it z2.pid; that didn't work, either.
Any advice is appreciated.
Eric.
if you are starting zope as root, the following (from the Zope root folder) should work: chown nobody access chown -R nobody var then you can start. If you're starting zope as some other user, then replace "nobody" with other user. All the files in var need to be owned by nobody or the starting user. Copying Z2.pid won't work, because zope sets it afresh each time it runs. Ethan Fremen -- http://mindlace.net __________________ mindlace@imeme.net I don't want The Truth but I wouldn't mind a Big Analogy.
participants (3)
-
Eric L. Walstad -
Michel Pelletier -
mindlace