Upgrade to 2.7.2 results in all content unavailable
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out). Now, every page results in Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET There is effectively no more web interface. I've verified that the database still seems to be there in [instance]/var/Data.fs and hasn't been touched since the update. I tried going through some of the steps in the Troubleshooting and Debugging page http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx I can do a ZPublisher.Zope('/manage') in python and see that it returns a "Resource not found" page. Interestingly, my log which was being written to /var/log/zope started writing to the default location after the install. I feel like there isn't enough here to determine whether there is a bug or whether I've mucked something up myself. But perhaps some gentle guidance would help me determine whether there is a bug or just my own ignorance. Was there a config file that got overwritten in the update? Where would it be? Perhaps there are some clues in the lines written to the log file upon startup. Old log file: 2008-04-10T14:43:08 INFO(0) ZServer HTTP server started at Thu Apr 10 14:43:08 2008 Hostname: library.ucsc.edu Port: 8080 ------ 2008-04-10T14:43:08 INFO(0) ZServer FTP server started at Thu Apr 10 14:43:08 2008 Hostname: library.ucsc.edu Port: 8021 ------ 2008-04-10T14:43:08 INFO(0) Zope Set effective user to "zope" ------ 2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDoc ument: "manage" != "manage_main" ------ 2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDoc ument: "manage" != "manage_editForm" ------ 2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDoc ument: "manage" != "manage_editDocument" ------ 2008-04-10T14:43:14 INFO(0) ZODB Opening database for mounting: '146584832_1040950278.401039' ------ 2008-04-10T14:43:14 INFO(0) ZODB Mounted database '146584832_1040950278.401039' at /temp_folder ------ 2008-04-10T14:43:14 INFO(0) Zope Ready to handle requests New log file: 2008-04-10T16:45:20 INFO ZServer HTTP server started at Thu Apr 10 16:45:20 2008 Hostname: 0.0.0.0 Port: 8080 ------ 2008-04-10T16:45:20 WARNING Init Class Products.HappySession.HappySession.HappySess ion has a security declaration for nonexistent method 'manage_menu' ------ 2008-04-10T16:45:21 WARNING Init Ambiguous name for method of Products.ZpdfDocument .ZpdfDocument.ZpdfDocument: 'manage' != 'manage_main' ------ 2008-04-10T16:45:21 WARNING Init Ambiguous name for method of Products.ZpdfDocument .ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editDocument' ------ 2008-04-10T16:45:21 WARNING Init Ambiguous name for method of Products.ZpdfDocument .ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editForm' ------ 2008-04-10T16:45:22 INFO Zope Ready to handle requests W. --- Wes Modes McHenry Library Computing & Network Services Information and Technology Services 459-5208
--On 10. April 2008 21:04:40 -0700 Wes Modes <wmodes@ucsc.edu> wrote:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
If you upgrade then you should upgrade to the latest Zope version or at least to the latest 2.7 version. What's the reason for picking just _some_ 2.7 version? If you're application works then better stick with your working solution. 2.7 is out-dated since a long. If you really want to upgrade, then choose the latest 2.10 version. -aj
----- Original Message ----- From: "Wes Modes" <wmodes@ucsc.edu> To: <zope@zope.org> Sent: Friday, April 11, 2008 12:04 AM Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
What version of zope did you upgrade from? What happens when you try to access any of the problem objects via the ZMI? Jonathan
And do you see any errors when starting zope with zopectl fg ? (or do you see any errors in the log/event.log file?)
----- Original Message ----- From: "Wes Modes" <wmodes@ucsc.edu> To: <zope@zope.org> Sent: Friday, April 11, 2008 12:04 AM Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
What version of zope did you upgrade from? What happens when you try to access any of the problem objects via the ZMI?
Jonathan
_______________________________________________ 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 )
-- Martijn Jacobs Four Digits, Internet Solutions a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 091621370000 | btw: 8161.22.234.B01 e-mail: martijn@fourdigits.nl | web: http://www.fourdigits.nl tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117
Nope. No errors, with zopectl or in event.log. Starts happily, though clearly not pointing at my old content. Though it would seem /var/lib/zope/etc/zope.conf has the following correctly defined: %define INSTANCE /var/lib/zope %define ZOPE /usr/lib/zope instancehome $INSTANCE And my data files appear to be at /var/lib/zope/var/Data.fs with appropriate permissions and ownership. The file hasn't been touched since the time I did the upgrade, though the lock file in the same directory has. Still though, I get the "Resource not found" screen from every page I attempt to access. The university library relies on zope, so getting this fixed is the highest priority. As for why version 2.7.2? Well, I didn't intend to update at all, but an errant up2date, the RHEL rpm updater, did it for me. And since the previous sysadmin built it from source and possibly put some things in non-standard places, disaster strikes. And 2.7.2 was apparently the highest version for which rpms were available. I am concerned that an upgrade to the latest version would take days (maybe weeks) of work to reconcile differences, and resolve problems and dependencies. And worse case, it might never see all our zope data again. The highest priority here is to get it working ASAP. W. Martijn Jacobs wrote:
And do you see any errors when starting zope with zopectl fg ? (or do you see any errors in the log/event.log file?)
----- Original Message ----- From: "Wes Modes" <wmodes@ucsc.edu> To: <zope@zope.org> Sent: Friday, April 11, 2008 12:04 AM Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
What version of zope did you upgrade from? What happens when you try to access any of the problem objects via the ZMI?
Jonathan
_______________________________________________ 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 )
-- Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
Difficult problems can be analyzed in interactive Python sessions. Under *nix, you start such a session with "bin/zopectl debug" (under Windows, this does not work but there are alternatives). from request import getRequest request = getRequest() obj = request.traverse('pathpart_of_your_url') obj() If authentication is required, you use from request import getAuthRequest request = getAuthRequest(user, password) .... If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()" for better Zope support) to analyse them. -- Dieter
Dieter Maurer wrote at 2008-4-11 19:13 +0200:
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
Difficult problems can be analyzed in interactive Python sessions.
Under *nix, you start such a session with "bin/zopectl debug" (under Windows, this does not work but there are alternatives).
from request import getRequest request = getRequest() obj = request.traverse('pathpart_of_your_url') obj()
If authentication is required, you use
from request import getAuthRequest request = getAuthRequest(user, password) ....
If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()" for better Zope support) to analyse them.
I forgot. You can download "request.py" from http://www.dieter.handshake.de/pyprojects/zope/request.py In order to get rid of a deprecation warning, you must replace "Zope" with "Zope2". -- Dieter
Here's what I get in interactive python. I tried this earlier thanks to http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx *[root@library zope]# bin/zopectl debug* Starting debugger (the name "app" is bound to the top-level Zope object) 2008-04-11 10:36:53 WARNING Init Class Products.HappySession.HappySession.HappySession has a security declaration for nonexistent method 'manage_menu' /usr/lib/python2.3/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead. warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning) /usr/lib/zope/lib/python/Products/ZPyGreSQLDA/db.py:89: DeprecationWarning: the regex module is deprecated; please use the re module import _pg, regex, sys, types /usr/lib/zope/lib/python/Products/ZpdfDocument/ZpdfDocument.py:52: DeprecationWarning: Non-ASCII character '\xe2' in file /usr/lib/zope/lib/python/Products/ZpdfDocument/pdflib.py on line 355, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details import pdflib,elements 2008-04-11 10:36:54 WARNING Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_main' 2008-04-11 10:36:54 WARNING Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editDocument' 2008-04-11 10:36:54 WARNING Init Ambiguous name for method of Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editForm' 2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file /var/lib/zope/var/Data.fs.lock Traceback (most recent call last): File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable Traceback (most recent call last): File "<string>", line 1, in ? File "/usr/lib/zope/lib/python/Zope2/__init__.py", line 51, in app startup() File "/usr/lib/zope/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/lib/zope/lib/python/Zope2/App/startup.py", line 57, in startup DB = configuration.dbtab.getDatabase('/', is_root=1) File "/usr/lib/zope/lib/python/DBTab/DBTab.py", line 96, in getDatabase db = self._createDatabase(name, is_root) File "/usr/lib/zope/lib/python/DBTab/DBTab.py", line 113, in _createDatabase db = factory.open() File "/usr/lib/zope/lib/python/Zope2/Startup/datatypes.py", line 163, in open DB = self.createDB() File "/usr/lib/zope/lib/python/Zope2/Startup/datatypes.py", line 160, in createDB return ZODBDatabase.open(self) File "/usr/lib/zope/lib/python/ZODB/config.py", line 97, in open storage = section.storage.open() File "/usr/lib/zope/lib/python/ZODB/config.py", line 133, in open quota=self.config.quota) File "/usr/lib/zope/lib/python/ZODB/FileStorage/FileStorage.py", line 112, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable >>> from request import getRequest Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named request *>>> import Zope2, ZPublisher* *>>> ZPublisher.Zope('/')* /usr/lib/zope/lib/python/ZPublisher/Publish.py:247: DeprecationWarning: The Zope package has been renamed to Zope2. Import of a package named 'Zope' is deprecated and will be disabled starting in Zope 2.11. module=__import__(module_name, g, g, ('__doc__',)) Status: 200 OK X-Powered-By: Zope (www.zope.org), Python (www.python.org) Content-Length: 0 ____________________________________________________________ *>>> ZPublisher.Zope('/manage')* Status: 404 Not Found X-Powered-By: Zope (www.zope.org), Python (www.python.org) Bobo-Exception-Line: 644 Content-Length: 868 Bobo-Exception-Value: See the server error log for details Content-Type: text/html Bobo-Exception-Type: zExceptions.NotFound Bobo-Exception-File: HTTPResponse.py <table border="0" width="100%"> <tr valign="top"> <td width="10%" align="center"> </td> <td width="90%"> <h2>Site Error</h2> <p>An error was encountered while publishing this resource. </p> <p><strong>Resource not found</strong></p> Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p><b>Resource:</b> http://127.0.0.1/Zope/manage</p> <hr noshade="noshade"/> <p>Troubleshooting Suggestions</p> <ul> <li>The URL may be incorrect.</li> <li>The parameters passed to this resource may be incorrect.</li> <li>A resource that this resource relies on may be encountering an error.</li> </ul> <p>For more detailed information about the error, please refer to error log. </p> <p>If the error persists please contact the site maintainer. Thank you for your patience. </p> </td></tr> ____________________________________________________________ </table> Lots of warnings and some errors, but I don't know which are ignorable and which are critical. There are some suspicious errors here, but I don't know where these clues lead... W. Dieter Maurer wrote:
Dieter Maurer wrote at 2008-4-11 19:13 +0200:
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
Difficult problems can be analyzed in interactive Python sessions.
Under *nix, you start such a session with "bin/zopectl debug" (under Windows, this does not work but there are alternatives).
from request import getRequest request = getRequest() obj = request.traverse('pathpart_of_your_url') obj()
If authentication is required, you use
from request import getAuthRequest request = getAuthRequest(user, password) ....
If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()" for better Zope support) to analyse them.
I forgot. You can download "request.py" from
http://www.dieter.handshake.de/pyprojects/zope/request.py
In order to get rid of a deprecation warning, you must replace "Zope" with "Zope2".
-- Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208
----- Original Message ----- From: "Wes Modes" <wmodes@ucsc.edu> To: "Dieter Maurer" <dieter@handshake.de>; <zope@zope.org> Sent: Friday, April 11, 2008 1:44 PM Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable
2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file /var/lib/zope/var/Data.fs.lock Traceback (most recent call last): File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable
Make sure you have read/write access to the /var/lib/zope/var directory and that is 'owned' by 'zope' Jonathan
Better yet, here's a more informative debug output. It tells me that zope thinks this is a new instance. Though the old database is it place right where it should expect to see it. *[root@library zope]# bin/zopectl debug* Starting debugger (the name "app" is bound to the top-level Zope object) 2008-04-11 12:04:05 WARNING Init Class Products.HappySession.HappySession.HappySession has a security declaration for nonexistent method 'manage_menu' [snipped a bunch of warnings...] *>>> import Zope, ZPublisher* *>>> ZPublisher.Zope('')* Status: 200 OK X-Powered-By: Zope (www.zope.org), Python (www.python.org) Content-Length: 4066 Content-Type: text/html [snipped a bunch of html and helpful info] Zope Quick Start You have not created any users in this Zope instance. In order to log in and manage this Zope instance, you'll need to add an adminstrative user account. If you're running Zope on UNIX or Linux, you can create an administrative user account via the "zopectl adduser" command from a shell. <b>Note: You'll need to shut Zope itself down before "zopectl adduser" will work. Restart Zope after executing this command in order to log in.</b> WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a supported combination. Don't file bugreports or ask for support on zope.org. ____________________________________________________________ And apparently, I'm running 2.8.7 not 2.7.2 as I thought. And I'm not supposted to ask you for help. Help! W.
Dieter Maurer wrote:
Dieter Maurer wrote at 2008-4-11 19:13 +0200:
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
Difficult problems can be analyzed in interactive Python sessions.
Under *nix, you start such a session with "bin/zopectl debug" (under Windows, this does not work but there are alternatives).
from request import getRequest request = getRequest() obj = request.traverse('pathpart_of_your_url') obj()
If authentication is required, you use
from request import getAuthRequest request = getAuthRequest(user, password) ....
If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()" for better Zope support) to analyse them.
I forgot. You can download "request.py" from
http://www.dieter.handshake.de/pyprojects/zope/request.py
In order to get rid of a deprecation warning, you must replace "Zope" with "Zope2".
--
Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208 ------------------------------------------------------------------------
_______________________________________________ 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 )
-- Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208
have you used locate or any other utility to make sure you only have one Zope installed, like "locate zope.conf" ? Thomas On Friday 11 April 2008 15:14, Wes Modes wrote:
Better yet, here's a more informative debug output. It tells me that zope thinks this is a new instance. Though the old database is it place right where it should expect to see it.
*[root@library zope]# bin/zopectl debug* Starting debugger (the name "app" is bound to the top-level Zope object) 2008-04-11 12:04:05 WARNING Init Class Products.HappySession.HappySession.HappySession has a security declaration for nonexistent method 'manage_menu' [snipped a bunch of warnings...]
*>>> import Zope, ZPublisher*
*>>> ZPublisher.Zope('')*
Status: 200 OK X-Powered-By: Zope (www.zope.org), Python (www.python.org) Content-Length: 4066 Content-Type: text/html
[snipped a bunch of html and helpful info] Zope Quick Start You have not created any users in this Zope instance. In order to log in and manage this Zope instance, you'll need to add an adminstrative user account.
If you're running Zope on UNIX or Linux, you can create an administrative user account via the "zopectl adduser" command from a shell. <b>Note: You'll need to shut Zope itself down before "zopectl adduser" will work. Restart Zope after executing this command in order to log in.</b>
WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a supported combination. Don't file bugreports or ask for support on zope.org. ____________________________________________________________
And apparently, I'm running 2.8.7 not 2.7.2 as I thought. And I'm not supposted to ask you for help. Help!
W.
Dieter Maurer wrote:
Dieter Maurer wrote at 2008-4-11 19:13 +0200:
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope. Honestly I'm not sure what the previous version I was running was (nor am I sure how to find out).
Now, every page results in
Site Error An error was encountered while publishing this resource. Resource not found Sorry, the requested resource does not exist. Check the URL and try again. Resource: Zope GET
Difficult problems can be analyzed in interactive Python sessions.
Under *nix, you start such a session with "bin/zopectl debug" (under Windows, this does not work but there are alternatives).
from request import getRequest request = getRequest() obj = request.traverse('pathpart_of_your_url') obj()
If authentication is required, you use
from request import getAuthRequest request = getAuthRequest(user, password) ....
If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()" for better Zope support) to analyse them.
I forgot. You can download "request.py" from
http://www.dieter.handshake.de/pyprojects/zope/request.py
In order to get rid of a deprecation warning, you must replace "Zope" with "Zope2".
--
Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208 ------------------------------------------------------------------------
_______________________________________________ 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 )
-- ==================================================================== Thomas McMillan Grant Bennett Appalachian State University Operations & Systems Analyst P O Box 32026 University Library Boone, North Carolina 28608 (828) 262 6587 "... using OpenOffice.org, and save them back to disk automatically, in MS Word format. They surf the Web, check e-mail, do instant messsaging, view YouTube videos, visit their Facebook pages, learn touch-typing skills and lots more. Our public library has been offering these Linux public stations for the past three years." - Phil Shapiro Linux Journal January 2008 Library Systems Help Desk: https://www.library.appstate.edu/help/ ====================================================================
Wes Modes wrote at 2008-4-11 10:44 -0700:
... File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable
This may be the essential hint. It tells you that the storage file is still used by a different process. In such a case, the ZODB cannot be opened. Ensure that no process uses the storage file.
>>> from request import getRequest Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named request
In my original message, I have written where you can find the request module. You must put it somewhere in your file system where Python looks for modules to import. -- Dieter
Wes Modes wrote at 2008-4-11 10:44 -0700:
... File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in __init__ lock_file(self._fp) File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in lock_file fcntl.flock(file.fileno(), _flags) IOError: [Errno 11] Resource temporarily unavailable
This may be the essential hint.
It tells you that the storage file is still used by a different process. In such a case, the ZODB cannot be opened.
Ensure that no process uses the storage file.
If this was an (ahem) 'unscheduled upgrade', the old Zope process(es) may be hanging around using the file. The 'ps', 'lsof' and 'kill' commands may help you here. Cheers, Dan -- Dan Fairs <dan.fairs@gmail.com> | http://www.stereoplex.com/
Thanks everyone for the help. It was a combination of useful suggestions, blind optimism, tenacious persistence, and fervent desire to keep my job that eventually solved the problem. It was neither super simple, not really complex. The list of things I tried spans 6 pages in my notebook, so I won't bore you with that. But I will give you a quickie summary. The Problem: A previous sysadmin had built both zope and python from source. As is often the case, things end up in non-standard locations (or the standard locations change over time). So with the monthly system software updates, the installer (Red Hat EL 4's up2date program, based on yum) gave me new versions of zope and python. I apparently went from Zope 2.7.2 to Zope 2.10.5 and from Python 2.3.X to Python 2.5.2. I had no intention of updating either package, but neither was in the up2date exceptions file. After the update, zope was still running but wasn't serving any content. Even the ZMI and the Congratulations page were unavailable. I could see that the data storage had not been lost, but nor had it been touched since the update. I tried all sorts of things to get everything working again, but it looked like my best bet would be to install the latest versions of Zoep and Python and then import the old data. So that's the path I took. The Solution: I rebuilt both zope and python to the most current stable versions. In attempting to make the new packages work together, I noted that the old versions of python were installed in /usr/lib and the new versions were installed in /usr/local/lib. So even when I went back to a 2.4.X version of python it couldn't find all of the modules that had been earlier built for it. Once I moved some of the needed modules over, and rebuilt others, zope at least started working normally. Then after I moved the old data into place and restarted zope, all of the content returned. Summary: Be careful when updating python, it may leave all of its modules behind. Wes -- Wes Modes Server Administrator & Programmer Analyst McHenry Library Computing & Network Services Information and Technology Services 459-5208
So was this RHEL machine customized to update ZOPE with YUM or Up2date or is this a default. I have been using Fedora and CentOS (both built from redhat dist.) for some time now and haven't seen this issue. This would be nice to know seeing that I am currently moving all my linux servers to RHEL5. Thanks Thomas On Monday 14 April 2008 14:25, Wes Modes wrote:
Thanks everyone for the help. It was a combination of useful suggestions, blind optimism, tenacious persistence, and fervent desire to keep my job that eventually solved the problem.
It was neither super simple, not really complex. The list of things I tried spans 6 pages in my notebook, so I won't bore you with that. But I will give you a quickie summary.
The Problem: A previous sysadmin had built both zope and python from source. As is often the case, things end up in non-standard locations (or the standard locations change over time). So with the monthly system software updates, the installer (Red Hat EL 4's up2date program, based on yum) gave me new versions of zope and python. I apparently went from Zope 2.7.2 to Zope 2.10.5 and from Python 2.3.X to Python 2.5.2. I had no intention of updating either package, but neither was in the up2date exceptions file.
After the update, zope was still running but wasn't serving any content. Even the ZMI and the Congratulations page were unavailable. I could see that the data storage had not been lost, but nor had it been touched since the update. I tried all sorts of things to get everything working again, but it looked like my best bet would be to install the latest versions of Zoep and Python and then import the old data. So that's the path I took.
The Solution: I rebuilt both zope and python to the most current stable versions. In attempting to make the new packages work together, I noted that the old versions of python were installed in /usr/lib and the new versions were installed in /usr/local/lib. So even when I went back to a 2.4.X version of python it couldn't find all of the modules that had been earlier built for it. Once I moved some of the needed modules over, and rebuilt others, zope at least started working normally.
Then after I moved the old data into place and restarted zope, all of the content returned.
Summary: Be careful when updating python, it may leave all of its modules behind.
Wes
-- ==================================================================== Thomas McMillan Grant Bennett Appalachian State University Operations & Systems Analyst P O Box 32026 University Library Boone, North Carolina 28608 (828) 262 6587 "... using OpenOffice.org, and save them back to disk automatically, in MS Word format. They surf the Web, check e-mail, do instant messsaging, view YouTube videos, visit their Facebook pages, learn touch-typing skills and lots more. Our public library has been offering these Linux public stations for the past three years." - Phil Shapiro Linux Journal January 2008 Library Systems Help Desk: https://www.library.appstate.edu/help/ ====================================================================
participants (7)
-
Andreas Jung -
Dan Fairs -
Dieter Maurer -
Jonathan -
Martijn Jacobs -
Thomas Bennett -
Wes Modes