[Zope] Data.fs gone crazy

Tom Cameron tom@cameron.to
Sat, 11 Aug 2001 10:05:27 +1000


Sebastien,
Thanks for this. I tried it but I cant import any objects. You may have seen
my earlier post. I get the following error on import:

Error Type: cPickle.UnpicklingError
Error Value: invalid load key, ' '.

Even if I try to export and import just one DTML document I get this error.

I am trying to move a site from one machine to another and I am now
completely stumped. Import/export does not work, Moving the Data.fs does not
work, FTP only works on some object types.

My last choice is to manually cut and paste all 15Mb of objects - something
I am not keen to do.

Tom

=> -----Original Message-----
=> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
=> Sebastien Bigaret
=> Sent: Friday, 10 August 2001 9:01 PM
=> To: tom@mooball.com
=> Cc: zope@zope.org
=> Subject: Re: [Zope] Data.fs gone crazy
=>
=>
=>
=>         Tom,
=>
=>   That problem bit me a few times already... I do not have an
=> explanation for
=> that, except that for some reason, the Data.fs can get corrupted when you
=> uninstall a Product (no kidding ;) --anyway, according to my own
=> experience it
=> seems to only happen with python-based products, not with ZClass.
=>
=>   I usually solve the problem by following these steps:
=> 1. export everything you'll need to 'rebuild' the Data.fs
=> 2. stop zope
=> 3. move the Data.fs elsewhere (I really mean 'move it', not
=> delete: it's sooo
=> easy to forget to export some important stuff...)
=> 4. restart zope --it build a brand new Data.fs
=> 5. import all previously exported stuff
=>
=>   ...and that's it. Anyway, I am also interested in learning a
=> quicker way to
=> circumvent this problem --and whether it is a bug or not...
=>
=>         Hope this helps,
=>                                 Big.
=> ----
=> "Tom Cameron" <tom@mooball.com> wrote:
=>
=> > When I am editing an ZSQL Method and I click on the 'Advanced'
=> tab I get
=> > this response:
=> >
=> > Error Type: ImportError
=> > Error Value: No module named POPMailBase
=> >
=> > Traceback (innermost last):
=> >   File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py,
=> line 223, in
=> > publish_module
=> >   File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py,
=> line 187, in
=> > publish
=> >   File D:\Zope\23229D~1.3\lib\python\Zope\__init__.py, line 221, in
=> > zpublisher_exception_hook
=> >     (Object: insertintolists)
=> >   File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py,
=> line 171, in
=> > publish
=> >   File D:\Zope\23229D~1.3\lib\python\ZPublisher\mapply.py, line 160, in
=> > mapply
=> >     (Object: manage_advancedForm)
=> >   File D:\Zope\23229D~1.3\lib\python\ZPublisher\Publish.py,
=> line 112, in
=> > call_object
=> >     (Object: manage_advancedForm)
=> >   File
=> D:\Zope\23229D~1.3\lib\python\Shared\DC\Scripts\Bindings.py, line
=> > 324, in __call__
=> >     (Object: manage_advancedForm)
=> >   File
=> D:\Zope\23229D~1.3\lib\python\Shared\DC\Scripts\Bindings.py, line
=> > 354, in _bindAndExec
=> >     (Object: manage_advancedForm)
=> >   File D:\Zope\23229D~1.3\lib\python\App\special_dtml.py, line
=> 236, in _exec
=> >     (Object: manage_advancedForm)
=> >   File D:\Zope\23229D~1.3\lib\python\Shared\DC\ZRDB\DA.py, line 544, in
=> > manage_product_zclass_info
=> >     (Object: insertintolists)
=> >   File D:\Zope\23229D~1.3\lib\python\ZODB\Connection.py, line 533, in
=> > setstate
=> > ImportError: (see above)
=> >
=> > POPMailBase is a completely different Product that I removed a
=> few days ago.
=> > How could the two be related and how do I fix this mess?
=> >
=> > My Database connection keeps dying now and I cant seem to get
=> it to work
=> > anymore.
=> >
=> > This is a Windows 2000 machine zope 2.3.2
=> >
=> > Tom
=>
=>
=> _______________________________________________
=> Zope maillist  -  Zope@zope.org
=> http://lists.zope.org/mailman/listinfo/zope
=> **   No cross posts or HTML encoding!  **
=> (Related lists -
=>  http://lists.zope.org/mailman/listinfo/zope-announce
=>  http://lists.zope.org/mailman/listinfo/zope-dev )
=>