Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
Andrew Sydelko wrote: > > On Tue, 18 Jun 2002 12:19:19 -0400 "Jeremy Hylton" <[EMAIL PROTECTED]> wrote: > Can someone tell me exactly how to compile python 2.1.3 with LFS support? > Hi Andrew Maybe this Howto by Seb Beacon could help ? http://www.zope.org/Members/beacon/install_instructions --- Flynt ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
On Tue, 18 Jun 2002 23:01:57 -0400 "Jeremy Hylton" <[EMAIL PROTECTED]> wrote: > > "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: > > AS> Can someone tell me exactly how to compile python 2.1.3 with LFS > AS> support? > > I don't have the URL handy, but it's section 8.1.1 of the manual > IIRC. Look for large file support in the library reference. > > Worked for me without problem on a RH 7.2 system. Yeah, and it's not working for me. I will try some more tomorrow... An earlier question was: What are the correct permissions for the "Zope/var" folder with a startup of "python z2.py -u httpd" --andy. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
> "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: AS> Can someone tell me exactly how to compile python 2.1.3 with LFS AS> support? I don't have the URL handy, but it's section 8.1.1 of the manual IIRC. Look for large file support in the library reference. Worked for me without problem on a RH 7.2 system. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
On Tue, 18 Jun 2002 12:19:19 -0400 "Jeremy Hylton" <[EMAIL PROTECTED]> wrote: > It wouldn't surprise me if this is a completely unrelated problem. > Any chance that the python your using to test doesn't have large file > support? Check by importing test.test_largefile. Yeah, you're right, I don't have largefile support. But I normally don't need it because it's just a ZEO client. And I've been trying to get python to compile with largefile support and I can't. I'm using Debian woody (and no, I don't want to use the installed python2.1 package). Can someone tell me exactly how to compile python 2.1.3 with LFS support? > We recently discovered that there's a bad interaction between ZODB and > Python without large file support running on a platform that supports > large files. In this specific configuration, os.path.exists() returns > false for files >2 GB and ZODB creates a new Data.fs. Yeah, that's a bad thing. I'm glad this wasn't my only copy (although it takes 15 minutes to get a new copy since it's so large.) --andy. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
Jeremy Hylton wrote: > We recently discovered that there's a bad interaction between ZODB and > Python without large file support running on a platform that supports > large files. In this specific configuration, os.path.exists() returns > false for files >2 GB and ZODB creates a new Data.fs. Wow... "bad" is not a strong enough word for this bug, especially if you run into it without a backup. How about "harrowing". ;-) Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
--On Dienstag, 18. Juni 2002 11:28 -0400 Jeremy Hylton <[EMAIL PROTECTED]> wrote: > I am able to run ZEO 1.0 on Zope 2.6. Does the ZEO test suite pass > for you? That's spelled: Yes, the tests pass with the two exceptions you mentioned. > If you check the ZEO 1.0 tarball, you'll find a trigger module in it. > Perhaps something was corrupted in your installation. I am starting the *very same* instance that works with 2.5.1 under 2.6.0a1. Yes, trigger.py is there. I am stumped myself. The client starts up completely, but than blows up on the trigger import. This is the logfile: 2002-06-18T19:35:33 INFO(0) client Trying to connect to server: ('127.0.0.1', 8091) -- 2002-06-18T19:35:33 INFO(0) ClientStorage Connected to storage -- 2002-06-18T19:35:33 INFO(0) ZODB Opening database for mounting: '142837952_1021730381.442598' -- 2002-06-18T19:35:33 INFO(0) ZODB Mounted database '142837952_1021730381.442598' at /temp_folder -- 2002-06-18T19:35:43 INFO(0) ZServer HTTP server started at Tue Jun 18 19:35:43 2002 Hostname: phoenix Port: 8080 Traceback (most recent call last): File "/Zope-2.6.0a1-src/z2.py", line 831, in ? asyncore.loop() File "/Zope-2.6.0a1-src/lib/python/ThreadedAsync/LoopCallback.py", line 100, in loop _start_loop(map) File "/Zope-2.6.0a1-src/lib/python/ThreadedAsync/LoopCallback.py", line 70, in _start_loop apply(cb, (map,) + args, kw or {}) File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 215, in becomeAsync File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 555, in getWakeup ImportError: No module named trigger I am going to investigate whether this is an artefact of my instance but I am not sure where to start... > I don't quite follow. Can you explain exactly what went wrong when > you tried to run the server and client from the same directory? I > assume this is a problem with ZEO 2.0. What do you mean by "the new > startup stuff"? - Collector #1: UNIX security fixes: make starting Zope as 'root' secure, stop using 'nobody', warn of insecure umasks Things like setting the sticky bit on var/, chdir to var/, umask 077 in the start file, creating the pid file *before* dropping root. Maybe more. When running ZEO 1.0 Data.fs.lock (and Data.fs.tmp) cannot be owned by root. ZEO_SERVER.pid is owned by the unprivileged user as well. Ok, "many" is overstated, I admit. ;-) Thanks, Stefan -- BLOWFISH, n. - Preference for beef. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
> "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: >> Failed to import class Splitter from module >> Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter >> >> When I import Products...ZopeSplitter, I see a module with a >> Splitter attribute bound to a function. AS> I don't understand what you're saying here. Do you mean it works AS> without complaining for you? In the past I have deleted all the AS> Products that were in the Products Control Panel to fix a AS> similar bug. Is that the case here as well? The problem is that the alpha release had a bug that made it impossible to load Splitter objects from the database. Andreas fixed the bug on Monday, so you could copy the changed file Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ZopeSplitter/__init__.py or you could delete whatever objects are related to the text index. >> The other import problem I see is >> >> Zope Could not import Products.HTMLDocument >> >> Is HTMLDocument a standard product or a 3rd party product? I >> don't see one in my 2.6 checkout. If it's 3rd part, then I >> expect it needs to be upgrade to work with 2.6. AS> HTMLDocument is a 3rd party product. Is there a document that AS> says what has changed enough since 2.5.1 that would break AS> products? and how to fix them? The traceback in the log indicates that the problem is related to InterfaceBase. (IIRC, I don't have that browser window open any more.) I think that Jim changed the Interface package just before the alpha, backporting changes from the Zope3 package. Maybe Jim can summarize what people need to do to update their code. AS> This is frustrating... I agree that it is frusterating, but I think it's hard to have an alpha release that works perfectly with all known third party extensions. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
Andrew Sydelko wrote: > >>The errors in the log are all about failures to import specific >>modules. (Let me know if I missed something else.) >> >>Failed to import class Splitter from module >>Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter >> >>When I import Products...ZopeSplitter, I see a module with a Splitter >>attribute bound to a function. > > > I don't understand what you're saying here. Do you mean it works > without complaining for you? In the past I have deleted all the > Products that were in the Products Control Panel to fix a similar bug. > Is that the case here as well? I explained in the Collector how to fix this problem back in March. http://collector.zope.org/Zope/181 -- Steve Alexander ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
> "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: AS> On Tue, 18 Jun 2002 11:20:21 -0400 "Jeremy Hylton" AS> <[EMAIL PROTECTED]> wrote: >> > "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: >> AS> Trying Zope 2.6.0a1 and ZEO 2.0a1. The storage server seemed to AS> come up fine, but when trying to start the ZEO client it pretty AS> much sucked. >> >> It looks like you would have had the same problems without ZEO. >> It would be helpful if you could try running Zope without ZEO, >> just with FileStorage. AS> Hmm... The first time I copied the 3gig Data.fs over and tried AS> to start Zope a few times. After fiddling with the permissions AS> of the var directory it finally started, but the Data.fs was AS> only 2MB! AS> So I copied it again. And once again, the 3gig Data.fs is blown AS> away! What am I doing wrong??? What are the permissions of the AS> "var" folder supposed to be? I'm starting Zope with: It wouldn't surprise me if this is a completely unrelated problem. Any chance that the python your using to test doesn't have large file support? Check by importing test.test_largefile. We recently discovered that there's a bad interaction between ZODB and Python without large file support running on a platform that supports large files. In this specific configuration, os.path.exists() returns false for files >2 GB and ZODB creates a new Data.fs. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
On Tue, 18 Jun 2002 11:20:21 -0400 "Jeremy Hylton" <[EMAIL PROTECTED]> wrote: > > "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: > > AS> Trying Zope 2.6.0a1 and ZEO 2.0a1. The storage server seemed to > AS> come up fine, but when trying to start the ZEO client it pretty > AS> much sucked. > > It looks like you would have had the same problems without ZEO. It > would be helpful if you could try running Zope without ZEO, just with > FileStorage. Hmm... The first time I copied the 3gig Data.fs over and tried to start Zope a few times. After fiddling with the permissions of the var directory it finally started, but the Data.fs was only 2MB! So I copied it again. And once again, the 3gig Data.fs is blown away! What am I doing wrong??? What are the permissions of the "var" folder supposed to be? I'm starting Zope with: python Zope/z2.py -w 8080 -F 8081 -W 8082 -u httpd > AS> I really should include the log file it produced but it's quite > AS> long. I put it up at > AS> http://eng.purdue.edu/people/sydelko/zope_2.6a1_log_1 > > AS> It ended up dying at the end, but that I think I can fix. > > AS> I'd really like someone to clue me into why everything else > AS> complained. > > The errors in the log are all about failures to import specific > modules. (Let me know if I missed something else.) > > Failed to import class Splitter from module > Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter > > When I import Products...ZopeSplitter, I see a module with a Splitter > attribute bound to a function. I don't understand what you're saying here. Do you mean it works without complaining for you? In the past I have deleted all the Products that were in the Products Control Panel to fix a similar bug. Is that the case here as well? > The other import problem I see is > > Zope Could not import Products.HTMLDocument > > Is HTMLDocument a standard product or a 3rd party product? I don't > see one in my 2.6 checkout. If it's 3rd part, then I expect it needs > to be upgrade to work with 2.6. HTMLDocument is a 3rd party product. Is there a document that says what has changed enough since 2.5.1 that would break products? and how to fix them? This is frustrating... --andy. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
Stefan H. Holek wrote: > Z2.pid is created very late. I cannot ./stop a half-started Instance > (not even a ZEO client waiting for the server!). Could we create the pid > file earlier? Actually Z2.pid *is* now created earlier than with 2.5.1, the setuid stuff for root startups was moved after the Z2.pid creation to stop a potential security issue. I don't see any reason it couldn't be created before the servers are started, however. Others may have reasons why. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
> "SHH" == Stefan H Holek <[EMAIL PROTECTED]> writes: SHH> * ZEO 1.0 ClientStorage does not work and I have no clue why it SHH> would not find trigger.py anymore. Do I *need* ZEO 2.0a1 for 2.6.0a1? SHH> There is nothing in the release notes. ZEO 2.0 and Zope 2.6 are independent releases. You can use Zope 2.6 with ZEO 1.0, and you can use ZEO 2.0 with Zope 2.5. The CVS trunk currently has ZEO 2.0. This change was made a couple weeks ago, independently of the Zope 2.6 release cycle. It may be that you interpreted that change on the ZEO trunk as an indicator that you must use it. I am able to run ZEO 1.0 on Zope 2.6. Does the ZEO test suite pass for you? That's spelled: python utilities/testrunner.py -d lib/python/ZEO assuming that you installed ZEO in the lib/python directory. If they don't pass, can you send me the failures. Most of the ZEO tests run correctly, but I see a few failures caused by a change to the test framework in Zope 2.6. Here's an example: ERROR: checkUndoCommitVersion (testZEO.ZEOFileStorageTests) -- Traceback (most recent call last): File "/usr/home/jeremy/src/Zope/lib/python/ZODB/tests/TransactionalUndoVersionStorage.py", line 113, in checkUndoCommitVersion revid = self._dostore(oid, revid, description='packable%d' % i) TypeError: _dostore() got an unexpected keyword argument 'description' I'll fix these problems for a ZEO 1.0.1, but they don't indicate a serious problem. SHH> Traceback (most recent call last): SHH> File "/Zope-2.6.0a1/z2.py", line 832, in ? SHH> asyncore.loop() SHH> File SHH> "/Zope-2.6.0a1/lib/python/ThreadedAsync/LoopCallback.py", SHH> line 100, SHH> in loop SHH> _start_loop(map) SHH> File SHH> "/Zope-2.6.0a1/lib/python/ThreadedAsync/LoopCallback.py", SHH> line 70, SHH> in _start_loop SHH> apply(cb, (map,) + args, kw or {}) SHH> File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 215, SHH> in SHH> becomeAsync SHH> File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 556, SHH> in getWakeup SHH> ImportError: No module named trigger If you check the ZEO 1.0 tarball, you'll find a trigger module in it. Perhaps something was corrupted in your installation. SHH> * New Startup: SHH> Will the new startup stuff also be available for ther ZEO SHH> server's start.py? Until 2.5.1 I was able to run ZEO server & SHH> client in-place (from the same directory). This is harder with SHH> 2.6.0. I needed some file permission trickery (which defeats SHH> many of the benefits of the new startup) to make it work. I don't quite follow. Can you explain exactly what went wrong when you tried to run the server and client from the same directory? I assume this is a problem with ZEO 2.0. What do you mean by "the new startup stuff"? Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
> "AS" == Andrew Sydelko <[EMAIL PROTECTED]> writes: AS> Trying Zope 2.6.0a1 and ZEO 2.0a1. The storage server seemed to AS> come up fine, but when trying to start the ZEO client it pretty AS> much sucked. It looks like you would have had the same problems without ZEO. It would be helpful if you could try running Zope without ZEO, just with FileStorage. AS> I really should include the log file it produced but it's quite AS> long. I put it up at AS> http://eng.purdue.edu/people/sydelko/zope_2.6a1_log_1 AS> It ended up dying at the end, but that I think I can fix. AS> I'd really like someone to clue me into why everything else AS> complained. The errors in the log are all about failures to import specific modules. (Let me know if I missed something else.) Failed to import class Splitter from module Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter When I import Products...ZopeSplitter, I see a module with a Splitter attribute bound to a function. The other import problem I see is Zope Could not import Products.HTMLDocument Is HTMLDocument a standard product or a 3rd party product? I don't see one in my 2.6 checkout. If it's 3rd part, then I expect it needs to be upgrade to work with 2.6. Jeremy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Crash & Burn with Zope 2.6.0a1 and ZEO 2.0a1
I have failed as well to upgrade a Zope 2.5.1/ZEO 1.0 installation to 2.6.0a1. I tried to start *the very same instance* that runs successfully under 2.5.1 with 2.6.0a1. This is what I found out: * The Catalog problem you see comes from Products.PluginIndexes.TextIndex.Splitter.ZopeSplitter not exporting 'Splitter' anymore. I should really have been kept for bw compatibility. Workaround is to copy ZopeSplitter's __init__.py from 2.5.1. * ZEO 1.0 ClientStorage does not work and I have no clue why it would not find trigger.py anymore. Do I *need* ZEO 2.0a1 for 2.6.0a1? There is nothing in the release notes. Traceback (most recent call last): File "/Zope-2.6.0a1/z2.py", line 832, in ? asyncore.loop() File "/Zope-2.6.0a1/lib/python/ThreadedAsync/LoopCallback.py", line 100, in loop _start_loop(map) File "/Zope-2.6.0a1/lib/python/ThreadedAsync/LoopCallback.py", line 70, in _start_loop apply(cb, (map,) + args, kw or {}) File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 215, in becomeAsync File "/home/zeo6/lib/python/ZEO/ClientStorage.py", line 556, in getWakeup ImportError: No module named trigger * Formulator Formulator failed to install due to ZODB conflict errors until I put get_transaction.commit() into Formulator's initialize(); twice, after the help registrations. * New Startup: Will the new startup stuff also be available for ther ZEO server's start.py? Until 2.5.1 I was able to run ZEO server & client in-place (from the same directory). This is harder with 2.6.0. I needed some file permission trickery (which defeats many of the benefits of the new startup) to make it work. * Besides: Z2.pid is created very late. I cannot ./stop a half-started Instance (not even a ZEO client waiting for the server!). Could we create the pid file earlier? Rgds, Stefan --On Montag, 17. Juni 2002 16:23 -0500 Andrew Sydelko <[EMAIL PROTECTED]> wrote: > Well, I have a 3gig ZODB that we have been using fine with > Zope 2.5.1 / ZEO 1.0. > > Trying Zope 2.6.0a1 and ZEO 2.0a1. The storage server seemed to come > up fine, but when trying to start the ZEO client it pretty much sucked. > > I really should include the log file it produced but it's quite long. > I put it up at http://eng.purdue.edu/people/sydelko/zope_2.6a1_log_1 > > It ended up dying at the end, but that I think I can fix. > > I'd really like someone to clue me into why everything else complained. > -- BLOWFISH, n. - Preference for beef. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )