starting zope problems
Hello, This is my first post and it's because I'm having problems (surprise!). Anyway, I've been tasked with restoring Zope because it became corrupted some how and I had zero experience with Zope prior to this project. Here's the background info: Zope crashed. I have tape backups of the Data.fs file, which I've read is OK to backup while Zope is running. I've restored the Data.fs file and had many, many problems getting it to work. Eventually my boss decided to upgrade Zope. We're now running 2.5.1 (I have no idea what version we were running prior). We're using Debian Linux and used the Debian package of Zope for the initial install as well as the upgrade. Anyway, eventually I figured out that there was an invalid transaction header in the file, so I truncated it prior to that transaction. Then I tried starting Zope and it detected a truncated file and did its magic and appeared to actually start, but with two problems that I see. The first is that when I run "/etc/init.d/zope start", it never returns me to the command prompt. It does one of two things-either just says "Starting Zope..." and never moves from that, or it mentions how I have a deprecated version of something (I can't remember what right now and it hasn't happened lately). After waiting for over an hour, I usually press CTRL+C and it will spit out some more text and shut down Zope. The second issue is that when I actually hit the Zope page in the web browser, I don't really get what we normally would see. What I get is this: Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: dav) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: index_html) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: index_html) File /usr/lib/zope/lib/python/OFS/DTMLDocument.py, line 127, in __call__ (Object: index_html) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: index_html) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 120, in __call__ (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 411, in __call__ (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 340, in cook (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 170, in parse (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 223, in parse_block (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 170, in parse (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 239, in parse_block (Object: navigation) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 58, in parse_error (Object: navigation) Document Template Parse Error: (see above) Finally, my zope-debug.log file shows this: ------ 2002-11-06T16:47:12 INFO(0) zdaemon zdaemon: Wed Nov 6 11:47:12 2002: Houston, we have forked ------ 2002-11-06T16:47:12 INFO(0) zdaemon zdaemon: Wed Nov 6 11:47:12 2002: Hi, I just forked off a kid: 411 ------ 2002-11-06T16:47:12 INFO(0) zdaemon zdaemon: Wed Nov 6 11:47:12 2002: Houston, we have forked ------ 2002-11-06T16:50:43 INFO(0) ZODB Opening database for mounting: '144954144_1036532496.793743' ------ 2002-11-06T16:50:43 INFO(0) ZODB Mounted database '144954144_1036532496.793743' at /temp_folder ------ 2002-11-06T16:50:44 INFO(0) ZServer HTTP server started at Wed Nov 6 11:50:44 2002 Hostname: escher.mailcode.com Port: 9673 ------ 2002-11-06T16:50:44 INFO(0) ZServer FTP server started at Wed Nov 6 11:50:44 2002 Hostname: escher Port: 8021 ------ 2002-11-06T16:50:44 INFO(0) ZServer PCGI Server started at Wed Nov 6 11:50:44 2002 Unix socket: /var/lib/zope/var/Z2-pcgi.soc Does anybody have any tips for me? Thanks a lot. Allen
On Wed, Nov 06, 2002 at 11:46:29AM -0500, Allen Crawford wrote:
The first is that when I run "/etc/init.d/zope start", it never returns me to the command prompt.
that's normal if you run in debug mode (check your start script to see if it passes -D to z2.py).
It does one of two things-either just says "Starting Zope..." and never moves from that, or it mentions how I have a deprecated version of something (I can't remember what right now and it hasn't happened lately).
that's the old "regex is deprecated" warning. It's just python warning you that the regex module is going away sometime in the future, maybe python 2.3, I forget. Nothing to worry about at all. It will only become an issue if you try to run zope with a version of python that A) isn't officially supported by zope, and B) doesn't exist yet anyway.
The second issue is that when I actually hit the Zope page in the web browser,
... which means zope is running so none of the above matters .
I don't really get what we normally would see. What I get is this: (snip) (Object: navigation) Document Template Parse Error: (see above)
That's just what it says, there's a syntax error in a DTML page, either the one you're viewing or another one that it calls. What is "navigation"? Did you create something called "navigation"? If it's happening on the "Welcome to Zope" page, you either hosed your installation somehow, or (more likely) changed index_html or standard_html_header/footer in your root folder. Without more info, I'd guess you added something like <dtml-var navigation> in your standard_html_header, and created a DTML doc or method called navigation, and made an error in that.
Finally, my zope-debug.log file shows this: (snip)
that's all normal. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
participants (2)
-
Allen Crawford -
Paul Winkler