I'm trying to setup Zope 2.6.1 on a fresh install of RedHat 8.0 and running into some difficulty. I've configured zope to run as user 'zope' and chmod -R zope.zope the main Zope dir, so I wouldn't think it would be a permissions issue. Zope starts up fine, but when I try to access the management page I get a an error after entering the initial username and password provided by the install script. I've been reading through the docs, faqs, and searching online, but so far I haven't found a solution to this. Listed below are some of the details. Any help appreciated. Zope Error Zope has encountered an error while publishing this resource. Error Type: DTML file error Error Value: Check logfile for details ---------------------------------------------------------------------------- ---- 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. Z2.log records the following: 192.168.0.1 - admin [20/Feb/2003:13:25:48 -0400] "GET /manage HTTP/1.1" 500 1551 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 192.168.0.1 - admin [20/Feb/2003:13:25:49 -0400] "GET /p_/ZopeButton HTTP/1.1" 500 1571 "http://192.168.0.17:8080/manage" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 192.168.0.1 - admin [20/Feb/2003:13:25:49 -0400] "GET /p_/ZButton HTTP/1.1" 500 1571 "http://192.168.0.17:8080/manage" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" Editing the start script to include -M zope.log produces a different error: Zope Error Zope has encountered an error while publishing this resource. Error Type: IOError Error Value: [Errno 13] Permission denied: '/root/Zope-2.6.1-linux2-x86/lib/python/App/dtml/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. And the corresponding Z2.log entries: 192.168.0.1 - admin [20/Feb/2003:14:28:57 -0400] "GET /manage HTTP/1.1" 500 1611 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 192.168.0.1 - admin [20/Feb/2003:14:28:57 -0400] "GET /p_/ZButton HTTP/1.1" 500 1573 "http://192.168.0.17:8080/manage" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" 192.168.0.1 - admin [20/Feb/2003:14:28:57 -0400] "GET /p_/ZopeButton HTTP/1.1" 500 1573 "http://192.168.0.17:8080/manage" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" In addition to the zope.log entries: U 000000000 2003-02-20T14:23:03 System startup B 144433948 2003-02-20T14:23:16 GET /manage I 144433948 2003-02-20T14:23:16 0 A 144433948 2003-02-20T14:23:16 500 1611 E 144433948 2003-02-20T14:23:16 B 144435532 2003-02-20T14:23:16 GET /p_/ZButton I 144435532 2003-02-20T14:23:16 0 A 144435532 2003-02-20T14:23:16 500 1573 B 144439164 2003-02-20T14:23:16 GET /p_/ZopeButton I 144439164 2003-02-20T14:23:16 0 A 144439164 2003-02-20T14:23:16 500 1573 E 144435532 2003-02-20T14:23:16 E 144439164 2003-02-20T14:23:16 Any insight welcome. TIA, Brendan
On Thu, Feb 20, 2003 at 02:41:09PM -0500, Brendan Pirie wrote:
I'm trying to setup Zope 2.6.1 on a fresh install of RedHat 8.0 and running into some difficulty. I've configured zope to run as user 'zope' and chmod -R zope.zope the main Zope dir, so I wouldn't think it would be a permissions issue. Zope starts up fine, but when I try to access the management page I get a an error after entering the initial username and password provided by the install script. I've been reading through the docs, faqs, and searching online, but so far I haven't found a solution to this. Listed below are some of the details. Any help appreciated.
chmod -R zope.zope does not work, you mean "chown".
Error Type: IOError Error Value: [Errno 13] Permission denied: '/root/Zope-2.6.1-linux2-x86/lib/python/App/dtml/manage.dtml'
This is a permission problem. What does 'ls -l $file' show? Have a look with "ps" what userid the zope server uses. But AFAIK zope does not change its uid. One other way to check the permissions: su zope cat $file try the following in your zope-home: chmod -R 755 . thomas -- Thomas Guettler <guettli@thomas-guettler.de> http://www.thomas-guettler.de
chmod -R zope.zope does not work,
you mean "chown".
Yes, of course. Typo.
This is a permission problem. What does 'ls -l $file' show?
Have a look with "ps" what userid the zope server uses. But AFAIK zope does not change its uid.
Yes, I figured it was a permissions problem, but I didn't find the answer in the docs. It is an ownership issue, not a
try the following in your zope-home: chmod -R 755 .
No dice. I even tried chmod -R 777 on the entire zope dir structure. Same error. (Don't worry, I would never leave it set this way) The problem is apparently related to running zope as root. I reinstalled as a regular user and had no problems, which is what I should have done in the first place. And you're right; zope doesn't change users, only the user that ZServer runs as is set by the start script. All is working fine now. Thanks for your help, Brendan
participants (2)
-
Brendan Pirie -
Thomas Guettler