[Zope] Upgrade to 2.7.2 results in all content unavailable

Wes Modes wmodes at ucsc.edu
Fri Apr 11 13:44:47 EDT 2008


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 at 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">
    &nbsp;
    </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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20080411/b96dbbe8/attachment.htm


More information about the Zope mailing list