troubleshooting instance that won't serve pages
Hi! I need suggestions in troubleshooting one of my Zope instances. It acts like it's starting fine, whether I start it from the command prompt ("ZServer HTTP server started... Port: 8080") or as a Windows service. But trying to access any page that it should serve only gives "The page is currently unavailable". I need some information on what is going wrong, but the places I've checked aren't helping. Things I have checked: - The URL is correct, and using the hard-coded IP address doesn't help. - The port number I'm trying to get to (8080) is the same one Zope reports when it starts. - Firefox and Internet Explorer fail equally. - A process is listed in the Windows Task Manager. It appears when I start Zope and disappears when I stop it. - The Windows Event Viewer shows no events related to Zope. - I set the logger level in /etc/zope.conf to ALL for <eventlog>, <logger access>, and <logger trace>, and restart the instance, yet the final entry in /log/event.log is simply "2004-12-15T15:12:35 INFO(0) Zope Ready to handle requests". /log/Z2.log and /log/trace.log show nothing. - Running "netstat" shows nothing claiming port 8080 - which might explain why the page won't come up - yet it doesn't tell me why! - Of course, I can't access the through-the-webpage Zope log... I am out of troubleshooting ideas! I don't know where else I can look. Is there anyplace else I can look for a hint of what's happening? Thanks so much for your help! - Catherine -- http://profiles.yahoo.com/arcticturtle
Catherine Devlin wrote:
Hi! I need suggestions in troubleshooting one of my Zope instances. It acts like it's starting fine, whether I start it from the command prompt ("ZServer HTTP server started... Port: 8080") or as a Windows service. But trying to access any page that it should serve only gives "The page is currently unavailable".
I need some information on what is going wrong, but the places I've checked aren't helping.
Things I have checked: - The URL is correct, and using the hard-coded IP address doesn't help. - The port number I'm trying to get to (8080) is the same one Zope reports when it starts. - Firefox and Internet Explorer fail equally. - A process is listed in the Windows Task Manager. It appears when I start Zope and disappears when I stop it. - The Windows Event Viewer shows no events related to Zope. - I set the logger level in /etc/zope.conf to ALL for <eventlog>, <logger access>, and <logger trace>, and restart the instance, yet the final entry in /log/event.log is simply "2004-12-15T15:12:35 INFO(0) Zope Ready to handle requests". /log/Z2.log and /log/trace.log show nothing. - Running "netstat" shows nothing claiming port 8080 - which might explain why the page won't come up - yet it doesn't tell me why! - Of course, I can't access the through-the-webpage Zope log...
I am out of troubleshooting ideas! I don't know where else I can look. Is there anyplace else I can look for a hint of what's happening?
What version of Zope (I am assuming Zope 2.7.x)? Can you share the contents of the <http_server> section of your zope.conf file? Can you connect to it at 'http://localhost:8080/' from the box where it is running? We've had at least one bug where having just the port number in the config file resulted in different behavior on Linux vs. Windows: on the Linux machine, Zope bound to the port on *all* interfaces, while on Windows, it bound only to one interface (localhost, I think). Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
FWIW - i've encountered this a thousand times before. Usually, it was because I just installed a product that zope didn't like - like the archetypes, and more recently, some database connector that was out of date. What I usually do here is i remove the most recently added products until I get the server back and then one by one add the ones i removed until it breaks again, then i know what the problem is and i can usually restore the rest of what i removed and just isolate the nasty product. Happens to me ALL THE TIME when i was messing with archetypes. On Thu, 16 Dec 2004 00:51:39 -0500, Tres Seaver <tseaver@zope.com> wrote:
Catherine Devlin wrote:
Hi! I need suggestions in troubleshooting one of my Zope instances. It acts like it's starting fine, whether I start it from the command prompt ("ZServer HTTP server started... Port: 8080") or as a Windows service. But trying to access any page that it should serve only gives "The page is currently unavailable".
I need some information on what is going wrong, but the places I've checked aren't helping.
Things I have checked: - The URL is correct, and using the hard-coded IP address doesn't help. - The port number I'm trying to get to (8080) is the same one Zope reports when it starts. - Firefox and Internet Explorer fail equally. - A process is listed in the Windows Task Manager. It appears when I start Zope and disappears when I stop it. - The Windows Event Viewer shows no events related to Zope. - I set the logger level in /etc/zope.conf to ALL for <eventlog>, <logger access>, and <logger trace>, and restart the instance, yet the final entry in /log/event.log is simply "2004-12-15T15:12:35 INFO(0) Zope Ready to handle requests". /log/Z2.log and /log/trace.log show nothing. - Running "netstat" shows nothing claiming port 8080 - which might explain why the page won't come up - yet it doesn't tell me why! - Of course, I can't access the through-the-webpage Zope log...
I am out of troubleshooting ideas! I don't know where else I can look. Is there anyplace else I can look for a hint of what's happening?
What version of Zope (I am assuming Zope 2.7.x)?
Can you share the contents of the <http_server> section of your zope.conf file?
Can you connect to it at 'http://localhost:8080/' from the box where it is running? We've had at least one bug where having just the port number in the config file resulted in different behavior on Linux vs. Windows: on the Linux machine, Zope bound to the port on *all* interfaces, while on Windows, it bound only to one interface (localhost, I think).
Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com
_______________________________________________ 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 )
Alan Snyder wrote at 2004-12-16 01:09 -0500:
FWIW - i've encountered this a thousand times before. Usually, it was because I just installed a product that zope didn't like - like the archetypes, and more recently, some database connector that was out of date. What I usually do here is i remove the most recently added products until I get the server back and then one by one add the ones i removed until it breaks again, then i know what the problem is and i can usually restore the rest of what i removed and just isolate the nasty product. Happens to me ALL THE TIME when i was messing with archetypes.
This is much more difficult than it needs to be... Instead: start Zope in the foreground (under Unix: "bin/zopectl fg"; under Windows: set EVENT_LOGFILE=some_file runzope). Under Unix, you must not have turned "debug-mode off". You will see log messages on the terminal (detailing reasons why (and which) product failed). Under Windows, look into your logfile ("some_file" above). -- Dieter
To get clear error messages, you may start your Zope mono-threaded and foregrounded by doing: bin/zopectl fg instead of the usual: bin/zopectl start or bin/runzope Florent Catherine Devlin <catherine.devlin@gmail.com> wrote:
Hi! I need suggestions in troubleshooting one of my Zope instances. It acts like it's starting fine, whether I start it from the command prompt ("ZServer HTTP server started... Port: 8080") or as a Windows service. But trying to access any page that it should serve only gives "The page is currently unavailable".
I need some information on what is going wrong, but the places I've checked aren't helping.
Things I have checked: - The URL is correct, and using the hard-coded IP address doesn't help. - The port number I'm trying to get to (8080) is the same one Zope reports when it starts. - Firefox and Internet Explorer fail equally. - A process is listed in the Windows Task Manager. It appears when I start Zope and disappears when I stop it. - The Windows Event Viewer shows no events related to Zope. - I set the logger level in /etc/zope.conf to ALL for <eventlog>, <logger access>, and <logger trace>, and restart the instance, yet the final entry in /log/event.log is simply "2004-12-15T15:12:35 INFO(0) Zope Ready to handle requests". /log/Z2.log and /log/trace.log show nothing. - Running "netstat" shows nothing claiming port 8080 - which might explain why the page won't come up - yet it doesn't tell me why! - Of course, I can't access the through-the-webpage Zope log...
I am out of troubleshooting ideas! I don't know where else I can look. Is there anyplace else I can look for a hint of what's happening?
Thanks so much for your help! - Catherine -- http://profiles.yahoo.com/arcticturtle _______________________________________________ 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 )
-- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
--On Donnerstag, 16. Dezember 2004 15:08 Uhr +0100 Florent Guillaume <fg@nuxeo.com> wrote:
To get clear error messages, you may start your Zope mono-threaded and foregrounded by doing: bin/zopectl fg
Are you really sure that runzope starts Zope mono-threaded? -aj
To get clear error messages, you may start your Zope mono-threaded and foregrounded by doing: bin/zopectl fg
Are you really sure that runzope starts Zope mono-threaded?
Uh no. Actually it probably does not. But you can insert pdb breakpoints which is enough for me :) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
participants (6)
-
Alan Snyder -
Andreas Jung -
Catherine Devlin -
Dieter Maurer -
Florent Guillaume -
Tres Seaver