I'm setting up ZOPE on a remote Red Hat system for the first time and am not clear about a couple of things involving how to run it... How do I identify which version is running? I presume I use zopectl to start it - my Zope Bible tells me to run ./start which I can't find. How do I stop it? It looks like I didn't set up the initial user correctly so can't use the ZMI. -- John
It looks like I didn't set up the initial user correctly so can't use the ZMI.
I just tried running the user setup program again and get the following error:- Username: zope Password: Verify password: Please choose a format from: SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection Encoding: sha Traceback (innermost last): File "zpasswd.py", line 200, in ? if __name__=='__main__': main(sys.argv) File "zpasswd.py", line 184, in main if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']: AttributeError: 'string' object has no attribute 'upper' Anyone know what's wrong? -- John
Looks like you're invoking the script with an old version of Python. Upgrade the Python on your system to 2.2.X or 2.3.X or use the one that comes shipped with Zope (if you've got a Zope binary release). On Sat, 2004-01-24 at 16:26, John Poltorak wrote:
It looks like I didn't set up the initial user correctly so can't use the ZMI.
I just tried running the user setup program again and get the following error:-
Username: zope Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: sha Traceback (innermost last): File "zpasswd.py", line 200, in ? if __name__=='__main__': main(sys.argv) File "zpasswd.py", line 184, in main if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']: AttributeError: 'string' object has no attribute 'upper'
Anyone know what's wrong?
On Sat, Jan 24, 2004 at 04:37:35PM -0500, Chris McDonough wrote:
Looks like you're invoking the script with an old version of Python. Upgrade the Python on your system to 2.2.X or 2.3.X or use the one that comes shipped with Zope (if you've got a Zope binary release).
Any idea how I update python on Red Hat using apt-get? It looks like some recent update has been backed out since I had v2.2.2 here a few days ago but I'm using v1.5.2 now for some reason, or has my installation of Zope picked up the wrong version? It looks as though I have v1.5.2 installed, along with 2.2.2... -- John
On Sat, 2004-01-24 at 16:26, John Poltorak wrote:
It looks like I didn't set up the initial user correctly so can't use the ZMI.
I just tried running the user setup program again and get the following error:-
Username: zope Password: Verify password:
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: sha Traceback (innermost last): File "zpasswd.py", line 200, in ? if __name__=='__main__': main(sys.argv) File "zpasswd.py", line 184, in main if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']: AttributeError: 'string' object has no attribute 'upper'
Anyone know what's wrong?
John Poltorak wrote at 2004-1-24 21:47 +0000:
On Sat, Jan 24, 2004 at 04:37:35PM -0500, Chris McDonough wrote:
Looks like you're invoking the script with an old version of Python. Upgrade the Python on your system to 2.2.X or 2.3.X or use the one that comes shipped with Zope (if you've got a Zope binary release).
Any idea how I update python on Red Hat using apt-get?
"apt-get" is for Debian; Red Hat has a different mechanism (which I do not know).
It looks like some recent update has been backed out since I had v2.2.2 here a few days ago but I'm using v1.5.2 now for some reason, or has my installation of Zope picked up the wrong version? It looks as though I have v1.5.2 installed, along with 2.2.2...
Use "python2.2 zpasswd.py" to use Python2.2 explicitely independent from your "default" Python. -- Dieter
John Poltorak wrote at 2004-1-24 20:55 +0000:
I'm setting up ZOPE on a remote Red Hat system for the first time and am not clear about a couple of things involving how to run it...
How do I identify which version is running?
I presume I use zopectl to start it - my Zope Bible tells me to run ./start which I can't find.
This changed with Zope 2.7. With Zope 2.7 (and above), you use "bin/zopectl fg" (or "bin/zopectl start"). Formerly, you used "start".
How do I stop it? It looks like I didn't set up the initial user correctly so can't use the ZMI.
With Zope 2.7, when you started with "bin/zopectl fg" (you do this only to check that startup works properly), you interrupt with "BREAK" (Control-C); when you started with "bin/zopectl start" (the normal way), you stop with "bin/zopectl stop". -- Dieter
participants (3)
-
Chris McDonough -
Dieter Maurer -
John Poltorak