Hi; I'll afford a server to experiment on before year's end, but that doesn't help me today. I was trying to get Python 2.3.5 to work with LDAP on FreeBSD. I built py-ldap2 from ports and directed it to install Python 2.3.5 (because I'm using Zope 2.7.8 because my software won't migrate yet). It built out okay. The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. I moved all of that for safety's sake (at least, I thought I did), and then ended up moving it all back because I couldn't fire up Zope (I have 2 instances). Then I was able to fire up Zope *and* import LDAP (the latter indicating something from my new installation stuck). When I ps wax I see Zope is working. However, when I surf to sites, or even the IP address, it just hangs! I cleared out log/event.log and touched it and fired up in runzope mode, but there was nothing strange in the event.log! And I've been over that log many times lately, so I would recognize something different. I presume ZServer is hung. How do I trouble-shoot this? TIA, Javier2 --------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail.
try running zope in foreground mode: zopectl fg Jonathan ----- Original Message ----- From: Javier Subervi To: zope@zope.org Sent: Wednesday, October 04, 2006 2:43 PM Subject: [Zope] Help! Zope Crashed! Production Server! Hi; I'll afford a server to experiment on before year's end, but that doesn't help me today. I was trying to get Python 2.3.5 to work with LDAP on FreeBSD. I built py-ldap2 from ports and directed it to install Python 2.3.5 (because I'm using Zope 2.7.8 because my software won't migrate yet). It built out okay. The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. I moved all of that for safety's sake (at least, I thought I did), and then ended up moving it all back because I couldn't fire up Zope (I have 2 instances). Then I was able to fire up Zope *and* import LDAP (the latter indicating something from my new installation stuck). When I ps wax I see Zope is working. However, when I surf to sites, or even the IP address, it just hangs! I cleared out log/event.log and touched it and fired up in runzope mode, but there was nothing strange in the event.log! And I've been over that log many times lately, so I would recognize something different. I presume ZServer is hung. How do I trouble-shoot this? TIA, Javier2 ------------------------------------------------------------------------------ Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. ------------------------------------------------------------------------------ _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hi, Could you tell us a little more about your installation? You mention 2 zope instances... Are you using ZEO? Do you get ³Zope Ready to handle requests² in event.log when you start it up? Pascal De : Javier Subervi <javier_subervi@yahoo.com> Date : Wed, 4 Oct 2006 11:43:25 -0700 (PDT) À : <zope@zope.org> Objet : [Zope] Help! Zope Crashed! Production Server! Hi; I'll afford a server to experiment on before year's end, but that doesn't help me today. I was trying to get Python 2.3.5 to work with LDAP on FreeBSD. I built py-ldap2 from ports and directed it to install Python 2.3.5 (because I'm using Zope 2.7.8 because my software won't migrate yet). It built out okay. The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. I moved all of that for safety's sake (at least, I thought I did), and then ended up moving it all back because I couldn't fire up Zope (I have 2 instances). Then I was able to fire up Zope *and* import LDAP (the latter indicating something from my new installation stuck). When I ps wax I see Zope is working. However, when I surf to sites, or even the IP address, it just hangs! I cleared out log/event.log and touched it and fired up in runzope mode, but there was nothing strange in the event.log! And I've been over that log many times lately, so I would recognize something different. I presume ZServer is hung. How do I trouble-shoot this? TIA, Javier2 Do you Yahoo!? Get on board. You're invited <http://us.rd.yahoo.com/evt=40791/*http://advision.webevents.yahoo.com/mailb eta> to try the new Yahoo! Mail. _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
When I ps wax I see Zope is working. However, when I surf to sites, or even the IP address, it just hangs! Stop Zope and check whether you still have any Zope processes. If so then kill'em and then try to run Zope again. I had similiar problems with hanged Zope processes. Maybe that's your's problem too.
You may use netstat to check whether your Zope is listening. -- Maciej Wisniowski
http://www.zettai.net/Support/Howto/deadlockDebuggerHowto On Wed, Oct 04, 2006 at 11:43:25AM -0700, Javier Subervi wrote:
Hi; I'll afford a server to experiment on before year's end, but that doesn't help me today. I was trying to get Python 2.3.5 to work with LDAP on FreeBSD. I built py-ldap2 from ports and directed it to install Python 2.3.5 (because I'm using Zope 2.7.8 because my software won't migrate yet). It built out okay. The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place. I moved all of that for safety's sake (at least, I thought I did), and then ended up moving it all back because I couldn't fire up Zope (I have 2 instances). Then I was able to fire up Zope *and* import LDAP (the latter indicating something from my new installation stuck). When I ps wax I see Zope is working. However, when I surf to sites, or even the IP address, it just hangs! I cleared out log/event.log and touched it and fired up in runzope mode, but there was nothing strange in the event.log! And I've been over that log many times lately, so I would recognize something different. I presume ZServer is hung. How do I trouble-shoot this? TIA, Javier2
--------------------------------- Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Paul Winkler http://www.slinkp.com
Since you're running it with runzope (i.e. in foregreound mode): 1) Can you confirm Zope provided the message "Zope Ready to handle requests" 2) What is the top command showing? Is python/zope process using CPU, or is it simple unresponsive? 3) Can you check if there are different processes when you start and when you do your first request? With some C extensions of python, you can end with "hanging" python processes (at least on Linux; don't know on FreeBSD). 4) Is the zope process able to write to Z2.log, event.log and (if used) trace.log? Hope this can help. Regards Marco -- Marco Bizzarri http://notenotturne.blogspot.com/
The most common issue on *BSD is this: http://tomster.org/blog/archive/2006/09/27/size-does-matter Stefan On 4. Okt 2006, at 20:43, Javier Subervi wrote:
The person who ran this box previously didn't understand FreeBSD's port system, so he built Python in a different place.
-- It doesn't necessarily do it in chronological order, though. --Douglas Adams
participants (7)
-
Javier Subervi -
Jonathan -
Maciej Wisniowski -
Marco Bizzarri -
Pascal Peregrina -
Paul Winkler -
Stefan H. Holek