79797975Hi; After nuking my Zope instances by trying to copy my main HD over to my new one, I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. I created an instance, specified the path, "nancy" as the user and a p/w. When I go to "runzope", as root or as nancy, I get this error: root@server167:local/zope/2012 (108) ./bin/runzope Traceback (most recent call last): File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", line 98, in prepare self.startZope() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", line 257, in startZope Zope2.startup() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line 60, in startup DB = dbtab.getDatabase('/', is_root=1) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 280, in getDatabase db = factory.open(name, self.databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 178, in open DB = self.createDB(database_name, databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 175, in createDB return ZODBDatabase.open(self, databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 97, in open storage = section.storage.open() File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 135, in open quota=self.config.quota) File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py", line 112, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock' What do? TIA, Nancy ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
this lock was maybe created by root. (when zope started from /etc/init.d) if so you have to delete it as root. and of course your "efective user" defined (in /usr/local/zope/2012/etc/zope.conf) must be set to somebody that has write permission in /usr/local/zope/2012/var robert Nancy Donnelly schrieb:
79797975 Hi; After nuking my Zope instances by trying to copy my main HD over to my new one, I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. I created an instance, specified the path, "nancy" as the user and a p/w. When I go to "runzope", as root or as nancy, I get this error:
root@server167:local/zope/2012 (108) ./bin/runzope Traceback (most recent call last): File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", line 98, in prepare self.startZope() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py", line 257, in startZope Zope2.startup() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py", line 60, in startup DB = dbtab.getDatabase('/', is_root=1) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 280, in getDatabase db = factory.open(name, self.databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 178, in open DB = self.createDB(database_name, databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py", line 175, in createDB return ZODBDatabase.open(self, databases) File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 97, in open storage = section.storage.open() File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py", line 135, in open quota=self.config.quota) File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py", line 112, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'
What do? TIA, Nancy
------------------------------------------------------------------------ Cheap Talk? Check out <http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com> Yahoo! Messenger's low PC-to-Phone call rates.
------------------------------------------------------------------------
_______________________________________________ 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 )
Nancy Donnelly wrote at 2006-11-29 08:17 -0800:
... File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'
Most Python/Zope error message are quite good. So good, that it is worth to read them carefully ;-) The error message above, for example, clearly tells you that your operating system ("IOError") denied access ("Permission denied") to the file "/usr/local/zope/2012/var/Data.fs.lock".
What do?
After careful reading of the error message, you use means of your operating system to determine what permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock" or (if that does not exist) for "/usr/local/zope/2012/var". -- Dieter
----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Nancy Donnelly" <nancydonnelly2006@yahoo.com> Cc: <zope@zope.org> Sent: Wednesday, November 29, 2006 4:57 PM Subject: Re: [Zope] Permission Denied...New Build
Nancy Donnelly wrote at 2006-11-29 08:17 -0800:
... File "/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'
Most Python/Zope error message are quite good. So good, that it is worth to read them carefully ;-)
The error message above, for example, clearly tells you that your operating system ("IOError") denied access ("Permission denied") to the file "/usr/local/zope/2012/var/Data.fs.lock".
What do?
After careful reading of the error message, you use means of your operating system to determine what permissions are granted for "/usr/local/zope/2012/var/Data.fs.lock" or (if that does not exist) for "/usr/local/zope/2012/var".
Dieter
I'm glad you caught that Dieter! I read Nancy's post too quickly and responded by telling her to check Data.fs permissions (my bad). Sorry about that Nancy! Jonathan
participants (4)
-
Dieter Maurer -
Jonathan -
Nancy Donnelly -
robert rottermann