Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Il giorno gio, 05/01/2006 alle 07.47 -0500, Stephan Richter ha scritto: > Darn, this is a dangerous feature. Sigh. The latest version doesn't enable it by default (I was using an old version). However the feature can also be disabled server-side: (from the FAQ) +++ Prior to generating any prefetching requests, Fasterfox checks for a file named "robots.txt" in your site's root directory (subdirectories are not checked). If this file contains the following 2 lines, no prefetching requests will be made to your domain: User-agent: Fasterfox Disallow: / +++ Regards -- Marco ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Marco Groppo wrote: Il giorno gio, 05/01/2006 alle 09.01 -0500, Jim Fulton ha scritto: Of course, this doesn't explain the test failures or the "Shouldn't load state for ... when the connection is closed" errors. I've reinstalled Zope and now the functional tests pass! And I can't reproduce the other error ("shouldn't load...") anymore, even if I enable FasterFox and "stress" the db with many requests. I don't know what I had done, but I wasn't using multiple DBs... Strange. OK. :) Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Il giorno gio, 05/01/2006 alle 09.01 -0500, Jim Fulton ha scritto: > Of course, this doesn't explain the test failures or the "Shouldn't > load state for ... when the connection is closed" errors. I've reinstalled Zope and now the functional tests pass! And I can't reproduce the other error ("shouldn't load...") anymore, even if I enable FasterFox and "stress" the db with many requests. I don't know what I had done, but I wasn't using multiple DBs... -- Marco ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Marco Groppo wrote: Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: Did you have the problem with beta 2? Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't notice that the problem was Firefox... The problem was due to a Firefox extension (FasterFox) which I installed sometime ago (I had even forgotten of its existence...). This extension periodically downloads all static pages linked by the current page; since the names of the views usually finish in .html it thinks that they are static pages :-( and when the browser loads the ZMI page it gets in background /@@find.html, /@@grant.html,... and of course: /@@undo.html! I'm really sorry, I should have read the log yesterday :-( (the reason why I didn't notice this problem with previous versions is that probably I didn't have FasterFox enabled...) Of course, this doesn't explain the test failures or the "Shouldn't load state for ... when the connection is closed" errors. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
On Thursday 05 January 2006 06:10, Marco Groppo wrote: > Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: > > Did you have the problem with beta 2? > > Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't > notice that the problem was Firefox... The problem was due to a Firefox > extension (FasterFox) which I installed sometime ago (I had even > forgotten of its existence...). This extension periodically downloads > all static pages linked by the current page; since the names of the > views usually finish in .html it thinks that they are static > pages :-( and when the browser loads the ZMI page it gets in background > /@@find.html, /@@grant.html,... and of course: /@@undo.html! > I'm really sorry, I should have read the log yesterday :-( > (the reason why I didn't notice this problem with previous versions is > that probably I didn't have FasterFox enabled...) Darn, this is a dangerous feature. Sigh. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: > Did you have the problem with beta 2? Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't notice that the problem was Firefox... The problem was due to a Firefox extension (FasterFox) which I installed sometime ago (I had even forgotten of its existence...). This extension periodically downloads all static pages linked by the current page; since the names of the views usually finish in .html it thinks that they are static pages :-( and when the browser loads the ZMI page it gets in background /@@find.html, /@@grant.html,... and of course: /@@undo.html! I'm really sorry, I should have read the log yesterday :-( (the reason why I didn't notice this problem with previous versions is that probably I didn't have FasterFox enabled...) Regards, -- Marco ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Marco Groppo wrote: I forgot to say that some times I get this error when I try to access a ZODB object (it doesn't matter what kind of object): +++ ERROR ZODB.Connection Shouldn't load state for 0x36 when the connection is closed Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/home/marco/apps/zope3.2/lib/python/twisted/python/threadpool.py", line 149, in _worker context.call(ctx, function, *args, **kwargs) File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- --- File "/home/marco/apps/zope3.2/lib/python/twisted/web2/wsgi.py", line 139, in run result = self.application(self.environment, self.startWSGIResponse) File "/home/marco/apps/zope3.2/lib/python/zope/app/wsgi/__init__.py", line 49, in __call__ request = self.requestFactory(environ['wsgi.input'], environ) File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 62, in __call__ request_class, publication_class = chooseClasses(method, env) File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 34, in chooseClasses request_class, publication = factory() File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/requestpublicationfactories.py", line 79, in __call__ request_class = component.queryUtility( File "/home/marco/apps/zope3.2/lib/python/zope/component/__init__.py", line 260, in queryUtility return getSiteManager(context).queryUtility(interface, name, default) File "/home/marco/apps/zope3.2/lib/python/ZODB/Connection.py", line 729, in setstate raise ConnectionStateError(msg) ZODB.POSException.ConnectionStateError: Shouldn't load state for 0x36 when the connection is closed +++ ...and then, if I reload the page, the problem can magically disappear, and if I request the view another time I can get the error again, and so on and so on... it seems to me that the behaviour is totally random. Does anybody know what's going on? For some reason, a database connection wasn't closed properly. Is there anything special about your setup? Is this a plain Zope install? Are you using ZEO? Are you using a single database? Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Marco Groppo wrote: Hi! I'm experiencing some "strange" problems with Zope 3.2.0b3 Did you have the problem with beta 2? > on GNU/Linux (Ubuntu Breezy i386, kernel 2.6.12, python 2.4.2, gcc 3.4). If I add an object to the root folder (for example using the ZMI) and I try to see one of its browser views Zope sends me a 404 error page. If I add more objects and then I try to delete one of them, sometimes I can still see the object after the deletion (even if I reload the page) and sometimes (for example if I try to reload the page one more time) I can't. Weird. I haven't seen this. (obviously) > I tried to run the tests with 'make check' and the result was: Ran 8033 tests with 0 failures and 0 errors in 604.001 seconds. If I test the installation with bin/zopetest: +++ Running unit tests: Ran 7650 tests with 0 failures and 0 errors in 298.561 seconds. Running zope.app.testing.functional.Functional tests: Set up zope.app.testing.functional.Functional Traceback (most recent call last): File "./zopetest", line 39, in ? sys.exit(testrunner.run(defaults)) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 238, in run failed = run_with_options(options) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 391, in run_with_options setup_layers, failures, errors) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 557, in run_layer setup_layer(layer, setup_layers) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 632, in setup_layer layer.setUp() File "/home/marco/zope3.2/lib/python/zope/app/testing/functional.py", line 197, in setUp FunctionalTestSetup(self.config_file) File "/home/marco/zope3.2/lib/python/zope/app/testing/functional.py", line 139, in __init__ self.app = Debugger(self.db, config_file) File "/home/marco/zope3.2/lib/python/zope/app/debug/debug.py", line 35, in __init__ config(config_file) File "/home/marco/zope3.2/lib/python/zope/app/appsetup/appsetup.py", line 110, in config context = xmlconfig.file(file, context=context, execute=execute) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 554, in file include(context, name, package) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 483, in include f = openInOrPlain(path) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 394, in openInOrPlain fp = open(filename) IOError: [Errno 2] No such file or directory: '/home/marco/zope3.2/bin/ftesting.zcml' +++ This is very odd. I can't reproduce this. I have installed Zope 3.2 b3 on Windows also and I haven't noticed any problem so far. Maybe you should try the linux installation process again. Is anyone else seeing symptoms like these? P.S.: sorry for my English... It looks good to me. :) Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Marco Groppo wrote: ...and then, if I reload the page, the problem can magically disappear, and if I request the view another time I can get the error again, and so on and so on... it seems to me that the behaviour is totally random. Does anybody know what's going on? I don't. But the apparent randomness might be caused by your request being handled by different threads. Perhaps one of them has a problem the others don't share. -- Benji York Senior Software Engineer Zope Corporation ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux
I forgot to say that some times I get this error when I try to access a ZODB object (it doesn't matter what kind of object): +++ ERROR ZODB.Connection Shouldn't load state for 0x36 when the connection is closed Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 422, in run self.__target(*self.__args, **self.__kwargs) File "/home/marco/apps/zope3.2/lib/python/twisted/python/threadpool.py", line 149, in _worker context.call(ctx, function, *args, **kwargs) File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py", line 59, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File "/home/marco/apps/zope3.2/lib/python/twisted/python/context.py", line 37, in callWithContext return func(*args,**kw) --- --- File "/home/marco/apps/zope3.2/lib/python/twisted/web2/wsgi.py", line 139, in run result = self.application(self.environment, self.startWSGIResponse) File "/home/marco/apps/zope3.2/lib/python/zope/app/wsgi/__init__.py", line 49, in __call__ request = self.requestFactory(environ['wsgi.input'], environ) File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 62, in __call__ request_class, publication_class = chooseClasses(method, env) File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/httpfactory.py", line 34, in chooseClasses request_class, publication = factory() File "/home/marco/apps/zope3.2/lib/python/zope/app/publication/requestpublicationfactories.py", line 79, in __call__ request_class = component.queryUtility( File "/home/marco/apps/zope3.2/lib/python/zope/component/__init__.py", line 260, in queryUtility return getSiteManager(context).queryUtility(interface, name, default) File "/home/marco/apps/zope3.2/lib/python/ZODB/Connection.py", line 729, in setstate raise ConnectionStateError(msg) ZODB.POSException.ConnectionStateError: Shouldn't load state for 0x36 when the connection is closed +++ ...and then, if I reload the page, the problem can magically disappear, and if I request the view another time I can get the error again, and so on and so on... it seems to me that the behaviour is totally random. Does anybody know what's going on? Thanks in advance -- Marco ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Problems with Zope 3.2.0b3 on Linux
Hi! I'm experiencing some "strange" problems with Zope 3.2.0b3 on GNU/Linux (Ubuntu Breezy i386, kernel 2.6.12, python 2.4.2, gcc 3.4). If I add an object to the root folder (for example using the ZMI) and I try to see one of its browser views Zope sends me a 404 error page. If I add more objects and then I try to delete one of them, sometimes I can still see the object after the deletion (even if I reload the page) and sometimes (for example if I try to reload the page one more time) I can't. I tried to run the tests with 'make check' and the result was: Ran 8033 tests with 0 failures and 0 errors in 604.001 seconds. If I test the installation with bin/zopetest: +++ Running unit tests: Ran 7650 tests with 0 failures and 0 errors in 298.561 seconds. Running zope.app.testing.functional.Functional tests: Set up zope.app.testing.functional.Functional Traceback (most recent call last): File "./zopetest", line 39, in ? sys.exit(testrunner.run(defaults)) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 238, in run failed = run_with_options(options) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 391, in run_with_options setup_layers, failures, errors) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 557, in run_layer setup_layer(layer, setup_layers) File "/home/marco/zope3.2/lib/python/zope/testing/testrunner.py", line 632, in setup_layer layer.setUp() File "/home/marco/zope3.2/lib/python/zope/app/testing/functional.py", line 197, in setUp FunctionalTestSetup(self.config_file) File "/home/marco/zope3.2/lib/python/zope/app/testing/functional.py", line 139, in __init__ self.app = Debugger(self.db, config_file) File "/home/marco/zope3.2/lib/python/zope/app/debug/debug.py", line 35, in __init__ config(config_file) File "/home/marco/zope3.2/lib/python/zope/app/appsetup/appsetup.py", line 110, in config context = xmlconfig.file(file, context=context, execute=execute) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 554, in file include(context, name, package) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 483, in include f = openInOrPlain(path) File "/home/marco/zope3.2/lib/python/zope/configuration/xmlconfig.py", line 394, in openInOrPlain fp = open(filename) IOError: [Errno 2] No such file or directory: '/home/marco/zope3.2/bin/ftesting.zcml' +++ I have installed Zope 3.2 b3 on Windows also and I haven't noticed any problem so far. P.S.: sorry for my English... Regards, -- Marco ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users