Re: [ZODB-Dev] Re: [Zope-dev] tempstorage to ZEO?
Hi, I have bad experence with tempstorage on ZEO (FileStorage with no undo). With site with 18000 users (300 per minutes) , the site hang because of conflict on ZEO. I am very interested by a faster tempstorage like SQLDB Cheers Eric Brun Pentila www.pentila.com Chris McDonough a écrit : I've done this (at least with FileStorage) and it's sllo. Might be OK for low-traffic sites, but better to implement a custom session data container that stores stuff in SQL. I have the beginnings of one of these if you want to see it. - C On May 31, 2006, at 9:44 AM, Sidnei da Silva wrote: On Wed, May 31, 2006 at 09:40:01AM -0400, Chris McDonough wrote: | Should be OK, although if you're doing it because you want a "fast" | storage (or one that "produces fewer conflicts"), ZEO takes away much | hope of that intrinsically. My goal was actually sharing sessions between zeo clients, without resorting to zsqlsessions or similar. --Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 ___ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] runzope vs zopectl
Ok, I made a mistake in configuration in my mysql connector : I access to mysql server with no user and by localhost and in my user table I have a rule access with localhost and no user Sorry for the mailing list but I don't understand why it ran with runzope and failed with zopectl ... Thanks and sorry Eric ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] runzope vs zopectl
Hi, I have a stange problem that I can't solve : I work on Suse 9.0, Zope 2.7.6, Plone 2.0.5 and ZMySQLDA 2.0.8 (+mysql module 1.2.0). When I start my zope server with ./runzope : my database connections on my Mysql Server are opened correctly but when I start with ./zopectl start, the connections are closed and I can't open them manually too. When I start with zopectl , and I tried to open a connector , Zope say me: Site Error An error was encountered while publishing this resource. OperationalError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.PlacelessTranslationService.PatchStringIO, line 51, in new_publish * Module ZPublisher.Publish, line 132, in publish * Module Zope.App.startup, line 204, in zpublisher_exception_hook * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.ZRDB.Connection, line 163, in manage_open_connection * Module Products.ZMySQLDA.DA, line 126, in connect * Module Products.ZMySQLDA.db, line 186, in __init__ OperationalError: (1044, "Access denied for user: '@localhost' to database 'usr_web1_1'") (Also, an error occurred while attempting to render the standard error message.) 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. But Not when I use runzope script. and the string connection is ok too. Anybody have a idea for solve my problem ? Thanks for all Eric Brun Pentila ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Re: [Zope-dev] CorruptedDataError sniff !
> > Packing is the last thing you should be trying when you have > corruption. In fact I discover the corruption during the pack. There's no mechanical, safe way to recover. Please read > this: > > http://zope.org/Wikis/ZODB/FileStorageBackup This is a great document. I think the origin of the corruption is my RAID controler so I have ask to the server owner to switch for a new server. > > and start by using fstest, then fsrefs, as described there. > > > I run Zope 2.6.2 , ZEO 2 and ZODB 3.1 > > Just noting that it's harder to get help with old releases. I have mount my zodb on a Zope2.7.6 and I'm working on this release to solve my problem. fstest say all is ok. fsrefs say that : " oid 0x37d8e5 BTrees._IIBTree.IIBTree last updated: 2005-05-28 15:48:11.159195, tid=0x35D95942F9CD111L refers to invalid object: oid 0x5d4787 missing: 'BTrees._IIBTree.IIBucket' oid 0x37d8ec BTrees._IOBTree.IOBucket last updated: 2005-05-07 00:56:12.524043, tid=0x35D1BF8356F9844L refers to invalid object: oid 0x39c22b missing: 'BTrees._IIBTree.IIBTree' .. etc " ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] CorruptedDataError sniff !
Hi all, Houston, we've got big a problem ! Here is the traceback in ZEO_EVENTS.log: " -- 2005-06-02T11:45:21 INFO(0) zrpc-conn:193.49.250.194:37684 zeoLoad() raised exception: 968647571 Traceback (innermost last): File /data/ZeoCVS/lib/python/ZEO/zrpc/connection.py, line 234, in handle_request File /data/ZeoCVS/lib/python/ZEO/StorageServer.py, line 337, in zeoLoad File /data/ZeoCVS/lib/python/ZODB/FileStorage.py, line 694, in modifiedInVersion (Object: /data/ZeoCVS/var/Data.fs) CorruptedDataError: 968647571 " And I can't pack the zodb, when I pack I've got this traceback : " -- 2005-06-02T08:48:17 ERROR(200) zrpc:1193 Error raised in delayed method Traceback (innermost last): File /data/ZeoCVS/lib/python/ZEO/StorageServer.py, line 865, in run File /data/ZeoCVS/lib/python/ZEO/StorageServer.py, line 402, in pack_impl File /data/ZeoCVS/lib/python/ZODB/FileStorage.py, line 1503, in pack (Object: /data/ZeoCVS/var/Data.fs) File /data/ZeoCVS/lib/python/ZODB/fspack.py, line 680, in pack File /data/ZeoCVS/lib/python/ZODB/fspack.py, line 464, in findReachable File /data/ZeoCVS/lib/python/ZODB/fspack.py, line 478, in buildPackIndex File /data/ZeoCVS/lib/python/ZODB/fspack.py, line 180, in checkTxn File /data/ZeoCVS/lib/python/ZODB/fspack.py, line 170, in fail CorruptedError: /data/ZeoCVS/var/Data.fs:968633329:invalid transaction status: 'g' " I run Zope 2.6.2 , ZEO 2 and ZODB 3.1 I have tried to do a fsrecover, it removes a transaction. Then when I tried to lunch a pack, I've got a very strange error about unpickling : "Error unpickling, ((UBTrees._IIBTreeqUIIBucketqtqNt.((JÇü KJQKJyWKJ}WKJ06KJKJ®KJÃøKJKKJKKJKKJ KKJ¡KKJ¢KKJ¦KKJ8KJÜS KJê!KJGF*KJ%D.KJ .KJ.KJ.KJ;w/KJ>w/KJ?w/KJ~G0KJο1KJÁ3KJ'^7KJ;KJ¢;KJwû<KJzû<KJ{û<KJÄ>KJ#IGKJPLGKJ|IKJJKKJ¶ÊMKJ ]KJ ]KJ ]KJ ]KJ ]KJ ]KJ ]KJ ]KJ¡ ]KJrdKJæãdKJèãdKJ¿gKJ¿gKJ]¸yKJÆozKJ¸|KJ¹|KJÁ|KJ |KJ}KJ}KJ}KJ}KJCKJIÏKJJÏKJd¹ KJf¹ KJ#[KJ÷KJM»KJNÖ´ KJ×´ KJÚ´ KJÛ´ KJC) KJ KJ©Ø¦ KJ¢Ò KJòê KJÀDô KJ×Dô KJû KJ$R KJIr| KJðµ KJÛ$û KJ}KJM»KJî²KJò²KJó²KJô²KJ×ØKJ5´9KJ<´9KJ¯¾ãKJ/hûK" I try to copyTransaction in a new Storage but it failed too. This is a production site. My last backup which is not corrupted date of Sunday morning ! Please Help me ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Re: [Zope-dev] CatalogBrains since Zope2.7.1b1
My object really exist and I check the getPath path : it's a correct path. When I use CatalogBrains.py of Zope2.7.0 on a Zope2.7.1b1, my object is correctly returned. The changes in the version of CatalogBrains.py in Zope2.7.1b1 can't find my existing object with a good path. I think there is a problem here. I just alert a potential bug for the zope-dev community. Sorry for my english thanks for your answers > Eric Brun wrote at 2004-6-16 11:16 +0200: > >I have a problem with 'getObject' method of CatalogBrains class on Zope271b>1 : > >it's return None. But with a Zope2.7.0 > >my object is correctly find and returned. The permissions are right. > > > >is there any bug here ? > > They return "None" when the object no longer exists. > > Check the path ("getPath" method) and verify whether the object > exists. > > -- > Dieter > Eric Brun Ingénieur de développement [EMAIL PROTECTED] Pentila Bâtiment Euclide 73370 Le Bourget du Lac Savoie Technolac http://www.pentila.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] CatalogBrains since Zope2.7.1b1
Hi, I have a problem with 'getObject' method of CatalogBrains class on Zope271b1 : it's return None. But with a Zope2.7.0 my object is correctly find and returned. The permissions are right. is there any bug here ? Thanks Eric Brun Ingénieur de développement [EMAIL PROTECTED] Pentila Bâtiment Euclide 73370 Le Bourget du Lac Savoie Technolac http://www.pentila.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Re: [Zope-dev] Maybe Corrupted ZCatalog but ...
In this way (with small chunks), can I do a get_transaction().commit(1) for commit each chunks or is it unnessecary ? Thank everybody for your help > Write a script to do it in smaller chunks - 20 at a time or somethig. > Keep track of those that succeed, so you can restart where you left off > after failures. Log which objects fail, so you can go into the debugger > and look at them to see what's fubar'd with them. > Just an idea, but that's where I'd start. > Andrew > > Eric Brun wrote: > > >Yes but impossible to update it because it is too big, and the transaction never > >finish or abort because of time out. > > > >I don't know how to do this. > > > >Have you a idea for help me ? > > > > > > > >>Eric Brun wrote: > >> > >> > >> > >>>An idea for fix it ? > >>> > >>> > >>Have you tried updating the catalog from it's advanced tab? > >> > >>Not sure how that'd pan out on 200,000 objects though... > >> > >>cheers, > >> > >>Chris > >> > >>-- > >>Simplistix - Content Management, Zope & Python Consulting > >>- http://www.simplistix.co.uk > >> > >> > >>___ > >>Zope-Dev maillist - [EMAIL PROTECTED] > >>http://mail.zope.org/mailman/listinfo/zope-dev > >>** No cross posts or HTML encoding! ** > >>(Related lists - > >> http://mail.zope.org/mailman/listinfo/zope-announce > >> http://mail.zope.org/mailman/listinfo/zope ) > >> > >> > >> > > > > > >Eric Brun > >Savoie Technologie > >Savoie Technolac > > > > > >Eric Brun > >Savoie Technologie > >Savoie Technolac > > > > > >___ > >Zope-Dev maillist - [EMAIL PROTECTED] > >http://mail.zope.org/mailman/listinfo/zope-dev > >** No cross posts or HTML encoding! ** > >(Related lists - > > http://mail.zope.org/mailman/listinfo/zope-announce > > http://mail.zope.org/mailman/listinfo/zope ) > > > > > > Eric Brun Savoie Technologie Savoie Technolac ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Re: [Zope-dev] Maybe Corrupted ZCatalog but ...
Yes but impossible to update it because it is too big, and the transaction never finish or abort because of time out. I don't know how to do this. Have you a idea for help me ? > Eric Brun wrote: > > > An idea for fix it ? > > Have you tried updating the catalog from it's advanced tab? > > Not sure how that'd pan out on 200,000 objects though... > > cheers, > > Chris > > -- > Simplistix - Content Management, Zope & Python Consulting > - http://www.simplistix.co.uk > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) > Eric Brun Savoie Technologie Savoie Technolac Eric Brun Savoie Technologie Savoie Technolac ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Maybe Corrupted ZCatalog but ...
Hi, When we do a search on a ZCatalog we have the message below. We work with Zope 2.6.2 and our Catalog have more than 200 000 objects referenced. We think our catalog is corrupted but we would correct it. Anybody have the same problem ? An idea for fix it ? Thank Eric Brun Type d'erreur : KeyError Valeur : 182975046 Trace : Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module App.special_dtml, line 61, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_In, line 465, in renderwb Module DocumentTemplate.DT_In, line 749, in sort_sequence Module Products.ZCatalog.Lazy, line 155, in __getitem__ Module Products.ZCatalog.Catalog, line 149, in __getitem__ KeyError: 182975046 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Risks with Zope 2.6.2 with Python 2.2.3
Hello, I try to run Zope2.6.2 and ZODB3.2 with python 2.2.3 but it failed. Then I modified a few ZODB3.2 (remove 'object' inherite on some classes like Connection.py DB.py and some others). I have succed to run ZEO and Zope 2.6.2 on python 2.1.3. Perhaps is not so well, but it's run. Is there any risks to do that too ? Thank too Eric > Hello, > > following Jeremy Hylton's advice, I would like to ask the developer > community: > > what risks are associated with Zope 2.6.2 with Pythoin 2.2.3? > > Thank you, > > /dario > > - > Dario Lopez-Kästen, IT Systems & Services Chalmers University of Tech. > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] problems with accented characters - need advice
hello, we are looking for a simple solution to ensure that objects added to the zope database have valid names... including those which start out containing accented characters ( we are in europe ). we are considering making the change in our PUT, located in NullResource.py in the webdav area. we are wondering if anyone has any comments about this solution... is it a good idea. anyone have any other ideas? we have a process method for correcting accented characters and is located in the constructor of the object class : it works like ob.id = processID(name) here is the change...we have added 'ob.id or name' to setObject method request. # Delegate actual PUT handling to the new object. ob.PUT(REQUEST, RESPONSE) self.__parent__._setObject(ob.id or name, ob) Eric Brun Savoie Technologie Savoie Technolac ___ 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 )
[Zope-dev] Catalog Problem
I update my Zope 2.3.x to 2.4.2 and I have some probleme with my ZCatalog here the traceback : -- 2001-11-09T18:00:34 ERROR(200) UnKeywordIndex Attempt to unindex nonexistent document id -254566349 Traceback (most recent call last): File "/data/Zope/lib/python/Products/PTKBase/PortalContent.py", line 523, in index_object self.getPortal().getCatalog().catalog_object(self, urllib.unquote('/' + PortalContent.absolute_url(self,1))) File "/data/Zope/lib/python/Products/ZCatalog/ZCatalog.py", line 554, in catalog_object self._catalog.catalogObject(obj, uid, None,idxs) File "/data/Zope/lib/python/Products/ZCatalog/Catalog.py", line 439, in catalogObject blah = x.index_object(index, object, threshold) File "/data/Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py", line 189, in index_object self.insertEntry( comps[i],documentId,i) File "/data/Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py", line 164, in insertEntry self._index[comp][level].insert(id) File "/data/Zope/lib/python/ZODB/Connection.py", line 535, in setstate raise ConflictError(`oid`, `object.__class__`) ConflictError: ("'\\x00\\x00\\x00\\x00\\x00\\x100\\x9f'", '') Somebody understand this traceback ? What's happen ? and How can I correct it ? Thanks -- Eric Brun Mission TIC Savoie Technolac France E-mail : [EMAIL PROTECTED] ___ 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 )
Fwd: Re: [Zope-dev] WebDav Bug?
Hi, I'm working on webdav too. Question : When I access to my folder by webdav protocol (win98 webfolder), I can list the folder content, but when I want to access to a file inside, Zope asked to me another authentification, then I can access to my file (wordd file (.doc)) but only in read only mode. When I see the Z2.log, I see that anonymous user lock my file when I try to access it . Why ? Anybody for my question ? Thanks Eric Le Lundi 17 Septembre 2001 23:40, vous avez ?rit : > This should be fixed in Zope 2.4.X > > Andreas > - Original Message - > From: "Phil Harris" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 17, 2001 12:05 > Subject: [Zope-dev] WebDav Bug? > > > All, > > > > I'm in the process of creating a Python based equivalent for Cadaver. > > > > I think there is a minor but very annoying bug in the Zope WebDav server. > > > > I don't think the contents of the properties are being quoted. > > > > For instance: > > > > One object in my ZODB has a title of 'Declare interfaces for MIMEtype <-> > > Type object registry objects.' > > > > The '<->' is what causes the problem when parsed by xml.dom.minidom. > > > > Any ideas whether I'm right, and if so what can be done. > > > > Phil > > [EMAIL PROTECTED] > > > > +1 family member. > > > > The nuclear family is now ready. > > > > > > ___ > > 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 ) > > ___ > 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 ) -- Eric Brun Mission TIC Savoie Technolac France E-mail : [EMAIL PROTECTED] --- -- Eric Brun Mission TIC Savoie Technolac France E-mail : [EMAIL PROTECTED] ___ 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 )