Re: [Zope] Re: Windows compile Zope 2.8?

2005-04-09 Thread Tim Peters
[David H] > Thanks for responding. I tried the suggestion: > C:\Zope-2.8.0a2> python.exe setup.py build_ext --inplace > and the thing runs for a while (good sign, as visual c 6.0 is compiling > things) then I get this: > > building > 'Products.PluginIndexes.TextIndex.Splitter.ISO_8859_1_Splitt

Re: [Zope] Re: Windows compile Zope 2.8?

2005-04-09 Thread Tim Peters
[David H, missing ISO_8859_1_Splitter.c on Windows] [Tim, sez worked for him using WinZip 9.0 SR-1 to unpack the tarball] [David H] > Wow thats great. I'll do it all over again. Thanks for the tip (i just > reviewed my download using Ultimate Zip (which has been reliable in the > past) and the

Re: [Zope] Cache flipping?

2005-04-10 Thread Tim Peters
[Guillaume Tamboise] > Let's say that I have a happily running server, that I get quite a lot of > "flipping cache files" with a cache-size at 6000 in my Zope instances, and > that I want to improve performances. > What should I do? I suspect you're confusing the ZODB cache (an in-memory cache mea

Re: [Zope] ZODB.POSException.ReadConflictError

2005-05-03 Thread Tim Peters
[Chris McDonough] > This is actually normal. See the end of > http://www.plope.com/Books/2_7Edition/Sessions.stx ("Conflict Errors") > for a short explanation. Conflict errors are certainly normal, but IIUC the OP is seeing site errors, not just log msgs. The text referenced also says: The

Re: [Zope] ZODB.POSException.ReadConflictError

2005-05-03 Thread Tim Peters
... [Tim Peters] >> Conflict errors are certainly normal, but IIUC the OP is seeing site >> errors, not just log msgs ... [Chris McDonough] > This is true. I misunderstood the OP inasmuch as I thought he was > seeing the error message in his event log, which would be normal

Re: [Zope] Re: Zope 3 for Debian?

2005-05-17 Thread Tim Peters
[Tres Seaver] > Assuming a standard build environment (make, gcc, etc.), > 'zlib' is the only one which typically bites me on a new > machine -- Python will build in its absence, but ZODB won't. What's that about? The only part of ZODB that uses zlib/gzip is the repozo.py backup script. _

Re: [Zope] Re: Zope 3 for Debian?

2005-05-17 Thread Tim Peters
[Tim] >> What's that about? The only part of ZODB that uses >> zlib/gzip is the repozo.py backup script. [Tres] > Hmm, I don't know; I was basing it on a memory of building > out a ZEO storage server on a "bare bones" Unix box, and > having something during the build / startup phase barf, > comp

Re: [Zope] ZODB question

2005-05-25 Thread Tim Peters
[Pascal Peregrina] >> In a Zope / Zeo configuration (2.7.6), is there a way, on the Zope >> instance, to know when the database (Zeo) was last packed ? [Chris Withers] > Publicly, maybe not, but there'll definitely be away to find it out > since the pack machinery checks this. Sorry, pack times a

Re: [Zope] backing up a running zodb fileStorage

2005-06-10 Thread Tim Peters
[gabor] > i am trying to backup a zodb filestorage of a running zope. > i'm on linux. > > i've read that you simply make a copy of the Data.fs file.. > > but what about the modifications/transactions that are happening when i > make the copy. > > will not the database be in a corrupt state then?

Re: [Zope] ZEO recommended for single-cpu?

2005-06-14 Thread Tim Peters
[gabor] > i understand that you need to use ZEO when running ZOPE on a multi-cpu > machine (or when you want to cluster ZOPE). > > but from mails on this forum it seems that people are also using ZEO > when they're running ZOPE on a single-cpu machine. > > why? More here: http://zope.org/Wik

Re: [Zope] Re: ZODB error when trying to index object (Input/output error)

2005-06-23 Thread Tim Peters
[Felix Ulrich-Oltean] > ... > I think I've found the culprits - there are 4 records which give errors like > this: > > portal.portal_catalog.uncatalog_object('/sites/cw/data/urbanr') > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/zope/lib/python/Products/ZCatalog

Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Tim Peters
[Felix Ulrich-Oltean] > I'm using the repozo.py script to back up some large FileStorages, as > outlined in: > > http://www.zope.org/Wikis/ZODB/FileStorageBackup > > I need to clear out old backups regularly, as there are several > storages which are packed every night, and so there are lots of ~2G

Re: [Zope] Removing old FileStorage backups from repozo

2005-06-27 Thread Tim Peters
[Eddie Butcher] > What would be most useful is the ability to specify the number of backup > files *kept*. Please add comments to the Collector issue instead? On a mailing list. they're forgotten forever an hour after they're posted <0.1 wink>: http://www.zope.org/Collectors/Zope/1501 __

Re: [Zope] where is Zope-2.7.6

2005-07-09 Thread Tim Peters
[Dennis Allison] > The download list at zope.org does not have any releases between 2.7.3 > and 2.8. We've been using 2.7.6 and would like to be able to download > clean copies... The download list at http://www.zope.org/Products/Zope/ has an entry for 2.7.6. If you ended up at http:/

Re: [Zope] Versioned connectors from ZODB

2005-07-11 Thread Tim Peters
[Etienne Labuschagne] > ... > I really need a "temporary" connection that I can discard. This > connection can have a much smaller cache than the normal connections > as it makes very little difference in the speed of data loading. > Second prize is a connection that will only be used by a specifi

Re: [Zope] Versioned connectors from ZODB

2005-07-12 Thread Tim Peters
[Etienne Labuschagne] >>> . . . Versions solves this for me. [Tim Peters] >> Maybe like death would solve my problem with overdue taxes . [Etienne] > I did get the versioned connections to work (so far), BUT, I will > definately take your word on it and seek another solut

Re: [Zope] Zope 2.8 Installation trouble on XP

2005-07-14 Thread Tim Peters
[Pedro Cristian] > I'm a beginner in Zope. I've just installed the Zope 2.8 final package. > The installation seems to have completed normally. > However when the zope instance is run I have the following message : > > C:\Zope-Instance\bin>runzope.bat > > C:\Zope-Instance\bin>"C:\Zope-2.8.0-final\b

Re: [Zope] Memory Errors

2005-07-21 Thread Tim Peters
[Matt Hamilton] > ... > We have been running Zope on OpenBSD/AMD64 3.6 for about a year now > and it works pretty well. I have however recently discovered a python bug > that I am trying to track down. I am unsure of the exact problem, but it > affects the re and string libs: > > zeo1# uname -a >

Re: [Zope] Re: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Tim Peters
[Tim Peters] ... >> I don't know, and I haven't seen this reported by anyone else before. >> Let's try this: cd to your Zope's (not Zope-Instance's) bin >> directory, and start Python from there. Your DOS box should look like >> this then: >

Re: [Zope] Re: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Tim Peters
... [Martin Raspe] >>> I see the same error message that ZOPE gives. [Tim Peters] >> FYI, pasting the exact DOS box input and output (as I did above) saves >> the reader from needing to guess at 100 details. >>> Any solution? >> Sorry, not unless someone can

Re: [Zope] Running more than one instance on windows often block each other

2005-07-25 Thread Tim Peters
[Sune B. Woeller] >> ... >> I can see (with the excellent (and free) 'Process >> Explorer' from sysinternals) that the python >> processes always opens port 1, and connects by >> that port to themselves on another port (for >> instance 2550). [Dieter Maurer] > You can find the relevant code i

Re: [Zope] Running more than one instance on windows often block each other

2005-07-25 Thread Tim Peters
[Tim Peters] >> Yup. ZODB has what looks like a copy/paste of this code, in >> ZEO/zrpc/trigger.py. I didn't realize where it came from originally >> until you pointed out the Medusa code here. >> >> Anyway, it so happens I rewrote ZEO's copy a few weeks a

Re: [Zope] Running more than one instance on windows often block each other

2005-07-26 Thread Tim Peters
bind > works as expected - it raises socket.error: (10048, 'Address already in use'). As above, I'm seeing `bind` raise exceptions regardless. > But in the litterature on sockets, I read it should be okay to close the > server > socket and keep using the client sockets.

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-27 Thread Tim Peters
[Sune B. Woeller] > I will try to recreate the problem on other > flavours of windows asap. I will get back to you > later. Cool! If you can, posting a self-contained program that demonstrates the problem is the best way to make progress. > I guess my reporting was a bit too quick, sorry: Not a

Re: [Zope] Running more than one instance on windows often block each other

2005-07-27 Thread Tim Peters
[Tim Peters] ... > Ran that loop in two processes. No hangs, or any > other oddities, for some minutes. It did _eventually_ hang-- and both > processes at the same time --with netstat showing more than 4000 > sockets hanging around in TIME_WAIT state then. I assume I bashed

Re: [Zope] Running more than one instance on windows often block each other

2005-07-27 Thread Tim Peters
It's starting to look a lot like the Windows bind() implementation is unreliable, sometimes (but rarely -- hard to provoke) allowing two sockets to bind to the same (address, port) pair simultaneously, instead of raising 'Address already in use' for one of them. Disaster ensues. WRT the last vers

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Sune B. Woeller] > ... > This is what I'm experiencing as well. > I can narrow it down a bit: I *always* experience one out of two > erroneous behaviours, as described below. I see only one of the behaviors below (the second -- no problems), and don't agree it's in error. > I tried to make an ev

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Sune B. Woeller] ... > But then I stumbled upon this flag in the WinSock documentation: > SO_EXCLUSIVEADDRUSE > See the description here: > Right, I vaguely knew about that. Note tha

Re: [Zope] Re: Running more than one instance on windows often block each other

2005-07-28 Thread Tim Peters
[Tim] > ... > At this point, I wouldn't consider using it [SO_EXCLUSIVEADDRUSE] > unless someone first took the tedious time it needs to demonstrate that > when it is used, the thing that _I_ think is a bug here goes away in its > presence: the seeming ability of Windows to sometimes permit more >

[Zope] Re: Running more than one instance on windows often block each other

2005-07-29 Thread Tim Peters
The attached hasn't failed on my box (Win XP Pro SP2, Python 2.3.5) for about two hours, running it in 3 processes. Was using 2 processes before; discovered it was much easier to provoke problems using 3; but the # of ephemeral ports in use increases too, typically hovering between 7-8 thousand af

[Zope] Re: Running more than one instance on windows often block each other

2005-08-01 Thread Tim Peters
... [Tim Peters[ >> How often do you see this? I haven't seen it yet, but I can't make >> hours today to do this [by] hand. [Sune B. Woeller] > The problem with a failing connect, and as consequence a hanging accept: > I have tested with your socktest111(), and ex

[Zope] Re: Running more than one instance on windows often block each other

2005-08-01 Thread Tim Peters
[Sune B. Woeller, on socktest29] > I have been running 8 simultaneous processes with socktest29() for > 12 hours, on my xp box. No problems except for an occasional "Address > already in use". Which the code expects, and works around. Thank you, Sune! I ran the same code, but with 3 processes, f

[Zope] Re: Running more than one instance on windows often block each other

2005-08-03 Thread Tim Peters
[Sune B. Woeller] > ... > Sounds great with the ZODB changes. What releases will this cover ? > If more releases are due in the 2.7.x line, it would be great if they could be > included. ZODB and Medusa changes have already been checked in for the 2.7.x line. For the rest, please see http://

Re: [Zope] Zope 2.8 and conflict errors

2005-08-05 Thread Tim Peters
[Maciej Wisniowski] > ... > One more question - am I correct that _p_resolveConflict > is not used anymore in Zope 2.8.x? Not correct. _p_resolveConflict is used in Zope 2.8.x (and in Zope 3) exactly the same way it was used in 2.7.x. If it's not working, there may be a new bug in 2.8.x, but the

Re: [Zope] Zope 2.8 and conflict errors

2005-08-07 Thread Tim Peters
[Maciej Wisniowski, wrestling with _p_resolveConflict] > Because of errors like: > > ConflictError: database conflict error (oid 0x0299de, class > Products.DCOracle2.DA.Procedure, serial this txn started with > 0x035f0726c7bfca88 2005-08-01 08:38:46.816215, serial currently > committed 0x035f072f

Re: [Zope] Zope 2.8 and conflict errors

2005-08-07 Thread Tim Peters
[Tim Peters] >> Offhand it looks OK to me, but I don't have any of the code you're >> using. [Maciej Wisniowski] > I think that it's not my code problem but rather something with > DCOracle2 and to reproduce this error it is enough to call > any 'DCOracl

Re: [Zope] fsrecover.py won't pack

2005-08-08 Thread Tim Peters
[Andy Altepeter] > I ran fsrecover.py on a copy of my Data.fs. It found no errors, but then when > it attempted to pack the file, it raised an unpickleable error, with this > traceback: ... > File "/export1/Zope-2.7.5-final/lib/python/ZODB/referencesf.py", line 38, in > referencesf >raise Val

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-16 Thread Tim Peters
[Andreas Krasa] > We are encountering some really strange problems with Zope 2.7.7 on our > RedHat EL 4 Linux machines. > > During the Zope 2.7.7 compilation works - however most of the time "make > test" returns a random number of errors (somewhere between 20 and 30) > ALL related to ZEO. > > The

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-16 Thread Tim Peters
[Andreas Krasa] So you showed a number of test errors here, all on line 121 of ConnectionTests.py. They all seem indentical to the first one: > ERROR: checkMultipleAddresses > (ZEO.tests.testConnection.MappingStorageConnectionTests) > -

Re: [Zope] Moving Document Library Product

2005-08-18 Thread Tim Peters
[David] >> ... >> The problem occurs when trying to paste [I/O Error: not enough space >> on the device] the library (copy command seems to work) or import >> (export seems to work). [Dieter Maurer] > Hmmm: > > This verbal report does not at all fits to the traceback > below... > > An "IOErro

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-18 Thread Tim Peters
[Andreas Krasa] > ... > As I understood Dieter's mail, this strange behavior is caused by the > way RedHat Enterprise Linux 4 system libraries handle SIG_IGN/SIGCHLD. I don't know. Dieter asked whether you ran the tests via "zopectl test", but I didn't see an answer to that. If you run the Zope

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Willi Langenberger] > Ok, here some data points... > > bender:~/Zope-2.7.7-final$ cat /proc/version > Linux version 2.6.9-11.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.3 20050227 > (Red Hat 3.4.3-22)) #1 SMP Fri May 20 18:26:27 EDT 2005 > > bender:~/Zope-2.7.7-final$ python2.3 > Python 2.3.5

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Willi Langenberger] >> Interesstingly, if i run the test with strace, i never see the test >> fail (i tried at least 30 times): [Jens Vagelpohl] > This sounds like something Tim had mentioned at one point, where > tests can fail on a machine that is "too fast"? Dieter said that. I believe him,

Re: [Zope] ZEO troubles on RedHat EL4 Linux

2005-08-19 Thread Tim Peters
[Dieter Maurer] > There is one essential thing you stress over and over again -- but > which I am not sure: > > You say, the exception in "tearDown" means that > the test completed successfully -- without any error. Oh no, that's not what I'm saying. As you say next, > However, I

Re: [Zope] AssertionError after update to Zope 2.8.1

2005-08-21 Thread Tim Peters
[Ricardo Newbery] > Oh so close... > > Migrated from Zope 2.7.2 to 2.8.1 > Updated all the Catalog instances according to the instructions. > Fixed a few outdated products. > > Then just for kicks, I tried to update the Python scripts by visiting > the /manage_addProduct/PythonScripts/recompile url

Re: [Zope] AssertionError after update to Zope 2.8.1

2005-08-24 Thread Tim Peters
[Ricardo Newbery] > Oh so close... > > Migrated from Zope 2.7.2 to 2.8.1 > Updated all the Catalog instances according to the instructions. > Fixed a few outdated products. > > Then just for kicks, I tried to update the Python scripts by visiting > the /manage_addProduct/PythonScripts/recompile ur

Re: [Zope] ZEO on Windows

2005-08-24 Thread Tim Peters
[michael nt milne] > ... > Also does Zope 2.8 for linux have ZEO as standard. All versions of Zope at and after 2.7 include ZEO, and regardless of platform (Linux, Windows, Solaris, ..., doesn't matter). ___ Zope maillist - Zope@zope.org http://mail.zo

Re: [Zope] Re: Zope will not start after failed 2.8.1 upgrade

2005-09-02 Thread Tim Peters
[EMAIL PROTECTED] > Well, fortunatly I had last nights backup of the Data.fs. Restoring > that allowed Zope to be reverted to 2.7.7 and restart. > > So here is my question. > > Normally I have been able to upgrade Zope, and if the upgrade had > problems, revert to a prior version by simple redirec

Re: [Zope] broken product

2005-09-03 Thread Tim Peters
[garry saddington] > I have been using the zope 2.7 supplied with Debian Sarge but I have > noticed that the batching of ZSQL results using the ZSQL test tab is > broken. I get a missing object 'query'. So I thought I would install the > most recent stable Zope. Which version is that? You mean in

Re: [Zope3-dev] Re: [Zope] Zope 3.1.0 released!

2005-10-03 Thread Tim Peters
>> http://zope.org/Products/Zope3/ [Reinoud van Leeuwen] > Is it intended that one should login before being able to access that > page? Not intended, and logging in may not help either. Try it with and without the trailing slash: http://zope.org/Products/Zope3/ or http://zope.org/P

Re: [Zope] Zope Scalability

2005-10-05 Thread Tim Peters
[Jens Vagelpohl] > Well, the question was actually "What is the maximum size of this > file and/or maximum object ID? => just how many objects can the zodb > hold?". There is only a theoretical limit that has to do with the > largest index key for the ZODB index I believe, and that is some > ludicr

Re: [Zope] Zope Scalability

2005-10-05 Thread Tim Peters
[Tim Peters] >> If you're using FileStorage, a technical detail in the implementation >> of the FileStorage index limits the maximum file offset that can be >> used to 2**48-1, or about 281 terabytes. Object IDs are effectively >> 64-bit integers (masquerading as 8-

Re: [Zope] Error on starting and stopping Zope 2.8.2

2005-10-14 Thread Tim Peters
[ [EMAIL PROTECTED] > My mistake, but given that, any sense if I can I safely ignore the > warning? It's a DeprecationWarning. All it means is that Python's `whrandom` module is going to go away in a future release -- it's advising applications to switch to using the `random` module if they want

Re: [Zope] Zope 2.8.4 strange behavior

2005-11-29 Thread Tim Peters
[Chris McDonough] >> The symptom you're describing has happened to me in the past. Zope >> stops serving requests and my CPU is not pegged (it's not hitting the >> CPU hard via an infinept loop I've made). I usually end up tracking it >> down to the fact that my instance is somehow leaking datab

Re: [Zope] Re: Zope 2.8.4 strange behavior

2005-11-30 Thread Tim Peters
[Dieter Maurer] > ... > I think, Tim wanted to implement such a keep alive mechanism > inside "ClientStorage" (to reliably detect disconnects) but > in ZODB 3.4 it seems not yet available. Right on all counts: I would like to add that, because it's currently possible for ZEO to run "forever" with

Re: [Zope] Zope refusing to serve ... i am an idiot

2005-12-08 Thread Tim Peters
[Chris Wilton] > Whoops. Sorry. > Error log tells me it's a 'no space left on device' error: > > 2005-12-08T19:33:30 ERROR(200) SiteError > http://ekhidna.biocenter.helsinki.fi/dali/downloads/180M.tar/index_html > Traceback (most recent call last): > File "/data/backup/Zope-2.7.0/lib/python/ZPubli

Re: [Zope] Zope 2.8.5 install

2006-01-06 Thread Tim Peters
[Robert Conner] > Hi, I'm trying to install 2.8.5 on my windows machine. > > I do not have Visual C++ or .NET. Is there any way to compile are > install Zope with any sort of free software available? Probably not without major pain, and I don't know how to do it regardless. I didn't even realize

Re: [Zope] Zope 2.8.5 install

2006-01-06 Thread Tim Peters
[Tim Peters] > ... > I didn't even realize Andreas had released 2.8.5. I'll build a > Windows installer for it (I already have everything needed to do that) > and put it on the download page later today: > > http://www.zope.org/Products/Zope/2.8.5 Zope-2.8.5-final

Re: [Zope] Zope 2.8.5 install

2006-01-09 Thread Tim Peters
[Robert Conner] > Thanks for compiling that and setting up the windows installer. > However, I don't believe it works. Sorry it took me so long to get > back to you. I wanted to try installing this on a second computer > before I wrote back. On both of them it What is "it"? Please spell out exact

Re: [Zope] Zope 2.8.5 install

2006-01-09 Thread Tim Peters
[Robert Conner] > Well color me purple, it does work. Good! How could anything on Windows fail to work ;-)? > I was just so used to seeing the "Zope Ready to handle Requests" > message that when it never appeared I just assumed it was not working > at all. I've broken Zope on my computer 100 tim

Re: [Zope] Where oh where is Repozo

2006-01-15 Thread Tim Peters
[Jonathan Cyr] > Where is the latest version of Repozo, the backup tool, kept? > > Is there a reason, that it's not included with the Zope > install/utilities (at least the 2.7.x I'm using). [... time passes ...] > Thanks for the quick response, I noticed that the my WinXP Zope > (sandbox) doesn'

Re: [Zope] zeopack: No handlers could be found for logger "ZEO.zrpc"

2006-01-19 Thread Tim Peters
[Cameron Beattie] > When I run the following: > python /usr/lib/zope/bin/zeopack.py -d 20 -h localhost -p 8100 > > I get an error: > No handlers could be found for logger "ZEO.zrpc" As Dieter said, that's not an error in and of itself, it's just Python's logging module whining at you. ZEO.zrpc is

Re: [Zope] unpickle error on Data.fs pack

2006-01-25 Thread Tim Peters
[Gerhard Schmidt] > since three days we have problems when packing the Data.fs. > > 2006-01-25T03:40:42 ERROR(200) zrpc:7266 Error raised in delayed method > Traceback (most recent call last): > File "/usr/local/www/Zope/lib/python/ZEO/StorageServer.py", line 991, in run > result = self._meth

Re: [Zope] repozo.py

2006-03-08 Thread Tim Peters
[Dennis Allison] >> We are (finally) moving to repozo for our backups. We are running a mixed >> collection of Zopes -- mostly Zope 2.7.6, Zope 2.8.X and Zope 2.9.0. For >> the near term we cannot move to a single release. There are differences >> between the versions of repozo distributed with

Re: [Zope] ZODB install time error

2006-08-16 Thread Tim Peters
[P. Nagaraj] [ZODB3-3.4.0]# python test.py Running tests from build/lib.linux-i686-2.3 Running unit tests: Error in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests) Traceback (most recent call last): File "build/lib.linux-i686-2.3/zdaemon/tests/testzdrun.py", line 75, in tearDown s