Hi; I'm having permission problems when I go to pack my Data.fs. Here's the error: Traceback (innermost last): · Module ZPublisher.Publish, line 150, in publish_module · Module ZPublisher.Publish, line 114, in publish · Module Zope, line 171, in zpublisher_exception_hook · Module ZPublisher.Publish, line 98, in publish · Module ZPublisher.mapply, line 88, in mapply · Module ZPublisher.Publish, line 39, in call_object · Module App.ApplicationManager, line 353, in manage_pack · Module ZODB.DB, line 499, in pack · Module ZODB.FileStorage, line 1440, in pack IOError: [Errno 13] Permission denied: '/home/httpd/ZopeInstallation/Zope_software_home/var/Data.fs.pack' (Also, an error occurred while attempting to render the standard error message.) Here's what line 1440 of ZODB.FileStorage says: ofile=open(name+'.pack', 'w+b') What am I missing? TIA, beno
[beno wrote (zope@thewebsons.com) on 2/10/03 5:52 AM]
IOError: [Errno 13] Permission denied: '/home/httpd/ZopeInstallation/Zope_software_home/var/Data.fs.pack' (Also, an error occurred while attempting to render the standard error message.)
This looks like you have a permissions issue in the var directory of your zope's instance home. make sure it is owned by the user running zope and that you have the sticky bit set. I have saved myself a lot of these issues by running zope under its own dedicated user and not involving root with zope at all. (I have some sketchy memories of running zope under root or nobody and getting errors like this.) for information on the sticky bit see your events.log (there might be a message about it there) and/or the doc directory of your zope install. hth <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net
At 08:17 AM 2/10/2003 -0500, you wrote:
[beno wrote (zope@thewebsons.com) on 2/10/03 5:52 AM]
IOError: [Errno 13] Permission denied: '/home/httpd/ZopeInstallation/Zope_software_home/var/Data.fs.pack' (Also, an error occurred while attempting to render the standard error message.)
This looks like you have a permissions issue in the var directory of your zope's instance home.
make sure it is owned by the user running zope and that you have the sticky bit set.
Well, sure enough, for some reason var was owned by root while the rest of the installation was owned by the user I set up. I chowned it all to said user, but it still doesn't work. I set the sticky bit for the var dir so that its permissions are: drwsrwsr-t Still no go. More ideas? TIA, beno
[beno wrote (zope@thewebsons.com) on 2/10/03 11:32 AM]
Well, sure enough, for some reason var was owned by root while the rest of the installation was owned by the user I set up. I chowned it all to said user, but it still doesn't work. I set the sticky bit for the var dir so that its permissions are: drwsrwsr-t Still no go. More ideas?
clarification: if you are running zope with a dedicated user (not root or nobody) the sticky bit should not be necessary. i run my instances with /var chmod 755. and once you get the perms and ownership as you want, you might need to restart zope (as the dedicated user). <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net
participants (2)
-
beno -
george donnelly