Zope 2.1.6 test - login problem.
I downloaded Zope-2.1.6-linux2-x86.tgz. I unpacked it in /usr/local/bin, then ./install, then ./start. Please see below and advise. I tried logging in several times. I even used python zpasswd.py access and picked a real simple password and cleartext. No joy. ------------------------------------------------------------------------------ Compiling python modules ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ creating default access file Note: The super user name and password are 'superuser' and '********'. You can change the superuser name and password with the zpasswd script. To find out more, type: /usr/local/bin/Zope-2.1.6-linux2-x86/bin/python zpasswd.py chmod 0600 /usr/local/bin/Zope-2.1.6-linux2-x86/access chmod 0711 /usr/local/bin/Zope-2.1.6-linux2-x86/var ------------------------------------------------------------------------------ setting dir permissions ------------------------------------------------------------------------------ creating default database chmod 0600 /usr/local/bin/Zope-2.1.6-linux2-x86/var/Data.fs ------------------------------------------------------------------------------ Writing the pcgi resource file (ie cgi script), /usr/local/bin/Zope-2.1.6-linux2-x86/Zope.cgi chmod 0755 /usr/local/bin/Zope-2.1.6-linux2-x86/Zope.cgi ------------------------------------------------------------------------------ Creating start script, start chmod 0711 /usr/local/bin/Zope-2.1.6-linux2-x86/start ------------------------------------------------------------------------------ Creating stop script, stop chmod 0711 /usr/local/bin/Zope-2.1.6-linux2-x86/stop ------------------------------------------------------------------------------ Done! ============================================================================== Zope Error Zope has encountered an error while publishing this resource. IOError Sorry, a Zope error occurred. Traceback (innermost last): File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, l ine 214, in publish_module File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, l ine 179, in publish File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 2 02, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, l ine 165, in publish File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, li ne 160, in mapply (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, l ine 102, in call_object (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/App/special_dtml.py, lin e 117, in __call__ (Object: manage) (Info: /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/App/manage.dtml) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Stri ng.py, line 381, in cook (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Stri ng.py, line 374, in read (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Stri ng.py, line 538, in read_raw (Object: manage) IOError: [Errno 13] Permission denied: '/usr/local/bin/Zope-2.1.6-linux2-x86/li b/python/App/manage.dtml' _________________________________________________________________ Troubleshooting Suggestions * The URL may be incorrect. * The parameters passed to this resource may be incorrect. * A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. ====================================================================== <!-- X-URL: http://209.32.157.185:8080/manage --> <!-- Date: Fri, 24 Mar 2000 09:25:36 GMT --> <BASE HREF="http://209.32.157.185:8080/manage"> <HTML> <HEAD><TITLE>Zope Error</TITLE></HEAD> <BODY> <TABLE BORDER="0" WIDTH="100%"> <TR VALIGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> </TD> <TD WIDTH="90%"> <H2>Zope Error</H2> <P>Zope has encountered an error while publishing this resource. </P> <P><STRONG>IOError</STRONG></P> Sorry, a Zope error occurred.<p> <PRE> Traceback (innermost last): File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/App/special_dtml.py, line 117, in __call__ (Object: manage) (Info: /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/App/manage.dtml) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 381, in cook (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 374, in read (Object: manage) File /usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 538, in read_raw (Object: manage) IOError: [Errno 13] Permission denied: '/usr/local/bin/Zope-2.1.6-linux2-x86/lib/python/App/manage.dtml' </PRE> <HR NOSHADE> <P>Troubleshooting Suggestions</P> <UL> <LI>The URL may be incorrect.</LI> <LI>The parameters passed to this resource may be incorrect.</LI> <LI>A resource that this resource relies on may be encountering an error.</LI> </UL> <P>For more detailed information about the error, please refer to the HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> </TD></TR> </TABLE> </BODY> </HTML> ------------------ Eddie Maddox eddie@mngovsci.com
Eddie Maddox wrote:
I downloaded Zope-2.1.6-linux2-x86.tgz. I unpacked it in /usr/local/bin, then ./install, then ./start. Please see below and advise.
I tried logging in several times. I even used python zpasswd.py access and picked a real simple password and cleartext. No joy.
Authentication is not your problem, the user your Zope is running as does not have permission to read it's own files. Keep in mind that if you run Zope as root, Zope will automatically demote itself to the user 'nobody', this is a standard practice of many servers as running a server as root can be a security hazard. If you want to run Zope this way, then make sure that 'nobody' can at least read everything, and can write to the /var directory. Otherwise, run Zope as a user that can read its files. -Michel
On Fri, 24 Mar 2000, Michel Pelletier wrote:
way, then make sure that 'nobody' can at least read everything, and can
Ok. I unpack, then chown -R nobody Z..., cd Z..., ./install, ./start. "... socket.error: (98, 'Address already in use')" ------------------ Eddie Maddox eddie@mngovsci.com
On Fri, 24 Mar 2000, Eddie Maddox wrote: :On Fri, 24 Mar 2000, Michel Pelletier wrote: : :> way, then make sure that 'nobody' can at least read everything, and can : :Ok. I unpack, then chown -R nobody Z..., cd Z..., ./install, ./start. : :"... :socket.error: (98, 'Address already in use')" the 'address' mentioned there is the port (one of the ports) zope is listening on. this means either you already have some process (zope?) listening there or your os thinks that there is some process on this port. in the former case look if there's one of your zope processes still there (e.g. 'ps auxw | grep python' to list your python processes (on linux)) or if there's some other process using it ('socklist' will tell you if its in use); in the latter wait a little, the os will usually grok this eventually. hth, peter. -- _________________________________________________ peter sabaini, mailto: sabaini@niil.at -------------------------------------------------
On Fri, 24 Mar 2000, Peter Sabaini wrote:
On Fri, 24 Mar 2000, Eddie Maddox wrote:
:socket.error: (98, 'Address already in use')"
the 'address' mentioned there is the port (one of the ports) zope is listening on. this means either you already have some process (zope?)
in the former case look if there's one of your zope processes still there (e.g. 'ps auxw | grep python' to list your python processes (on
ps showed some python stuff. I killed them all off. Now Zope works :) (But, see my next post concerning frames :( Thanks all. ------------------ Eddie Maddox eddie@mngovsci.com
Eddie Maddox wrote:
On Fri, 24 Mar 2000, Michel Pelletier wrote:
way, then make sure that 'nobody' can at least read everything, and can
Ok. I unpack, then chown -R nobody Z..., cd Z..., ./install, ./start.
"... socket.error: (98, 'Address already in use')"
You allready have a service that is running on a port Zope wants. Zope wants 8080 (for web) 8021 (for FTP) and 8099 (for the monitor). -Michel
participants (3)
-
Eddie Maddox -
Michel Pelletier -
Peter Sabaini