Access to Data.fs without Zope ?
Hello, Last summer I wrote an application to inventarise all my media (books, CD's, periodicals, etc) which worked well, but wasn't yet complete. Anyway, I started adding books as an exercise to see how it could be improved. However, I run Debian testing, and after some updates in the fall I could not get access anymore to my data. Today I tried to move the contents of Zope default to a known running instance of Zope, but the moment I do that, the Zope instance cannot be started anymore. Replace the contents back by its originals and the instance can be started once again. So, is there a way to access the contents of the Data.fs file without using Zope alltogether, so that I at least can start working again ? Regards, Jurgen
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jurgen Defurne wrote: | Last summer I wrote an application to inventarise all my media | (books, CD's, periodicals, etc) which worked well, but wasn't yet | complete. Anyway, I started adding books as an exercise to see how it | could be improved. | | However, I run Debian testing, and after some updates in the fall I | could not get access anymore to my data. | | Today I tried to move the contents of Zope default to a known running | instance of Zope, but the moment I do that, the Zope instance cannot | be started anymore. Replace the contents back by its originals and | the instance can be started once again. | | So, is there a way to access the contents of the Data.fs file without | using Zope alltogether, so that I at least can start working again ? How does the startup fail? Try running Zope in the foreground (set 'debug-mode' true in zope.conf, then run 'zopectl fg'). What errors do you see? Also, what version of Zope was the original installation? What version is installed now? Assuming that the Data.fs is not damaged, you should be able to open the database from within Python, but that seems harder than needed if we can ~ help you get Zope to restart; if it does, then you can write a script to extract your data (to be run under 'zopectl run'). Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCKdvWGqWXf00rNCgRAn5bAJ99ENJmAY1hBnan9U8a/S8Ks3F4/gCeNuCJ JrfBEEH5n834U1Vt2Eomg8A= =Zulz -----END PGP SIGNATURE-----
On Sat, Mar 05, 2005 at 04:52:43PM +0100, Jurgen Defurne wrote:
Hello,
Last summer I wrote an application to inventarise all my media (books, CD's, periodicals, etc) which worked well, but wasn't yet complete. Anyway, I started adding books as an exercise to see how it could be improved.
However, I run Debian testing, and after some updates in the fall I could not get access anymore to my data.
Today I tried to move the contents of Zope default to a known running instance of Zope, but the moment I do that, the Zope instance cannot be started anymore. Replace the contents back by its originals and the instance can be started once again.
We need some version numbers here. Also there should be output telling you why it wont' start. Post it here, that would help...
So, is there a way to access the contents of the Data.fs file without using Zope alltogether, so that I at least can start working again ?
Not really. I would try to find out what zope version was provided by Debian when you had it running, and install that manually. -- Paul Winkler http://www.slinkp.com
On Sat, Mar 05, 2005 at 11:24:50AM -0500, Paul Winkler wrote:
On Sat, Mar 05, 2005 at 04:52:43PM +0100, Jurgen Defurne wrote:
Hello,
Last summer I wrote an application to inventarise all my media (books, CD's, periodicals, etc) which worked well, but wasn't yet complete. Anyway, I started adding books as an exercise to see how it could be improved.
However, I run Debian testing, and after some updates in the fall I could not get access anymore to my data.
Today I tried to move the contents of Zope default to a known running instance of Zope, but the moment I do that, the Zope instance cannot be started anymore. Replace the contents back by its originals and the instance can be started once again.
We need some version numbers here. Also there should be output telling you why it wont' start. Post it here, that would help...
It is now running version 2.6.4-1.6. I must have started with something larger than 2.5.1, because thats in Debian woody. That's the problem with living on the bleeding edge of course (I run Debian testing). The output I get when using zopectl directly (I even modified the script to remove the try/catch statement), just gives a timeout message, not an error. z2.py runs when started on its own. I just noticed that there isn't anything under /etc/zopectl. I will first try to a working zope.conf file. Regards, Jurgen
So, is there a way to access the contents of the Data.fs file without using Zope alltogether, so that I at least can start working again ?
Not really.
I would try to find out what zope version was provided by Debian when you had it running, and install that manually.
--
Paul Winkler http://www.slinkp.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Sat, Mar 05, 2005 at 06:06:23PM +0100, Jurgen Defurne wrote:
It is now running version 2.6.4-1.6. I must have started with something larger than 2.5.1, because thats in Debian woody. That's the problem with living on the bleeding edge of course (I run Debian testing).
fyi, 2.6.4 is hardly bleeding edge considering that 2.7.4 is the current stable zope release. There must be some way to find out what version of zope & python would have been in debian testing on a given date... I'd start with that.
The output I get when using zopectl directly (I even modified the script to remove the try/catch statement), just gives a timeout message, not an error.
z2.py runs when started on its own.
I just noticed that there isn't anything under /etc/zopectl. I will first try to a working zope.conf file.
I dunno what zopectl script would be used for 2.6.4. zopectl wasn't shipped with zope until 2.7.0. Neither was zope.conf. Sounds like you've got some vendor-specific oddness going on. -- Paul Winkler http://www.slinkp.com
Try bin/run.zope from the console... On Sat, 5 Mar 2005, Jurgen Defurne wrote:
On Sat, Mar 05, 2005 at 11:24:50AM -0500, Paul Winkler wrote:
On Sat, Mar 05, 2005 at 04:52:43PM +0100, Jurgen Defurne wrote:
Hello,
Last summer I wrote an application to inventarise all my media (books, CD's, periodicals, etc) which worked well, but wasn't yet complete. Anyway, I started adding books as an exercise to see how it could be improved.
However, I run Debian testing, and after some updates in the fall I could not get access anymore to my data.
Today I tried to move the contents of Zope default to a known running instance of Zope, but the moment I do that, the Zope instance cannot be started anymore. Replace the contents back by its originals and the instance can be started once again.
We need some version numbers here. Also there should be output telling you why it wont' start. Post it here, that would help...
It is now running version 2.6.4-1.6. I must have started with something larger than 2.5.1, because thats in Debian woody. That's the problem with living on the bleeding edge of course (I run Debian testing).
The output I get when using zopectl directly (I even modified the script to remove the try/catch statement), just gives a timeout message, not an error.
z2.py runs when started on its own.
I just noticed that there isn't anything under /etc/zopectl. I will first try to a working zope.conf file.
Regards,
Jurgen
So, is there a way to access the contents of the Data.fs file without using Zope alltogether, so that I at least can start working again ?
Not really.
I would try to find out what zope version was provided by Debian when you had it running, and install that manually.
--
Paul Winkler http://www.slinkp.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On 05.Mär 2005 - 18:06:23, Jurgen Defurne wrote:
On Sat, Mar 05, 2005 at 11:24:50AM -0500, Paul Winkler wrote:
We need some version numbers here. Also there should be output telling you why it wont' start. Post it here, that would help...
It is now running version 2.6.4-1.6. I must have started with something larger than 2.5.1, because thats in Debian woody.
Look at the changelog in /var/log/zope/changelog.Debian.gz and find out which version was up-to-date when you last used your app.
That's the problem with living on the bleeding edge of course (I run Debian testing).
Not quite right, bleeding edge in Zope means 2.8, current stable is 2.7.4. The Debian 2.6.4 package is a pretty mess IMHO, it tries to backport changes from 2.7, such as multiple instances, zopectl-script and so on... Get a 2.6.4 source-package from zope.org and install it into your home, put the Data.fs into it and try to start it. If that works well, I suggest to install a current stable Zope into your Home. The zope27 Debian package is a bit better than the "zope" (i.e. 2.6.X) but I still suggest to install Zope from source... Andreas -- Many changes of mind and mood; do not hesitate too long.
Jurgen, Assuming the Data.fs is intact, you should be able to recover your material. Install a fresh Zope system, put the Data.fs in the usual place (the Zope var directory) and start Zope. I'd do it from the console with debug on so you can see the messages. When you install a new Data.fs you need to remove all the other Data.* files so that they get rebuilt as needed. Also, be certain that the ownership and protections are right on Data.fs. -d On Sat, 5 Mar 2005, Jurgen Defurne wrote:
Hello,
Last summer I wrote an application to inventarise all my media (books, CD's, periodicals, etc) which worked well, but wasn't yet complete. Anyway, I started adding books as an exercise to see how it could be improved.
However, I run Debian testing, and after some updates in the fall I could not get access anymore to my data.
Today I tried to move the contents of Zope default to a known running instance of Zope, but the moment I do that, the Zope instance cannot be started anymore. Replace the contents back by its originals and the instance can be started once again.
So, is there a way to access the contents of the Data.fs file without using Zope alltogether, so that I at least can start working again ?
Regards,
Jurgen _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Thanks for all the answers. Looking through them and searching for the default.conf and zopectlrc, I found out that they where missing, and copied them from a fresh installation. After that I still needed to do 'zopectl pcgi default' and I got it finally started. I think that somewhere between versions there was a Debian Zope package which was not really on par, but now I got it going again. I think I'll refrain from further updates on that system (which is installed on a UML instance btw.) to not mess things further up. Regards, Jurgen
participants (5)
-
Andreas Pakulat -
Dennis Allison -
jurgen.defurne@pandora.be -
Paul Winkler -
Tres Seaver