Hi, I have to install ZOPE on a Linux machine (SuSE SLES-7). After installation I get this error message: ------ 2003-09-30T20:09:57 INFO(0) zdaemon Started subprocess: pid 17103 ------ 2003-09-30T20:09:58 PANIC(300) z2 Startup exception Traceback (innermost last): File /opt/csckm/zope/Zope-2.6.2-linux2-x86/z2.py, line 585, in ? File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/Zope/App/startup.py, line 53, in startup File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/ZODB/FileStorage.py, line 225, in __init__ File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/ZODB/lock_file.py, line 33, in lock_file StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p> But there is definitely no process that has access to a ZOPE file! Has anyone a solution? Please. I'm not a Linux geek - do I have to set some special rights or something to the /var directory??? Just a guess... Pleas help, Thanks a lot, Best, Eddie. Eddie Moench. (Pre-Sales Consulting, Research & Development) ---------------------------------------------------------------------------- -- Vulcan Inc. Completes First Step Toward Digital Aristotle (more: http://www.vulcan.com/press/release_detail.asp?recNo=1862) Audi erprobt erfolgreich semantische Technologien (more: http://www.ontoprise.de/news/pi_audi_2003_06) ---------------------------------------------------------------------------- -- ontoprise GmbH Tel.: +49-721-509-809-25 Eddie Moench Fax: +49-721-509-809-11 Amalienbadstraße 36 mobile: +49-163-66579-25 (Raumfabrik 29) moench@ontoprise.de 76227 Karlsruhe http://www.ontoprise.de Germany Private Homepage www.eddie-moench.de ---------------------------------------------------------------------------- -- ontoprise (http://www.ontoprise.com) is the leading provider of semantic technologies and solutions helping companies to rapidly and cost- efficiently integrate applications, accelerate engineering processes and generate seamless knowledge processes. For more information, go to http://www.ontoprise.com or call +49-721-509809-0. # # # OntoEdit®, OntoBroker®, OntoAnnotate®, OntoCollect®, OntoMap®, SemanticMiner® and ontoprise® are registered marks of ontoprise GmbH. Parts of the technology used in OntoEdit®, OntoBroker®, OntoAnnotate®, OntoCollect®, OntoMap® and SemanticMiner® are patent pending or patented.
... StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p>
But there is definitely no process that has access to a ZOPE file! Has anyone a solution? Please. I'm not a Linux geek - do I have to set some special rights or something to the /var directory??? Just a guess...
The user Zope runs as must be able to write to the zope/var directory. Usually this is set properly on installation. It's probable that cd zope # where 'zope' is the directory where the Zope install lives chown -R zope var # where 'zope' is the user zope runs as chmod u+w var will fix things, but you could slip us the output of ls -l var for better advice. --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
Hi, Thanks for your comments, but neither the deletion of Data.fs.lock nor the changing of rights has changed the output: Traceback (innermost last): File /opt/csckm/zope/Zope-2.6.2-linux2-x86/z2.py, line 585, in ? File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/Zope/__init__.py, line 46, in startup (Object: startup) File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/Zope/App/startup.py, line 53, in startup File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/ZODB/FileStorage.py, line 225, in __init__ File /opt/csckm/zope/Zope-2.6.2-linux2-x86/lib/python/ZODB/lock_file.py, line 33, in lock_file StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p> Here is the output of "ls -l var" if is helps. total 16 -rwx------ 1 onto users 7909 Sep 29 19:09 Data.fs -rwx------ 1 onto users 7909 Jun 12 2002 Data.fs.in -rw------- 1 onto users 0 Sep 29 19:41 Data.fs.lock -rwx------ 1 onto users 6 Sep 30 20:48 Z2.pid Thanks a lot, Eddie.
-----Ursprüngliche Nachricht----- Von: zope-bounces@zope.org [mailto:zope-bounces@zope.org] Im Auftrag von J Cameron Cooper Gesendet: Mittwoch, 1. Oktober 2003 00:16 An: Eddie Moench; Zope Users Betreff: Re: [Zope] Linux Startup problem
... StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p>
But there is definitely no process that has access to a ZOPE file! Has anyone a solution? Please. I'm not a Linux geek - do I have to set some special rights or something to the /var directory??? Just a guess...
The user Zope runs as must be able to write to the zope/var directory.
Usually this is set properly on installation. It's probable that
cd zope # where 'zope' is the directory where the Zope install lives chown -R zope var # where 'zope' is the user zope runs as chmod u+w var
will fix things, but you could slip us the output of
ls -l var
for better advice.
--jcc
-- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
_______________________________________________ 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 )
Eddie Moench wrote at 2003-10-1 16:37 +0200:
Thanks for your comments, but neither the deletion of Data.fs.lock nor the changing of rights has changed the output: Traceback (innermost last): ... StorageSystemError: Could not lock the database file. There must be another process that has opened the file.
This is a very explicit error message: it would be difficult to improve it...
Here is the output of "ls -l var" if is helps. ... -rw------- 1 onto users 0 Sep 29 19:41 Data.fs.lock
Now use "fuser" or "lsof" to determine which process holds the look on "Data.fs.lock". Kill this process and try again... Dieter
participants (3)
-
Dieter Maurer -
Eddie Moench -
J Cameron Cooper