Socket Error (newbie)
a: uninstall your RPMS, first copying the Data.fs file elsewhere.
b: Download the zope source from http://www.zope.org/Products/Zope/2.1.6/Zope-2.1.6-src.tgz/view
c: untar it as some user *other* than root, name it something more sensible than Zope-2.1.6-src, then go into the directory
d: type: python w_pcgi
e: type: chown -R nobody var chown nobody access
f: then I do: python zpassword.py -u root -p somepass access
For some reason, I get a message as follows when I do this: python: can't open file 'zpassword.py' even when I do this as root, using sudo....oh well.
(because I hate the passwords they give you)
g: Then cp /path/to/old/Data.fs var/
(install wanted products here)
h: then (as root) type ./start
Here is my main problem......when I do this I get the following error: socket.error: (98, 'Address already in use') I tried doing netstat -a and didn't see 98 or tacnews there (saw this in an archived e-mail...but wasn't if that's what I should look for). Any suggestions? Thanks, Jessica
On Thu, Apr 13, 2000 at 03:04:36PM -0500, jessica lee tishmack wrote:
f: then I do: python zpassword.py -u root -p somepass access
For some reason, I get a message as follows when I do this: python: can't open file 'zpassword.py' even when I do this as root, using sudo....oh well.
It's zpasswd.py, not zpassword.py
h: then (as root) type ./start
Here is my main problem......when I do this I get the following error:
socket.error: (98, 'Address already in use')
I tried doing netstat -a and didn't see 98 or tacnews there (saw this in an archived e-mail...but wasn't if that's what I should look for).
98 is the socket error code, not the port being already in use. -Petru
It's zpasswd.py, not zpassword.py
Thanks. :)
socket.error: (98, 'Address already in use')
I tried doing netstat -a and didn't see 98 or tacnews there (saw this in an archived e-mail...but wasn't if that's what I should look for).
98 is the socket error code, not the port being already in use.
Oh, okay. Hmm...maybe the solution to my problem can be better solved with more info then...here is the entire message I get when I run ./start....this message will just keep appearing over and over again on my screen.....til I manually end the program. Traceback (innermost last): File "/home/jessi/Zope-2.1.6-src/z2.py", line 493, in ? logger_object=lg) File "/home/jessi/Zope-2.1.6-src/ZServer/medusa/http_server.py", line 552, in __init__ self.bind ((ip, port)) File "/home/jessi/Zope-2.1.6-src/ZServer/medusa/asyncore.py", line 205, in bind return self.socket.bind (addr) socket.error: (98, 'Address already in use') Help :) Jessica
On Thu, Apr 13, 2000 at 03:48:11PM -0500, jessica lee tishmack wrote:
socket.error: (98, 'Address already in use')
I tried doing netstat -a and didn't see 98 or tacnews there (saw this in an archived e-mail...but wasn't if that's what I should look for).
98 is the socket error code, not the port being already in use.
Oh, okay. Hmm...maybe the solution to my problem can be better solved with more info then...here is the entire message I get when I run ./start....this message will just keep appearing over and over again on my screen.....til I manually end the program.
Traceback (innermost last): File "/home/jessi/Zope-2.1.6-src/z2.py", line 493, in ? logger_object=lg) File "/home/jessi/Zope-2.1.6-src/ZServer/medusa/http_server.py", line 552, in __init__ self.bind ((ip, port)) File "/home/jessi/Zope-2.1.6-src/ZServer/medusa/asyncore.py", line 205, in bind return self.socket.bind (addr) socket.error: (98, 'Address already in use')
What does fuser -v 80/tcp 8080/tcp say ? -Petru
On Thu, Apr 13, 2000 at 03:54:44PM -0500, jessica lee tishmack wrote:
What does
fuser -v 80/tcp 8080/tcp
say ?
When I type this in at the prompt (in my Zope directory), it returns nothing...hmm.
Make sure you are running fuser as root -Petru
On Thu, Apr 13, 2000 at 04:00:52PM -0500, jessica lee tishmack wrote:
When I type this in at the prompt (in my Zope directory), it returns nothing...hmm.
Make sure you are running fuser as root
-Petru
Oops...here is the output now:
USER PID ACCESS COMMAND 8080/tcp root 548 f.... python
As expected, port 8080 is used by something else (looks to me like another zope instance). Shutdown it then try to start Zope again. You can also try starting Zope with ./start -P 9000 which will set the http port to 9080. -Petru
As expected, port 8080 is used by something else (looks to me like another zope instance). Shutdown it then try to start Zope again. You can also try starting Zope with
./start -P 9000
which will set the http port to 9080.
-Petru
I shutdown the machine, and started it back up, and voila! However, I am running into a new error: Traceback (innermost last): File "/home/jessi/Zope-2.1.6-src/z2.py", line 586, in ? IOError: [Errno 13] Permission denied: '/home/jessi/Zope-2.1.6-src/var/Z2.pid' I was pretty much doing this for testing, so I didn't wan't to install anything under the root directory...kept it all in my home directory...is this what's causing my problem? Should this all have gone under the root directory? Thanks, Jessica
I shutdown the machine, and started it back up, and voila! However, I am running into a new error:
(and I did run ./start as root using sudo)
Traceback (innermost last): File "/home/jessi/Zope-2.1.6-src/z2.py", line 586, in ? IOError: [Errno 13] Permission denied: '/home/jessi/Zope-2.1.6-src/var/Z2.pid'
I was pretty much doing this for testing, so I didn't wan't to install anything under the root directory...kept it all in my home directory...is this what's causing my problem? Should this all have gone under the root directory?
Thanks, Jessica
On Thu, Apr 13, 2000 at 04:28:49PM -0500, jessica lee tishmack wrote:
I shutdown the machine, and started it back up, and voila! However, I am running into a new error:
(and I did run ./start as root using sudo)
Don't. Run it as your user account. -Petru
(and I did run ./start as root using sudo)
Don't. Run it as your user account.
Hmm...mindlace says to run it as root....Petru says not to...what is a girl to do? :) (h: then (as root) type ./start) Kidding aside, when I run it as my user account, it is still erorr prone: Traceback (innermost last): File "/home/jessi/Zope-2.1.6-src/z2.py", line 433, in ? zdaemon.run(sys.argv, os.path.join(INSTANCE_HOME, Zpid)) File "/home/jessi/Zope-2.1.6-src/lib/python/zdaemon.py", line 202, in run pf = open(pidfile, 'w+') IOError: [Errno 13] Permission denied: '/home/jessi/Zope-2.1.6-src/var/zProcessManager.pid' Yikes!
On Thu, Apr 13, 2000 at 04:42:17PM -0500, jessica lee tishmack wrote:
(and I did run ./start as root using sudo)
Don't. Run it as your user account.
Hmm...mindlace says to run it as root....Petru says not to...what is a girl to do? :)
Ok then... run it as root but chown nobody the var dir before. -Petru
Ok then... run it as root but chown nobody the var dir before.
I did...in fact, here is what I have done so far (Petru, thanks for all your help by the way): ------------------------------------------------------------------------- After I downloaded the zope source from http://www.zope.org/Products/Zope/2.1.6/Zope-2.1.6-src.tgz/view I did an "untar" as my user account and then in the newly created Zope-2.1.6-src directory, I typed the following: "python w_pcgi.py" "sudo chown -R nobody var chown nobody access" "python zpasswd.py -u root -p apasswordhere access" "sudo cp /home/jessi/Data.fs var/" "sudo ./start" ------------------------------------------------------------------- I had to do some of these as "sudo"...otherwise I would get the beloved "permission denied" message. Thanks Again, Jessica
Jessica, Try: sudo chown -R nobody:nobody var Depending on platform you might have to try: sudo chown -R nobody:nogroup var hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "jessica lee tishmack" <jlt29707@sci.tamucc.edu> To: "Petru Paler" <ppetru@coltronix.com> Cc: <zope@zope.org> Sent: 13 April 2000 22:57 Subject: Re: [Zope] Socket Error (newbie)
Ok then... run it as root but chown nobody the var dir before.
I did...in fact, here is what I have done so far (Petru, thanks for all your help by the way):
------------------------------------------------------------------------- After I downloaded the zope source from http://www.zope.org/Products/Zope/2.1.6/Zope-2.1.6-src.tgz/view
I did an "untar" as my user account and then in the newly created Zope-2.1.6-src directory, I typed the following:
"python w_pcgi.py"
"sudo chown -R nobody var chown nobody access"
"python zpasswd.py -u root -p apasswordhere access"
"sudo cp /home/jessi/Data.fs var/"
"sudo ./start" -------------------------------------------------------------------
I had to do some of these as "sudo"...otherwise I would get the beloved "permission denied" message.
Thanks Again, Jessica
_______________________________________________ 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 )
On Thu, Apr 13, 2000 at 04:57:50PM -0500, jessica lee tishmack wrote:
I had to do some of these as "sudo"...otherwise I would get the beloved "permission denied" message.
Try running everything as yourself, i.e., as root, chown _all_ files under the Zope directory to your uid, then start Zope with your uid. -- Ng Pheng Siong <ngps@post1.com> * http://www.post1.com/home/ngps
participants (4)
-
jessica lee tishmack -
Ng Pheng Siong -
Petru Paler -
Phil Harris