Correct me if I'm wrong, but don't you have to setup the "stupid_log" (no offense) Thanks, Derek Wilson -----Original Message----- From: Goldthwaite, Joe [mailto:joe@goldthwaites.com] Sent: Friday, November 21, 2003 11:37 AM To: zope@zope.org Subject: [Zope] Quick question. I'm a newbie learning Python and Zope. I'm trying to create a Zope product for my application since programming is more familiar to me than HTML. I ran into a problem that caused me to join this list. In the process of figuring out how to best ask the question, I found the answer. I had created a package using the example in "The Book of Zope". When I first restarted the server, I got an error message in the list of products saying that my package was broken. It had an error log showing the line (a typo) that was causing the problem. I fixed the line but restarting Zope kept giving me the same error message on the same line that I had fixed. I decided that something funny was going on so I deleted the package from the "Product Management at /Control_Panel/Products" screen in the hopes that it would be recreated or I would at least get a new error message. The product went away completely and nothing I could do would get it back. I tried moving it to a different directory, changing the metadata name, changing the class names, nothing worked. I could look in the directory and see that my __init__.pyc file was being created so I knew Zope was looking at it but it didn't seem to do anything with it. After working on it for most of the day, I finally found the problem. At some point, I had accidentally deleted the "s" from the end of the constructors' In other words, instead of this; def initialize(context): """Register the EIS class""" context.registerClass( EIS.EIS, constructors = ( EIS.manage_addEISForm, EIS.manage_addEIS ), permission = 'Add EIS', icon='www/icon.gif' ) I had This; def initialize(context): """Register the EIS class""" context.registerClass( EIS.EIS, constructor = ( EIS.manage_addEISForm, EIS.manage_addEIS ), permission = 'Add EIS', icon='www/icon.gif' ) Notice the missing "s" in "constructor =". That was doing it. Now, here's my question, is there an error log anywhere that would have shown what was causing the problem without searching for a needle in a haystack? I was looking all over the place for some kind of message as to why the package wasn't showing up but couldn't find anything. I'm assuming I just don't know where to look. _______________________________________________ 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 )
Oh dear, my Zope can start any longer! What can I do? This is what I get: [meyer@localhost meyer]$ zope/start ------ 2003-11-21T20:13:23 INFO(0) zdaemon Started subprocess: pid 3607 ------ 2003-11-21T20:13:24 PANIC(300) z2 Startup exception Traceback (innermost last): File /home/meyer/zope/z2.py, line 585, in ? File /home/meyer/zope/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /home/meyer/zope/lib/python/Zope/App/startup.py, line 53, in startup File /home/meyer/zope/lib/python/ZODB/FileStorage.py, line 225, in __init__ File /home/meyer/zope/lib/python/ZODB/lock_file.py, line 33, in lock_file StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p> [meyer@localhost meyer]$
On Fri, Nov 21, 2003 at 08:16:39PM +0100, Andre Meyer wrote:
Oh dear, my Zope can start any longer! What can I do? This is what I get:
[meyer@localhost meyer]$ zope/start ------ 2003-11-21T20:13:23 INFO(0) zdaemon Started subprocess: pid 3607 ------ 2003-11-21T20:13:24 PANIC(300) z2 Startup exception Traceback (innermost last): File /home/meyer/zope/z2.py, line 585, in ? File /home/meyer/zope/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /home/meyer/zope/lib/python/Zope/App/startup.py, line 53, in startup File /home/meyer/zope/lib/python/ZODB/FileStorage.py, line 225, in __init__ File /home/meyer/zope/lib/python/ZODB/lock_file.py, line 33, in lock_file StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p> [meyer@localhost meyer]$
1) Make sure you aren't actually still running zope. maybe you have a process that you thought was dead, but isn't. ps wax | grep python ps wax | grep z2.py 2) If there's really no zope process running, delete the lock file. ls -l var/Data.fs.lock rm var/Data.fs.lock -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's NOBBY IDIOT SOCK! (random hero from isometric.spaceninja.com)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, November 21, 2003, at 02:16 PM, Andre Meyer wrote:
Oh dear, my Zope can start any longer! What can I do? This is what I get:
is zope already running? you can check this with ps and/or top. <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669 -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.2 iQA/AwUBP75moh0VidvoLUjJEQINGwCfcc3ar6NDNyKMDPOmXGVmcceKDZIAoP6w ZtVIvbrX4sA740xHEg3wM+wK =GsYD -----END PGP SIGNATURE-----
No offense taken. I'm not sure what the "stupid_log" is or where you set it up. It's not indexed in any of the three Zope books I'm using. I did a search of zope.org and it mentions a stupid_log in reference to a FrozenLogger product that doesn't seem to be part of the standard Zope and the references are from 2000 and 2001. So if you're trying to be helpful and don't mean to offend, maybe you could expand on your answer a bit :). (Like I mentioned, I'm trying to learn this stuff. I don't really know if your response is tongue-in-cheek or not.) -----Original Message----- From: Wilson, Derek [mailto:dwilson@abrazohealth.com] Sent: Friday, November 21, 2003 11:53 AM To: joe@goldthwaites.com; zope@zope.org Subject: RE: [Zope] Quick question. Correct me if I'm wrong, but don't you have to setup the "stupid_log" (no offense) Thanks, Derek Wilson -----Original Message----- From: Goldthwaite, Joe [mailto:joe@goldthwaites.com] Sent: Friday, November 21, 2003 11:37 AM To: zope@zope.org Subject: [Zope] Quick question. I'm a newbie learning Python and Zope. I'm trying to create a Zope product for my application since programming is more familiar to me than HTML. I ran into a problem that caused me to join this list. In the process of figuring out how to best ask the question, I found the answer. I had created a package using the example in "The Book of Zope". When I first restarted the server, I got an error message in the list of products saying that my package was broken. It had an error log showing the line (a typo) that was causing the problem. I fixed the line but restarting Zope kept giving me the same error message on the same line that I had fixed. I decided that something funny was going on so I deleted the package from the "Product Management at /Control_Panel/Products" screen in the hopes that it would be recreated or I would at least get a new error message. The product went away completely and nothing I could do would get it back. I tried moving it to a different directory, changing the metadata name, changing the class names, nothing worked. I could look in the directory and see that my __init__.pyc file was being created so I knew Zope was looking at it but it didn't seem to do anything with it. After working on it for most of the day, I finally found the problem. At some point, I had accidentally deleted the "s" from the end of the constructors' In other words, instead of this; def initialize(context): """Register the EIS class""" context.registerClass( EIS.EIS, constructors = ( EIS.manage_addEISForm, EIS.manage_addEIS ), permission = 'Add EIS', icon='www/icon.gif' ) I had This; def initialize(context): """Register the EIS class""" context.registerClass( EIS.EIS, constructor = ( EIS.manage_addEISForm, EIS.manage_addEIS ), permission = 'Add EIS', icon='www/icon.gif' ) Notice the missing "s" in "constructor =". That was doing it. Now, here's my question, is there an error log anywhere that would have shown what was causing the problem without searching for a needle in a haystack? I was looking all over the place for some kind of message as to why the package wasn't showing up but couldn't find anything. I'm assuming I just don't know where to look. _______________________________________________ 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 )
On Fri, Nov 21, 2003 at 03:35:14PM -0700, Goldthwaite, Joe wrote:
No offense taken. I'm not sure what the "stupid_log" is or where you set it up. It's not indexed in any of the three Zope books I'm using. I did a search of zope.org and it mentions a stupid_log in reference to a FrozenLogger product that doesn't seem to be part of the standard Zope and the references are from 2000 and 2001. So if you're trying to be helpful and don't mean to offend, maybe you could expand on your answer a bit :).
It used to be called STUPID_LOG_FILE. That name has been deprecated in favor of EVENT_LOG_FILE. These are described in the "start" shell script that ships with zope. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's SUPER-INATOR THE PYROTECHNICIAN! (random hero from isometric.spaceninja.com)
participants (5)
-
Andre Meyer -
george donnelly -
Goldthwaite, Joe -
Paul Winkler -
Wilson, Derek