IOError one first running zope
I have a fresh install of Zope 2.6.4, installed from the Gentoo ebuild. I ran "zope-config -zpasswd", and then started my instance from the script provided in /etc/init.d (all default Gentoo). Now, when I go to http://localhost:8080 I get the following message: -------------------------------------------------------------------- Error Type: IOError Error Value: [Errno 13] Permission denied: '//usr/share/zope//zope-2.6.4-r1/lib/python/App/dt ml/zope_quick_start.dtml' -------------------------------------------------------------------- The page then offers the following troubleshooting advice, none of which seems to be actually helpful in this case (although I could be missing something!) * 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. I've checked /usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/zope_quick_start.dtml and made sure that the user running zope (in this case 'root') has explicit permissions to the file, which it does. I've checked the logs for this instance of zope, and there are no errors reported. I'm sure the problem is something embarrassingly easy, however I can't think of what else to check. I notice that the path mentioned begins with '//', although I can't imagine that that would be the problem (its odd, but still valid). I've also been searching google for more information on this problem, however the only hit I found which seemed to possibly be the same problem was in Japanese :( I was wondering if anyone had any suggestions or advise they might be willing to share. TIA, Steph
Try chowning the directory to your Zope user and running it as that user (instead of root) -- David On Aug 12, 2004, at 3:40 PM, Steph Smith wrote:
I have a fresh install of Zope 2.6.4, installed from the Gentoo ebuild. I ran "zope-config -zpasswd", and then started my instance from the script provided in /etc/init.d (all default Gentoo). Now, when I go to http://localhost:8080 I get the following message:
-------------------------------------------------------------------- Error Type: IOError Error Value: [Errno 13] Permission denied: '//usr/share/zope//zope-2.6.4-r1/lib/python/App/dt ml/zope_quick_start.dtml' --------------------------------------------------------------------
The page then offers the following troubleshooting advice, none of which seems to be actually helpful in this case (although I could be missing something!)
* 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.
I've checked
/usr/share/zope//zope-2.6.4-r1/lib/python/App/dtml/ zope_quick_start.dtml
and made sure that the user running zope (in this case 'root') has explicit permissions to the file, which it does. I've checked the logs for this instance of zope, and there are no errors reported. I'm sure the problem is something embarrassingly easy, however I can't think of what else to check. I notice that the path mentioned begins with '//', although I can't imagine that that would be the problem (its odd, but still valid).
I've also been searching google for more information on this problem, however the only hit I found which seemed to possibly be the same problem was in Japanese :(
I was wondering if anyone had any suggestions or advise they might be willing to share.
TIA,
Steph _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Steph Smith wrote:
-------------------------------------------------------------------- Error Type: IOError Error Value: [Errno 13] Permission denied: '//usr/share/zope//zope-2.6.4-r1/lib/python/App/dt ml/zope_quick_start.dtml' --------------------------------------------------------------------
Looks like the gentoo thing doesn't set the right ownership on the files it installs :-( All the Zope source files need to be readable by the user that Zope runs as. You should probably take this up with the person maintaining the gentoo package, and use Zope source installation in the meantime. In any case, source installs generally tend to be better anyway ;-)
and made sure that the user running zope (in this case 'root') has explicit permissions to the file, which it does.
Zope REALLY shouldn't run as Zope. I suspect that what it means is that the "nobody" user isn't allowed to rea that file.. cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Steph Smith wrote:
I was wondering if anyone had any suggestions or advise they might be willing to share.
Why settle for an old version when you can download a fresh new one from zope.org? My experience with distribution-spesific zope is that it works rather poor (or not at all), installment of additional packages is difficult or impossible. In general: It WILL lead you to the dark side. You might try to search for a newer package that you can emerge, or maybe ask the gentoo-comunity to provide such a package, or even make one yourselfe. Best regards Einar Næss Jensen
Einar Næss Jensen wrote:
Steph Smith wrote:
I was wondering if anyone had any suggestions or advise they might be willing to share.
Why settle for an old version when you can download a fresh new one from zope.org?
My experience with distribution-spesific zope is that it works rather poor (or not at all), installment of additional packages is difficult or impossible.
In general: It WILL lead you to the dark side.
You might try to search for a newer package that you can emerge, or maybe ask the gentoo-comunity to provide such a package, or even make one yourselfe.
zope-2.7.2 has been available in portage for a couple of weeks now. # /usr/portage/net-zope/zope $ ls -l total 36 -rw-r--r-- 1 root root 7503 Aug 1 18:35 ChangeLog -rw-r--r-- 1 root root 1000 Aug 1 18:35 Manifest drwxr-xr-x 5 root root 272 Aug 9 14:44 files -rw-r--r-- 1 root root 161 Oct 10 2003 metadata.xml -rw-r--r-- 1 root root 5358 Jul 27 12:12 zope-2.6.4-r1.ebuild -rw-r--r-- 1 root root 3860 Jul 27 12:12 zope-2.7.1.ebuild -rw-r--r-- 1 root root 4745 Aug 1 18:35 zope-2.7.2.ebuild It's got KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64", but it works excellently, and has a much-improved configuration set-up. -Jim Washington
zope-2.7.2 has been available in portage for a couple of weeks now.
It has? It must still be masked, then. I emerge sync nightly, and 2.6.4 came up as the most recent available when I emerged the other day. Thanks to everyone who responded! I'm going to try the 2.7.2 emerge first, and see if that sets everything up appropriately. If not, I'll look into the other suggestions. I'm only an emerge end-user myself, and don't know the first thing about writing or hacking ebuilds at this point (nor is this the time for me to delve deeper into that ;), so I'm unlikely to follow that particular suggestion. However, I have a clearer idea of what's going on now. That zope shouldn't be running as root is definitely a good start. Thanks again, Steph
participants (5)
-
Chris Withers -
David Siedband -
Einar Næss Jensen -
Jim Washington -
Steph Smith