Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
On 6/23/05, Tim Suter <[EMAIL PROTECTED]> wrote: > Do I have to start all over? Yes, do what Bakhtiar said: Install a clean, new zope + all your products from the old zope. Copy in the data.fs. Start. Fix problems one by one as they appear. :-) -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/ ___ 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 )
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
Yep, I think I hosed the new install. I imported the old Data.fs and corresponding .zexp files over and now it won't let me into the localhost:8080/manage interface even. I keep getting connection refused messages there. I have restarted zope. Tried to restore the working Data.fs file...but all is still not well. When I point to the Start Page that everyone should see, I get the authentication window and it does authenticate, but then I get "Bad Gateway The proxy server received an invalid response from an upstream server." Do I have to start all over? Which is ok and maybe more efficient in getting this project off my plate (rather then peck my way through code I have no understanding of, (python). Unless you know what I can do to fix it quickly. Is there a way to cleanly uninstall Zope if I have to go this route? I compiled from the tar.gz and didn't use an RPM. Then what I want to do is start all over and set up a knowledge base: On an RHEL4 box: A fresh install of Zope (2.8.0 now) with; an apache2 front end with rewrite and redirect turned on so I can authenticate via LDAP, use our internal MySQL instead of the Zope DB, I want anyone to be able to edit freely provided they have the right authentication credentials from our organization, then import all the old knowledge base data from the Zope 2.5.1 install on the other Debian box to use in the new fresh install of Zope on the new RHEL4 install. Can anyone provide me some notes if you have similar installs and what I need to do to get this up and running? I have many projects going on right now, this one, is just the tip of the iceberg of Open Source technology that I am trying to absorb. Please don't tell me to RTFM because I am doing that already. My head is literally spinning with Perl, Python, LDAP, Apache, Zope, Linux, Unix, OpenBSDDon't get me wrong, I love it. I just need to make some progress on this through a good HowTO whether its already documented and I have overlooked it or if any of you would like to spend some time to help a very receptive learner. Thank you for any assistance, Tim On Thu, 2005-06-23 at 08:09 +0100, Peter Bengtsson wrote: > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > FWIW, here's the output of the old 2.5.1 install: > > > ... > > > > So that tells me that there are many dependent on > > bobobase_modification_time. What does that mean and what do I need to > > do about it? > > > > It is completely wrong to rely on bobobase_modification_time because > that value changes when the object storage changes. It's much better > to use something like 'last_modified_date' that you control yourself > in your own code. > > What happens when you import any object is that > bobobase_modification_time gets set to today() which might make all > your objects appear to be unordered because every time you refresh > (now on you zope276) they seem to jump around from place to place. > > Solution is nasty but straight forward at least. On your (zope 2.5.1), > this product that you have instanciated as Knowledge, Argyle and > Helpdesk, do you have control over it's source code? Assuming it's a > python product it might look something like this:: > > class MyProduct(Folder): > meta_type = 'My Product' > def __init__(self, id, title): > self.id = id > self.title = title > def getModTime(self): > return self.bobobase_modifiation_time() > > Now, what you need to do is to"copy" the bobobase_modification_time to > a new attribute. > > class MyProduct(Folder): > meta_type = 'My Product' > def __init__(self, id, title): > self.id = id > self.title = title > self.last_modified_date = DateTime() > def getModTime(self): > return self.last_modified_date > def upgrade(self): > self.last_modified_date = self.bobobase_modification_time() > > And somewhere else you need to have a serious python script that loops > through all instances and runs upgrade() on each. Something like this: > > for instance in context.objectValues('My Product'): > instance.upgrade() > > Good luck > > > > Thanks much for your assistance; > > > > Tim > > > > On Wed, 2005-06-22 at 17:33 +0100, Peter Bengtsson wrote: > > > Try something like this: > > > $ cd zopehome/Products/ > > > $ grep -rn bobobase_modification_time . > > > > > > That will tell you if any of your diskbased python products rely on > > > bobobase_modification_time > > > > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > > > Excuse the newbie question, but how would I find that out? > > > > > > > > I inherited this 'project' of upgrading Zope and migrating the data. I > > > > have had NO help with it so I have been banging through it all the way. > > > > > > > > Thanks, > > > > Tim > > > > On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: > > > > > Are any of your applications relying on the > > > > > 'bobobase_modification_time' attribute? > > > > > That's something
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > FWIW, here's the output of the old 2.5.1 install: > ... > > So that tells me that there are many dependent on > bobobase_modification_time. What does that mean and what do I need to > do about it? > It is completely wrong to rely on bobobase_modification_time because that value changes when the object storage changes. It's much better to use something like 'last_modified_date' that you control yourself in your own code. What happens when you import any object is that bobobase_modification_time gets set to today() which might make all your objects appear to be unordered because every time you refresh (now on you zope276) they seem to jump around from place to place. Solution is nasty but straight forward at least. On your (zope 2.5.1), this product that you have instanciated as Knowledge, Argyle and Helpdesk, do you have control over it's source code? Assuming it's a python product it might look something like this:: class MyProduct(Folder): meta_type = 'My Product' def __init__(self, id, title): self.id = id self.title = title def getModTime(self): return self.bobobase_modifiation_time() Now, what you need to do is to"copy" the bobobase_modification_time to a new attribute. class MyProduct(Folder): meta_type = 'My Product' def __init__(self, id, title): self.id = id self.title = title self.last_modified_date = DateTime() def getModTime(self): return self.last_modified_date def upgrade(self): self.last_modified_date = self.bobobase_modification_time() And somewhere else you need to have a serious python script that loops through all instances and runs upgrade() on each. Something like this: for instance in context.objectValues('My Product'): instance.upgrade() Good luck > Thanks much for your assistance; > > Tim > > On Wed, 2005-06-22 at 17:33 +0100, Peter Bengtsson wrote: > > Try something like this: > > $ cd zopehome/Products/ > > $ grep -rn bobobase_modification_time . > > > > That will tell you if any of your diskbased python products rely on > > bobobase_modification_time > > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > > Excuse the newbie question, but how would I find that out? > > > > > > I inherited this 'project' of upgrading Zope and migrating the data. I > > > have had NO help with it so I have been banging through it all the way. > > > > > > Thanks, > > > Tim > > > On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: > > > > Are any of your applications relying on the > > > > 'bobobase_modification_time' attribute? > > > > That's something that changes when you import a .zexp file which could > > > > maybe explain why things appear differently now. > > > > > > > > > > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > > > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > > > > > new version installed as a different instance on a different server. > > > > > The Zope 2.5.1 is in tact and what I am wondering is, how do you > > > > > migrate > > > > > everything from the older to the newer? I thought exporting the .zexp > > > > > out of Zope 2.5.1 would be ok. However, when I import it into the new > > > > > install, it isn't the same as the original. For example, I exported > > > > > knowledge.zexp from the 2.5.1 and imported into the 2.7.6. Now, when > > > > > I > > > > > go to pull up the page that points to info related to this data, the > > > > > subtopics are now listed below the contents of the original page. In > > > > > looking at the html (I am no HTML expert at ALL), it did not appear > > > > > that > > > > > there was even anything related to subtopics. It must be a control > > > > > from > > > > > within the Zope management interface. > > > > > > > > > > I guess I just want to know how to migrate properly with little > > > > > administrative effort. > > > > > > > > > > Thanks, > > > > > Tim > > > > > > > > > > ___ > > > > > 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 ) > > > > > > > > > > > > > > > > > > > > > > > > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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 )
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
FWIW, here's the output of the old 2.5.1 install: sprite:/var/lib/zope# grep -rn bobobase_modification_time . Binary file ./var/Data.fs matches grep: ./var/Z2-pcgi.soc: No such device or address ./var/Z2.log:59809:127.0.0.1- - [11/Jun/2002:21:04:53 -0500] "GET /Knowledge/search/Indexes/bobobase_modification_time/manage_workspace" 200 2489 ./var/Z2.log:59822:127.0.0.1- - [11/Jun/2002:21:05:24 -0500] "GET /Knowledge/search/Indexes/bobobase_modification_time/manage_workspace" 200 3126 ./var/Z2.log:60034:127.0.0.1 - - [11/Jun/2002:21:22:20 -0500] "GET /Knowledge/Catalog/Indexes/bobobase_modification_time/manage_workspace" 200 3130 "http://knowledge.cait.org/Zope/Knowledge/Catalog/Indexes/manage_main"; "Mozilla/5.0 Galeon/1.2.3 (X11; Linux i686; U;) Gecko/20020531 Debian/1.2.3-6" ./var/Z2.log:60035:127.0.0.1 - - [11/Jun/2002:21:22:20 -0500] "GET /manage_page_style.css" 200 2923 "http://knowledge.cait.org/Zope/Knowledge/Catalog/Indexes/bobobase_modification_time/manage_workspace"; "Mozilla/5.0 Galeon/1.2.3 (X11; Linux i686; U;) Gecko/20020531 Debian/1.2.3-6" ./var/Z2.log:76775:127.0.0.1 - - [28/Jun/2002:15:34:45 -0500] "GET /manage_page_style.css" 200 2923 "http://knowledge.cait.org/Zope/Helpdesk/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020610 Debian/1.2.5-1" ./var/Z2.log:76785:127.0.0.1 - - [28/Jun/2002:15:36:14 -0500] "POST /Helpdesk/" 200 70659 "http://knowledge.cait.org/Zope/Helpdesk/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020610 Debian/1.2.5-1" ./var/Z2.log:76951:127.0.0.1 - - [28/Jun/2002:15:44:12 -0500] "GET /manage_page_style.css" 200 2923 "http://knowledge.cait.org/Zope/Knowledge/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020610 Debian/1.2.5-1" ./var/Z2.log:76952:127.0.0.1 - - [28/Jun/2002:15:44:30 -0500] "POST /Knowledge/" 200 230769 "http://knowledge.cait.org/Zope/Knowledge/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/5.0 Galeon/1.2.5 (X11; Linux i686; U;) Gecko/20020610 Debian/1.2.5-1" ./var/Z2.log:170191:127.0.0.1 - - [21/Feb/2003:19:33:04 -0500] "GET /manage_page_style.css" 200 2923 "http://knowledge.cait.org/Zope/Argyle/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" ./var/Z2.log:170192:127.0.0.1 - - [21/Feb/2003:19:33:04 -0500] "GET /misc_/OFSP/dtmlmethod.gif" 200 1045 "http://knowledge.cait.org/Zope/Argyle/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" ./var/Z2.log:170193:127.0.0.1 - - [21/Feb/2003:19:33:04 -0500] "GET /misc_/OFSP/Image_icon.gif" 200 1079 "http://knowledge.cait.org/Zope/Argyle/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" ./var/Z2.log:170194:127.0.0.1 - - [21/Feb/2003:19:33:04 -0500] "GET /misc_/ZWiki/ZWikiPage_icon.gif" 200 376 "http://knowledge.cait.org/Zope/Argyle/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" ./var/Z2.log:170195:127.0.0.1 - - [21/Feb/2003:19:33:15 -0500] "POST /Argyle/" 200 27964 "http://knowledge.cait.org/Zope/Argyle/manage_main? skey=bobobase_modification_time&rkey=bobobase_modification_time" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" So that tells me that there are many dependent on bobobase_modification_time. What does that mean and what do I need to do about it? Thanks much for your assistance; Tim On Wed, 2005-06-22 at 17:33 +0100, Peter Bengtsson wrote: > Try something like this: > $ cd zopehome/Products/ > $ grep -rn bobobase_modification_time . > > That will tell you if any of your diskbased python products rely on > bobobase_modification_time > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > Excuse the newbie question, but how would I find that out? > > > > I inherited this 'project' of upgrading Zope and migrating the data. I > > have had NO help with it so I have been banging through it all the way. > > > > Thanks, > > Tim > > On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: > > > Are any of your applications relying on the > > > 'bobobase_modification_time' attribute? > > > That's something that changes when you import a .zexp file which could > > > maybe explain why things appear differently now. > > > > > > > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > > > > new version installed as a different instance on a different server. > > > > The Zope 2.5.1 is in tact and what I am wond
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
Try something like this: $ cd zopehome/Products/ $ grep -rn bobobase_modification_time . That will tell you if any of your diskbased python products rely on bobobase_modification_time On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > Excuse the newbie question, but how would I find that out? > > I inherited this 'project' of upgrading Zope and migrating the data. I > have had NO help with it so I have been banging through it all the way. > > Thanks, > Tim > On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: > > Are any of your applications relying on the > > 'bobobase_modification_time' attribute? > > That's something that changes when you import a .zexp file which could > > maybe explain why things appear differently now. > > > > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > > > new version installed as a different instance on a different server. > > > The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate > > > everything from the older to the newer? I thought exporting the .zexp > > > out of Zope 2.5.1 would be ok. However, when I import it into the new > > > install, it isn't the same as the original. For example, I exported > > > knowledge.zexp from the 2.5.1 and imported into the 2.7.6. Now, when I > > > go to pull up the page that points to info related to this data, the > > > subtopics are now listed below the contents of the original page. In > > > looking at the html (I am no HTML expert at ALL), it did not appear that > > > there was even anything related to subtopics. It must be a control from > > > within the Zope management interface. > > > > > > I guess I just want to know how to migrate properly with little > > > administrative effort. > > > > > > Thanks, > > > Tim > > > > > > ___ > > > 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 ) > > > > > > > > > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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 )
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
Excuse the newbie question, but how would I find that out? I inherited this 'project' of upgrading Zope and migrating the data. I have had NO help with it so I have been banging through it all the way. Thanks, Tim On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: > Are any of your applications relying on the > 'bobobase_modification_time' attribute? > That's something that changes when you import a .zexp file which could > maybe explain why things appear differently now. > > > On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > > new version installed as a different instance on a different server. > > The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate > > everything from the older to the newer? I thought exporting the .zexp > > out of Zope 2.5.1 would be ok. However, when I import it into the new > > install, it isn't the same as the original. For example, I exported > > knowledge.zexp from the 2.5.1 and imported into the 2.7.6. Now, when I > > go to pull up the page that points to info related to this data, the > > subtopics are now listed below the contents of the original page. In > > looking at the html (I am no HTML expert at ALL), it did not appear that > > there was even anything related to subtopics. It must be a control from > > within the Zope management interface. > > > > I guess I just want to know how to migrate properly with little > > administrative effort. > > > > Thanks, > > Tim > > > > ___ > > 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 )
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
Are any of your applications relying on the 'bobobase_modification_time' attribute? That's something that changes when you import a .zexp file which could maybe explain why things appear differently now. On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > new version installed as a different instance on a different server. > The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate > everything from the older to the newer? I thought exporting the .zexp > out of Zope 2.5.1 would be ok. However, when I import it into the new > install, it isn't the same as the original. For example, I exported > knowledge.zexp from the 2.5.1 and imported into the 2.7.6. Now, when I > go to pull up the page that points to info related to this data, the > subtopics are now listed below the contents of the original page. In > looking at the html (I am no HTML expert at ALL), it did not appear that > there was even anything related to subtopics. It must be a control from > within the Zope management interface. > > I guess I just want to know how to migrate properly with little > administrative effort. > > Thanks, > Tim > > ___ > 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 ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.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 )
Re: [Zope] From Zope 2.5.1 to Zope 2.7.6
On 6/22/05, Tim Suter <[EMAIL PROTECTED]> wrote: > I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the > new version installed as a different instance on a different server. > The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate > everything from the older to the newer? I thought exporting the .zexp > out of Zope 2.5.1 would be ok. However, when I import it into the new > install, it isn't the same as the original. For example, I exported i would suggest setting up the new zope 2.7.6 instance, copy all products used, and Data.fs to var start zope, see if it complains. if not, you're good. else, check the traceback, do something, and start zope again. repeat. hth > ___ > 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 ) > -- http://myzope.kedai.com.my - my-zope org ___ 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] From Zope 2.5.1 to Zope 2.7.6
I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the new version installed as a different instance on a different server. The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate everything from the older to the newer? I thought exporting the .zexp out of Zope 2.5.1 would be ok. However, when I import it into the new install, it isn't the same as the original. For example, I exported knowledge.zexp from the 2.5.1 and imported into the 2.7.6. Now, when I go to pull up the page that points to info related to this data, the subtopics are now listed below the contents of the original page. In looking at the html (I am no HTML expert at ALL), it did not appear that there was even anything related to subtopics. It must be a control from within the Zope management interface. I guess I just want to know how to migrate properly with little administrative effort. Thanks, Tim ___ 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 )