Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16509 - ahrg. zope upgrade ... site not running, users gone?
Summary: ahrg. zope upgrade ... site not running, users gone?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 16510 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-27 17:38 UTC by dan
Modified: 2003-10-11 13:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan 2003-02-27 17:38:46 UTC
ok i accidentally upgraded zope-2.6.0 to zope-2.6.1
Didn't notice all the changes...
My zope site has dissapeared, zope is back to a default configuration that you 
get right after the install..
also i can't even log in. I've tried using zpassword.py, to add emergency user 
but I still cannot log it. How do i fix this?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-02-27 17:49:39 UTC
*** Bug 16510 has been marked as a duplicate of this bug. ***
Comment 2 dan 2003-02-27 18:49:02 UTC
ok.. I didn't see anything in the changelogs about this but: 
now the data is stored in /var/lib/zope/ 
so i moved my Data.fs to /var/lib/zope/var/Data.fs. 
 
I had zope running on port 80, but that got blown away so I re-edited /etc/conf.d/zope 
 
I converted the products I was using to this new zprod-manager format. 
 
But I'm still a little puzzled as to why there are duplicate directories. 
/usr/share/zope/2.6.0; /usr/share/zope/zope-2.6.1 
/var/lib/zope/zope; /var/lib/zope/zope-2.6.1 
 
and duplicate init files and config files: 
/etc/init.d/zope  /etc/init.d/zope-2_6_1 
/etc/conf.d/zope  /etc/conf.d/zope-2_6_1 
 
and I'm puzzled as to the new zinstances.. 
it would be nice if someone put up some kind of short tutorial as to how zope works on gentoo now. 
Comment 3 Jason Shoemaker (RETIRED) gentoo-dev 2003-02-27 20:29:37 UTC
Sorry about that,A good reason why it is still marked as unstable. To try and catch these types of problems. 

I'm pretty sure your zope site is still located at /usr/share/zope.2.6.0/var.
Should probably back it up, if you haven't already done so.

I did a limited test and it worked for me. Maybe it will work for you.

Assuming you had zope-2.6.0-r1 installed and have just emerge zope-2.6.1.

# cp -r /usr/share/zope/2.6.0/var /var/lib/zope/zope-2_6_1
# zope-config --zpasswd      
# # choose zope-2.6.0, please ignore the 2.6.0, it's a bug I'm working on.

##To use 3rd party products that don't have ebuilds, just drop them into your 
##zinstance Product directory.  In this case: /var/lib/zope-2_6_1/Products.

# /etc/init.d/zope-2_6_1 start

That should get you going.  If not, let me know.  I'll be back to explain a bit about zinstances and zprod-manager.
Comment 4 dan 2003-02-27 21:42:38 UTC
cool, don't worry too much about it, i got everything working :) 
Comment 5 Aaron Peterson 2003-08-13 05:20:28 UTC
Jason,
zope needs a tutorial for people with adhd rather than some book that includes a description of obeject oriented models...

just dropping a file in the products directory doesn't make sence to a person who doesn't know that there is that management console... witch I would assume is how the utilities are started...  (I'm reading the zope-book now)

maybe adding a few more comments about manager and zope book in the ebuild comments would work... thats where I look when I'm stuck.

and maybe that zpasswd.py directory should have a big GENTOO.README init that says how zope-config works... and maybe a simlink in there... cause I searched for zpasswd.py and ran it... because I was reading the zope book 

Still, I think that zope-config is really cool and zope should look into including it in their release...  (though I still haven't used it yet)
Comment 6 Aaron Peterson 2003-08-13 17:25:20 UTC
hi, I pieced together a bit of a tutorial..
horray! it works as it seems like it should... but it differs from the zope-book

http://www.subverted.net/wakka/wakka.php?wakka=GentooZope
(I wish I could edit my posts on bugzilla, sorry for the snotty post)
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-11 13:26:38 UTC
as these infos are in postinst, i assume that i can close this bug