HI all, I am having some strange behavior with zope. When I log into manage I get the following error: 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: sequence-odd ________________________________________________________________________ Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to error log. If the error persists please contact the site maintainer. Thank you for your patience. I can't figure out what I may have done to cause this but I can't access my root folder now. Any hints on how to fix this would be most appreciated. Thanks Aaron
Aaron wrote:
HI all,
I am having some strange behavior with zope.
Need more info. What version of Zope? What installed Products? What version of Python? What platform? What's the full exception type, value and traceback you see? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
On ג', 2004-05-25 at 17:17, Chris Withers wrote:
Aaron wrote:
HI all,
I am having some strange behavior with zope.
Need more info.
What version of Zope? 7.1 What installed Products? aamehl@XANNVYQD439:~$ ls /zopehome/instancehome/Products/ AbracadabraObject-2.0.1.tar.gz LocalFS_Patched.zip Archetypes mxDateTime-0.3.0.tgz Audio MySQL-python-0.9.3b1 BTreeFolder2 MySQL-python-0.9.3b1.tar.gz CMFActionIcons NeoBoard CMFAudio NeoPortalContentPak CMFCalendar NeoPortalLibrary CMFCore PloneErrorReporting CMFDefault PortalTransforms CMFFormController PVS CMFPlone README.txt CMFPlone-2.0-final sql2form-20030523 CMFPlone-2.0-final.tar.gz sqlsearch.txt CMFQuickInstallerTool validation CMFTopic ZFloatMenu DCWorkflow ZFloatMenu-2.0.1.tgz ExternalStorage zopeMyAdmin.tar.gz Formulator ZPhotoSlides generator ZWiki GroupUserFolder ZWiki-0.30.0rc2.tgz LocalFS
What version of Python? 2.3.3
What platform? Linus Debian
What's the full exception type, value and traceback you see? 2004-05-25T07:07:43 PROBLEM(100) Init Ambiguous name for method of Products.Audio.Audio.Audio: "manage_main" != "manage" ZCatalog query using 'end_usage' detected. Using query parameters ending with '_usage' is deprecated. Consider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details) warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)" % usage_param, DeprecationWarning) /zopehome/lib/python/Products/PluginIndexes/common/util.py:77: DeprecationWarning: ZCatalog query using 'start_usage' detected. Using query parameters ending with '_usage' is deprecated. Consider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details) warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)" % usage_param, DeprecationWarning)
When I click on the root folder in the manage interface I get the following: 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: sequence-odd ________________________________________________________________________ Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to error log. If the error persists please contact the site maintainer. Thank you for your patience. ------------------------------------- Where can I find other information? Thanks Aaron
Chris
On Thu, May 27, 2004 at 06:44:20AM +0300, Aaron wrote:
What's the full exception type, value and traceback you see? 2004-05-25T07:07:43 PROBLEM(100) Init Ambiguous name for method of Products.Audio.Audio.Audio: "manage_main" != "manage"
A warning, not really an error; I've seen this plenty of times, you can ignore it.
ZCatalog query using 'end_usage' detected. Using query parameters ending with '_usage' is deprecated. Consider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details) warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)" % usage_param, DeprecationWarning) /zopehome/lib/python/Products/PluginIndexes/common/util.py:77: DeprecationWarning: ZCatalog query using 'start_usage' detected. Using query parameters ending with '_usage' is deprecated. Consider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details) warn("\nZCatalog query using '%s' detected.\nUsing query parameters ending with '_usage' is deprecated.\nConsider using record-style parameters instead (see lib/python/Products/PluginIndexes/README.txt for details)" % usage_param, DeprecationWarning)
That's all just deprecation warnings, safe to ignore. None of these are your problem...
When I click on the root folder in the manage interface I get the following: 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: sequence-odd
This is unrelated to any of the above. Sounds like you referred to sequence-odd somewhere other than inside a <dtml-in> tag. Or perhaps you used the "prefix" attribute of dtml-in so sequence-odd is no longer the right name. I'm just guessing without seeing the code. You say you get this just by clicking on the root folder in the ZMI??? That's weird. What is the URL of that link? Should be something like http://localhost:8080/manage See if you can get to the error log: http://your-zope-host:8080/error_log/manage_main It should show a full traceback of this Site Error. It may be that a broken Product is causing you problems. That shouldn't affect the root of your ZMI, but it's not impossible. Try temporarily moving all the contents of Products/ into a temporary directory and restart. If that fixes your broken ZMI problem, you know it's a product bug. To find out which product, move the Product subdirectories from your temp dir. back into Products *one at a time*, restarting after each one, and see if one of them triggers the error. -- Paul Winkler http://www.slinkp.com
hi again here is what I get with http://xannvyqd439:8080/error_log/manage_main This page lists the exceptions that have occurred in this site recently. You can configure how many exceptions should be kept and whether the exceptions should be copied to Zope's event log file(s). Number of exceptions to keep 20 Copy exceptions to the event log Ignored exception types Unauthorized NotFound Redirect Exception Log (most recent first) No exceptions logged. I think I will try removing the last few Products I added an see if this does something. Thanks Aaron
On Thu, May 27, 2004 at 10:42:25AM +0300, Aaron wrote:
hi again here is what I get with http://xannvyqd439:8080/error_log/manage_main
This page lists the exceptions that have occurred in this site recently. You can configure how many exceptions should be kept and whether the exceptions should be copied to Zope's event log file(s).
Number of exceptions to keep 20
Copy exceptions to the event log
Ignored exception types Unauthorized NotFound Redirect
Remove NotFound from that list and provoke the error again. Normally you don't want 404s clogging up the error log, but in this case you need to see it - the SiteError you posted before is what you get when NotFound is raised. -- Paul Winkler http://www.slinkp.com
Time Username (User Id) Exception 18:52:48 aamehl (aamehl) NotFound: http://xannvyqd439:8080/manage_main 18:49:14 aamehl (aamehl) NotFound: http://xannvyqd439:8080/manage_main does this mean that I deleted my root folder?? thanks Aaron
Paul Winkler wrote at 2004-5-27 01:56 -0400:
...
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: sequence-odd
This reminds me of a "LocalFS" incompatibility with Zope 2.7. Some Andreas (Heckel, I think) has a working "LocalFS" for Zope 2.7. -- Dieter
On Thu, May 27, 2004 at 07:51:46PM +0200, Dieter Maurer wrote:
Paul Winkler wrote at 2004-5-27 01:56 -0400:
...
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: sequence-odd
This reminds me of a "LocalFS" incompatibility with Zope 2.7. Some Andreas (Heckel, I think) has a working "LocalFS" for Zope 2.7.
Oh yeah, thanks for the reminder. LocalFS was indeed broken for 2.7. Andreas' version is here: http://www.easyleading.org/Downloads LocalFS has historically had a nasty habit of making its *parent* folder unuseable if it encounters various problems, e.g. is pointed to the wrong folder. Very very bad. I sent Andreas a patch for that, which is in his CVS tree now. -- Paul Winkler http://www.slinkp.com
Thanks, will this give me back my root? Aaron On ה', 2004-05-27 at 21:50, Paul Winkler wrote:
On Thu, May 27, 2004 at 07:51:46PM +0200, Dieter Maurer wrote:
Paul Winkler wrote at 2004-5-27 01:56 -0400:
...
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: sequence-odd
This reminds me of a "LocalFS" incompatibility with Zope 2.7. Some Andreas (Heckel, I think) has a working "LocalFS" for Zope 2.7.
Oh yeah, thanks for the reminder. LocalFS was indeed broken for 2.7. Andreas' version is here: http://www.easyleading.org/Downloads
LocalFS has historically had a nasty habit of making its *parent* folder unuseable if it encounters various problems, e.g. is pointed to the wrong folder. Very very bad. I sent Andreas a patch for that, which is in his CVS tree now.
On Thu, May 27, 2004 at 10:16:14PM +0300, Aaron wrote:
Thanks, will this give me back my root?
I have no idea. Try it.
Aaron On ??', 2004-05-27 at 21:50, Paul Winkler wrote:
On Thu, May 27, 2004 at 07:51:46PM +0200, Dieter Maurer wrote:
Paul Winkler wrote at 2004-5-27 01:56 -0400:
...
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: sequence-odd
This reminds me of a "LocalFS" incompatibility with Zope 2.7. Some Andreas (Heckel, I think) has a working "LocalFS" for Zope 2.7.
Oh yeah, thanks for the reminder. LocalFS was indeed broken for 2.7. Andreas' version is here: http://www.easyleading.org/Downloads
LocalFS has historically had a nasty habit of making its *parent* folder unuseable if it encounters various problems, e.g. is pointed to the wrong folder. Very very bad. I sent Andreas a patch for that, which is in his CVS tree now.
-- Paul Winkler http://www.slinkp.com
Aaron wrote:
Thanks, will this give me back my root?
I have no idea. Try it.
no such luck :(
Okay, how about clicking on that NotFound error in the error_log and giving us a traceback to play with? ;-) Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Here it is, Sorry I was away for awhile and never sent this. Aaron ------------------------------------------------------------ Exception traceback Time 2004/05/31 12:16:02.080 GMT+3 User Name (User Id) aamehl (aamehl) Request URL http://xannvyqd439:8080/manage_main Exception Type NotFound Exception Value http://xannvyqd439:8080/manage_main Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Shared.DC.Scripts.Bindings, line 306, in __call__ * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec * Module App.special_dtml, line 175, in _exec * Module DocumentTemplate.DT_Let, line 76, in render * Module DocumentTemplate.DT_In, line 703, in renderwob * Module Products.LocalFS.LocalFS, line 489, in __getattr__ * Module Products.LocalFS.LocalFS, line 535, in _safe_getOb * Module ZPublisher.HTTPResponse, line 630, in notFoundError NotFound: <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> sequence-odd</p> <HR 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> Display traceback as text REQUEST form cookies tutorialExamplesURL 'http://xannvyqd439:9080/nigunim/zopetutorial/examples' tree-s 'eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWLSwSJGvGlQgEegADABAR' _ZopeId '16841667A1V3YUrzr0Q' lazy items SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager instance at 417a4c20>> other rkey '' skey 'id' TraversalRequestNameStack [] AUTHENTICATED_USER aamehl URL 'http://xannvyqd439:8080/manage_main' n_ 6 SERVER_URL 'http://xannvyqd439:8080' AUTHENTICATION_PATH '' traverse_subpath [] BASE1 'http://xannvyqd439:8080' BASE2 'http://xannvyqd439:8080/manage_main' management_page_charset 'iso-8859-1' a_ 0 PUBLISHED <DTMLFile instance at 4020e540> URL1 'http://xannvyqd439:8080' BASEPATH1 '' URL0 http://xannvyqd439:8080/manage_main URL1 http://xannvyqd439:8080 BASE0 http://xannvyqd439:8080 BASE1 http://xannvyqd439:8080 BASE2 http://xannvyqd439:8080/manage_main environ HTTP_ACCEPT 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1' HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040216 Debian/1.6.x.1-10' SERVER_PORT '8080' HTTP_REFERER 'http://xannvyqd439:8080/manage' SERVER_NAME 'XANNVYQD439.actcom.co.il' GATEWAY_INTERFACE 'CGI/1.1' channel.creation_time 1085994940 REMOTE_ADDR '172.25.96.11' SERVER_SOFTWARE 'Zope/(unreleased version, python 2.3.3, linux2) ZServer/1.1 Plone/2.0-final' SCRIPT_NAME '' REQUEST_METHOD 'GET' HTTP_HOST 'xannvyqd439:8080' HTTP_KEEP_ALIVE '300' SERVER_PROTOCOL 'HTTP/1.1' PATH_TRANSLATED '/manage_main' CONNECTION_TYPE 'keep-alive' HTTP_ACCEPT_ENCODING 'gzip,deflate' HTTP_COOKIE '_ZopeId="16841667A1V3YUrzr0Q"; tree-s="eJzTyCkw5NLIKTDiClZ3hANXW3WuAmOuRKCECUjWFEnWLSwSJGvGlQgEegADABAR"; tutorialExamplesURL="http://xannvyqd439:9080/nigunim/zopetutorial/examples"' PATH_INFO '/manage_main' ------------------------------------------------------------- On ב', 2004-05-31 at 11:59, Chris Withers wrote:
Aaron wrote:
Thanks, will this give me back my root?
I have no idea. Try it.
no such luck :(
Okay, how about clicking on that NotFound error in the error_log and giving us a traceback to play with? ;-)
Chris
Aaron wrote:
* Module Products.LocalFS.LocalFS, line 489, in __getattr__ * Module Products.LocalFS.LocalFS, line 535, in _safe_getOb
Yup, looks like LocalFS is the culprit. Get rid of it for now... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Thanks I will do. Aaron On ב', 2004-05-31 at 13:17, Chris Withers wrote:
Aaron wrote:
* Module Products.LocalFS.LocalFS, line 489, in __getattr__ * Module Products.LocalFS.LocalFS, line 535, in _safe_getOb
Yup, looks like LocalFS is the culprit. Get rid of it for now...
Chris
removed it and the error continues... Aaron On ב', 2004-05-31 at 13:17, Chris Withers wrote:
Aaron wrote:
* Module Products.LocalFS.LocalFS, line 489, in __getattr__ * Module Products.LocalFS.LocalFS, line 535, in _safe_getOb
Yup, looks like LocalFS is the culprit. Get rid of it for now...
Chris
On Mon, May 31, 2004 at 09:24:44PM +0300, Aaron wrote:
removed it and the error continues...
Did you remove the LocalFS directory from your Products directory? Did you restart Zope? If LocalFS is no longer installed, it is impossible that you would get exactly the same traceback. Please check that you really uninstalled LocalFS by removing its directory on the filesystem and restarting Zope. Then give us the complete traceback of the error you get now. -- Paul Winkler http://www.slinkp.com
Oh I thought removing the product was enough. I will do it a get back to the group thanks Aaron On ג', 2004-06-01 at 16:49, Paul Winkler wrote:
On Mon, May 31, 2004 at 09:24:44PM +0300, Aaron wrote:
removed it and the error continues...
Did you remove the LocalFS directory from your Products directory? Did you restart Zope?
If LocalFS is no longer installed, it is impossible that you would get exactly the same traceback.
Please check that you really uninstalled LocalFS by removing its directory on the filesystem and restarting Zope. Then give us the complete traceback of the error you get now.
Thanks, crazy I had the LocalFS product in twice without realizing it, how stupid can I be. Now all is well. thanks for sticking with me on this one, sorry for the bother. Aaron
Paul Winkler wrote:
What's the full exception type, value and traceback you see? 2004-05-25T07:07:43 PROBLEM(100) Init Ambiguous name for method of Products.Audio.Audio.Audio: "manage_main" != "manage"
A warning, not really an error; I've seen this plenty of times, you can ignore it.
Urm, it's a security issue, and that warning explains that the security assertions are ambiguous. The author of the Audip Product needs to fix this...
That's all just deprecation warnings, safe to ignore.
Yeah, is it just me or is Python's warnings package pretty damn useless? (no tracebacks, for example...) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris Withers wrote at 2004-5-31 09:58 +0100:
... Yeah, is it just me or is Python's warnings package pretty damn useless? (no tracebacks, for example...)
It must be you ;-) It is very easy to turn warnings into exceptions and then you will get tracebacks. It is also quite easy to hook into the warning system and change the way it works -- should you really need it... -- Dieter
Dieter Maurer wrote:
It is very easy to turn warnings into exceptions and then you will get tracebacks.
Really? How? Oh, don't tell me: Google. Right, okay, can't find it? No suprise there then... where'd you find it? You won't tell anyone? OK, no change from normal there then... right, that's a bit of bandwidth saved ;-)
It is also quite easy to hook into the warning system and change the way it works -- should you really need it...
Then why doesn't Zope do this by default? I see no value in having a warning print a one line text message with no context that could come close to even helping you find out what code is triggering the problem. Chris - SearchIndex anyone?! -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Chris Withers wrote at 2004-6-1 15:07 +0100:
Dieter Maurer wrote:
It is very easy to turn warnings into exceptions and then you will get tracebacks.
Really? How? Oh, don't tell me: Google. Right, okay, can't find it?
Google is not bad, but for this kind of question there is a more natural place to look at -- the most natural place you can imagine: the documentation for Python's "warnings" module.
No suprise Surprise: Python comes with documentation ;-)
Look into it when you want to get answers about Python ...
...
It is also quite easy to hook into the warning system and change the way it works -- should you really need it...
Then why doesn't Zope do this by default?
Probably because it does not feel the need -- neither do I, for example.
I see no value in having a warning print a one line text message with no context that could come close to even helping you find out what code is triggering the problem.
The one line usually tells you in what module and what line the warning was issued: e.g.:
warn('abc',DeprecationWarning) /home/dieter/.pyrc.py:1: DeprecationWarning: abc
This has been enough for all warning I have really cared for. (I used the warning filter feature to discard most "DeprecationWarning"s as they usually are abused). -- Dieter
participants (4)
-
Aaron -
Chris Withers -
Dieter Maurer -
Paul Winkler