Re: big problem OSError
Paul Winkler <[email protected]> Fri, 20 Oct 2006 10:28:54 -0400
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Oct 20, 2006 at 02:54:37PM +0200, Steve Giraud wrote: > Hi all, > I use DirectoryStorage on a big production site. > When I try to access to a folder I have th efollowing error : > > Site Error > > An error was encountered while publishing this resource. > > exceptions.OSError > Sorry, a site error occurred. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 188, in publish_module_standard > * Module Products.PlacelessTranslationService.PatchStringIO, > line 34, in new_publish > * Module ZPublisher.Publish, line 145, in publish > * Module Zope2.App.startup, line 194, in zpublisher_exception_hook > * Module Products.BTreeFolder2.BTreeFolder2, line 494, in > __getattr__ > * Module ZODB.Connection, line 704, in setstate > * Module ZODB.Connection, line 742, in _setstate > * Module DirectoryStorage.BaseDirectoryStorage, line 137, in load > * Module DirectoryStorage.Full, line 24, in _load_object_file > * Module DirectoryStorage.Full, line 39, in _get_current_serial > * Module DirectoryStorage.LocalFilesystem, line 185, in > read_database_file > * Module DirectoryStorage.LocalFilesystem, line 205, in > _do_read_database_file > * Module DirectoryStorage.PosixFilesystem, line 108, in read_file > > OSError: [Errno 13] Permission denied: '/data/reposit/entdatabase/A/ > o0/00/00/00/00/00/26/E03/c' Well, that looks like a pretty basic unix filesystem problem, nothing to do with DirectoryStorage per se. Some work at the shell should be informative. eg: ls -ld /data/reposit/entdatabase/A/o0/00/00/00/00/00/26/E03/c ls -ld /data/reposit/entdatabase/A/o0/00/00/00/00/00/26/E03/ ls -ld /data/reposit/entdatabase/A/o0/00/00/00/00/00/26/ etc. until you see what changed. My guess is that at some point, the storage process (zope? zeo? we don't know what you're running) was restarted with a different effective user. The user needs read/write permission for all files, and read/write/execute permission for all directories, under /data/reposit/entdatabase/ . If that's the problem, restart again as the correct user and you should be OK. -- Paul Winkler http://www.slinkp.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642