Hi, I tried to pack my Data.fs file from control panel. It is on freebsd, zope2.6 and Data.fs is 49.5MB. A permission denied occured on the file because i had incorrect permission set. ie. zope process was owned by a different user than was Data.fs. The following error occurs now when i access zope. Site Error An error was encountered while publishing this resource. exceptions.ValueError Sorry, a site error occurred. Traceback (innermost last): Module ZPublisher.Publish, line 150, in publish_module Module ZPublisher.Publish, line 114, in publish Module Zope, line 146, in zpublisher_exception_hook Module ZODB.ZApplication, line 61, in __bobo_traverse__ Module UserDict, line 14, in __getitem__ Module ZODB.Connection, line 507, in setstate Module ZODB.FileStorage, line 619, in load Module ZODB.FileStorage, line 594, in _load ValueError: I/O operation on closed file Should i user fsrecovery tool? I still havents restarted zope? and have backed up all var files... __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
I have a similar problem. I installed Zope on Linux as a regular user, but then changed it to run as root so that ZServer can use port 80. I changed the ownership of the var directory to root, and use the command line parameter -u regularUser. Now I can run Zserver on port 80, but I cannot pack the ZODB via the Web. I get: Error Type: IOError Error Value: [Errno 13] Permission denied: '/home/user/Zope-2.6.0/var/Data.fs.pack' I'm no Linux expert. What do we need to do to start Zope as root, switch running to a regular user (using -u on z2.py), and still be able to pack the database? Jon Whitener Detroit, Michigan USA At 05:42 PM 3/27/2003, Wayne Connolly wrote:
Hi,
I tried to pack my Data.fs file from control panel. It is on freebsd, zope2.6 and Data.fs is 49.5MB.
A permission denied occured on the file because i had incorrect permission set. ie. zope process was owned by a different user than was Data.fs.
The following error occurs now when i access zope.
Site Error An error was encountered while publishing this resource.
exceptions.ValueError
Sorry, a site error occurred.
Traceback (innermost last):
Module ZPublisher.Publish, line 150, in publish_module
Module ZPublisher.Publish, line 114, in publish Module Zope, line 146, in zpublisher_exception_hook Module ZODB.ZApplication, line 61, in __bobo_traverse__ Module UserDict, line 14, in __getitem__ Module ZODB.Connection, line 507, in setstate Module ZODB.FileStorage, line 619, in load Module ZODB.FileStorage, line 594, in _load ValueError: I/O operation on closed file
Should i user fsrecovery tool? I still havents restarted zope? and have backed up all var files...
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
_______________________________________________ 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 )
[Jon Whitener wrote (wmmail@twmi.rr.com) on 3/28/03 12:52 PM]
I have a similar problem. I installed Zope on Linux as a regular user, but then changed it to run as root so that ZServer can use port 80. I changed the ownership of the var directory to root, and use the command line parameter -u regularUser.
Now I can run Zserver on port 80, but I cannot pack the ZODB via the Web. I get:
Error Type: IOError Error Value: [Errno 13] Permission denied: '/home/user/Zope-2.6.0/var/Data.fs.pack'
I'm no Linux expert. What do we need to do to start Zope as root, switch running to a regular user (using -u on z2.py), and still be able to pack the database?
It sounds like the var directory is not owned by the user you are running Zope as. I would suggest you do this: run apache on port 80 and Zope on port 8080 as a user other than root or nobody, a dedicated user, eg zope. then rewrite requests to apache to go to Zope. there are many howtos on this on zope.org. This gives you many benefits, among them robustness and simplified admin of Zope. hth <--> george donnelly - http://www.zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - MSN: zettainet@hotmail.com - ICQ: 51907738
Jon Whitener wrote:
I'm no Linux expert. What do we need to do to start Zope as root, switch running to a regular user (using -u on z2.py), and still be able to pack the database?
IIRC, running Zope as root is a no-no... As to why, you'd have to read the docs or search the mailing lists... cheers, Chris
I'm no Linux expert. What do we need to do to start Zope as root, switch running to a regular user (using -u on z2.py), and still be able to pack the database?
IIRC, running Zope as root is a no-no...
As to why, you'd have to read the docs or search the mailing lists...
Zope will refuse to run as root, but must start as root to use port 80. In order to do this it drops to a normal user after startup. The var directory needs to be owned and permissioned properly (with the sticky bit set.) See docs/SETUID.txt for instructions. Make sure when you change owners or permissions on var that its contents get changed as well. --jcc
On Saturday 29 March 2003 00:35, J Cameron Cooper wrote:
Zope will refuse to run as root, but must start as root to use port 80.
Under root: cd $WHERE_ZOPE_IS ./start -u zope & 2>/dev/null Also probably you want to define stupid log somewhere in the "start" script. -- Regards, Bogdan Ambition is a poor excuse for not having enough sense to be lazy.
Wayne Connolly wrote:
Module ZODB.FileStorage, line 594, in _load ValueError: I/O operation on closed file
Restart Zope. Make sure it really dies when you shut it down ;-) You may need to use kill -9 to kill off any errant python processes after you use your 'stop' script... cheers, Chris
Wayne Connolly wrote at 2003-3-27 14:42 -0800:
.... A permission denied occured on the file because i had incorrect permission set. ie. zope process was owned by a different user than was Data.fs.
The following error occurs now when i access zope. .... exceptions.ValueError ... Module ZODB.FileStorage, line 594, in _load ValueError: I/O operation on closed file
Fix your permission settings. Restart Zope. I hope this will remove the problem. Dieter
participants (7)
-
Bo M. Maryniuck -
Chris Withers -
Dieter Maurer -
george donnelly -
J Cameron Cooper -
Jon Whitener -
Wayne Connolly