Starting ZOPE when you don't have access to the machine
Hello, I have a virtual server, ie sub-hosting with a virtual sub host, and have configured zope 2.3.2b2 with python 2.0 on freebsd 4.2 I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running. Which is what is happening, if I start the zope server via the shell and live the shell open the server can run forever, unless I restart it, but as soon as I close the shell connection the zope server shuts as well. My question therefore is -- How do I start the ZServer if one does not have access to the actual machine? Many thanks Norman /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:norman@khine.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\
Norman Khine wrote:
Hello, I have a virtual server, ie sub-hosting with a virtual sub host, and have configured zope 2.3.2b2 with python 2.0 on freebsd 4.2
I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running.
I currently have three installations of Zope where I have never physically touched (or been in the same room) with the machine it is running on. Everyone of them I started with ./start& through either a telnet or ssh connection. I wait until the server comes up then exit the connection: Zope version: Zope 2.2.0 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Process ID: 2240 (3076) Running for: 186 days 13 hours 42 min 42 sec This one is almost 3,000 miles away. So, I'm not sure why yours won't continue running, but it should. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
Thanks, Maybe I am getting confused ;^o somewhere, I saw a post that talked about this -- sorry can't remember exactly. I'll check the setup again. Regards Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tim Cook Sent: 27 May 2001 13:00 To: Norman Khine Cc: Zope Subject: Re: [Zope] Starting ZOPE when you don't have access to the machine Norman Khine wrote:
Hello, I have a virtual server, ie sub-hosting with a virtual sub host, and have configured zope 2.3.2b2 with python 2.0 on freebsd 4.2
I read in a previous post "somewhere" ;^) that if you start zope on a
secure
shell with ./start & and then close this connection the zope server will stop running.
I currently have three installations of Zope where I have never physically touched (or been in the same room) with the machine it is running on. Everyone of them I started with ./start& through either a telnet or ssh connection. I wait until the server comes up then exit the connection: Zope version: Zope 2.2.0 (binary release, python 1.5.2, linux2-x86) Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] System Platform: linux2 Process ID: 2240 (3076) Running for: 186 days 13 hours 42 min 42 sec This one is almost 3,000 miles away. So, I'm not sure why yours won't continue running, but it should. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM _______________________________________________ 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 )
Norman Khine wrote:
Thanks,
Maybe I am getting confused ;^o somewhere, I saw a post that talked about this -- sorry can't remember exactly.
Reading Mike's response reminded me that maybe it's because you do not have a log file setup? Be sure to set STUPID_LOG_FILE='var/Zope.log' (or somewhere your Zope user has write access) in your start file. HTH, -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running.
Which is what is happening, if I start the zope server via the shell and live the shell open the server can run forever, unless I restart it, but as soon as I close the shell connection the zope server shuts as well.
My question therefore is -- How do I start the ZServer if one does not have access to the actual machine?
I am not sure, but what about switching off debug mode ("-D" in the start script)? Also, you could try nohup ./start & That should always work ...
Thanks, to all, I'll try nohup ./start & Regards Norman -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Joachim Werner Sent: 27 May 2001 13:17 To: Zope Subject: Re: [Zope] Starting ZOPE when you don't have access to the machine
I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running.
Which is what is happening, if I start the zope server via the shell and live the shell open the server can run forever, unless I restart it, but as soon as I close the shell connection the zope server shuts as well.
My question therefore is -- How do I start the ZServer if one does not have access to the actual machine?
I am not sure, but what about switching off debug mode ("-D" in the start script)? Also, you could try nohup ./start & That should always work ... _______________________________________________ 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 )
Norman, Have you tried running with nohup? Something like nohup ./start & That should leave the server running. hth Phil ----- Original Message ----- From: "Norman Khine" <norman@khine.net> To: "Zope" <zope@zope.org> Sent: Sunday, May 27, 2001 12:39 PM Subject: [Zope] Starting ZOPE when you don't have access to the machine
Hello, I have a virtual server, ie sub-hosting with a virtual sub host, and have configured zope 2.3.2b2 with python 2.0 on freebsd 4.2
I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running.
Which is what is happening, if I start the zope server via the shell and live the shell open the server can run forever, unless I restart it, but as soon as I close the shell connection the zope server shuts as well.
My question therefore is -- How do I start the ZServer if one does not have access to the actual machine?
Many thanks
Norman
/*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Norman Khine /*/ /*/ /*/ \*\_ |*| |*||*| mailto:norman@khine.net /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Purley, UK /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ /*/ \*\
_______________________________________________ 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 Sun, May 27, 2001 at 12:39:04PM +0100, Norman Khine wrote:
I read in a previous post "somewhere" ;^) that if you start zope on a secure shell with ./start & and then close this connection the zope server will stop running.
It'll eventually crash (or at least flake) when it tries to write to a non-existent standard output descriptor. Debug mode, or any products which have Python print statements in them for debugging purposes, will cause it. nohup should fix it, and will most likely save any output in nohup.out, which will help you track down which product or feature is spewing out print statements. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
participants (7)
-
Jason Cunliffe -
Joachim Werner -
Mike Renfro -
Norman Khine -
Norman Khine -
Phil Harris -
Tim Cook