My SuSE 9 seems to have Zope in only one place, here: p3a:/opt/zope # l total 71 drwxr-xr-x 10 zope root 384 2003-11-14 15:52 ./ drwxr-xr-x 3 root root 72 2003-11-14 10:48 ../ drwxr-xr-x 4 root root 576 2003-11-14 10:49 doc/ drwxr-xr-x 2 zope root 80 2003-11-14 10:48 Extensions/ drwxr-xr-x 2 zope root 160 2003-11-14 10:49 import/ -rw------- 1 root root 10 2003-11-14 15:49 inituser drwxr-xr-x 4 zope root 104 2003-11-14 10:49 lib/ drwxr-xr-x 7 zope root 704 2003-11-14 10:49 pcgi/ drwxr-xr-x 3 zope root 688 2003-11-14 14:44 utilities/ drwxr-xr-x 2 zope daemon 216 2003-11-14 15:50 var/ -rw-r--r-- 1 zope root 31553 2003-01-30 06:41 z2.py -rw-r--r-- 1 zope root 23195 2003-09-23 16:26 z2.pyc -rwxr-xr-x 1 zope root 373 2003-09-23 16:30 Zope.cgi* drwxr-xr-x 4 zope root 1008 2003-11-14 10:48 ZServer/ Neither SOFTWARE_HOME nor INSTANCE_HOME are in my bash env. Where can I look to see if I have an INSTANCE_HOME? Is it a variable in a zope config file? Which dir should I copy 'inituser' into? Thanks Roger On Friday 14 November 2003 15:07, J. Cameron Cooper wrote:
Roger Chrisman wrote:
On Friday 14 November 2003 02:46, parra_zope wrote:
Hello jcc,
Deleting Data.fs*, restarting zope and running zpasswd.py again solved the problem. I think this is an issue with SuSE 9.0, because this happened in 2 different installations....
I am unable to sign into my myserver:8080/manage page. I get the loggin window but fail authentication with user and password I have just created via /opt/ zope/utilities/zpasswd.py. I restarted Zope ( with /etc/init.d/zope restart ) of course, after running zpasswd.py. I also tried deleting /opt/zope/var/ Data.fs and trying all over again with zpasswd.py and restart. My new Zope user and password stisll fail loggin. Any suggestions? Please help me..
I do not know how SuSE packages Zope, because (a) I have never used SuSE and (b) I have never used a non-zope.org packaged Zope.
Here's how it works:
Zope has a SOFTWARE_HOME and an INSTANCE_HOME. Unless you tell it differently, Zope will assume them to be the same. I don't know if SuSE sets up a separate INSTANCE_HOME.
SOFTWARE_HOME is by default the directory with zpassword.py and the rest of the Zope software. An INSTANCE_HOME has your var directory and maybe a Products directory (among possible others.) Your SOFTWARE_HOME has a var directory as well, but if there's a separate INSTANCE_HOME, it is not used.
'access' defines an emergency user for an existing ZODB. 'inituser' defines the user that will be created when a new ZODB is made upon first run of Zope. They are made in SOFTWARE_HOME, but must be put in INSTANCE_HOME to work. (If its the same directory as SOFTWARE_HOME, you're set.) A sure way to tell what's happening is to delete your Data.fs, create an 'inituser', start Zope, and check if 'inituser' still exists: it will be consumed if it is used. Otherwise, it's in the wrong place.
So: Find your INSTANCE_HOME. The startup script (or a conf file if you're using zctl or 2.7) probably defines this, you can locate it there. Delete the Data.fs in its 'var' directory, move the 'inituser' in, and start Zope. Now things should work.
If you're not in an INSTANCE_HOME setup, well, got me. Make sure things are done in the right order and it should work.
--jcc