My Installation Problem 2.7.3
Im absolute zope beginner and tried to solve my probability Easy-Problem by googling and looking in the forums, but it seems much confusing to me. There are informations to use user nobody and sticky bits, but on the other site I found informations such: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/InstallingZope.s... Note: for Zope 2.7, none of this permission-sticky-bit-setting nonsense is necessary. Instead, just set the effective-user parameter to an existing (nonroot) username in the zope.conf file and start Zope as root. All files including log and pid files will be written as the lesser-privileged user. If I try to make an instance of Zope 2.7.3 with /opt/Zope-2.7/bin/mkzopeinstance.py I don't see an error (is there a logfile?) but if I start the Zope-instance I get the following error. Can someone help me? I use Python 2.3.4 After completing mkzopeinstance there are no files in the VAR-directory. Is this correct? When will the data.fs build? p15142999:/usr/local/myzope/bin # ./zopectl fg export EVENT_LOG_FILE EVENT_LOG_FILE= /usr/local/myzope/bin/runzope ------ 2004-12-21T22:37:43 INFO(0) ZServer HTTP server started at Tue Dec 21 22:37:43 2004 Hostname: p15142999.pureserver.info Port: 8080 ------ 2004-12-21T22:37:43 INFO(0) ZServer FTP server started at Tue Dec 21 22:37:43 2004 Hostname: p15142999 Port: 8021 ------ 2004-12-21T22:37:43 INFO(0) Zope Set effective user to "uwc" Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/opt/Zope-2.7/lib/python/Zope/App/startup.py", line 57, in startup DB = configuration.dbtab.getDatabase('/', is_root=1) File "/opt/Zope-2.7/lib/python/DBTab/DBTab.py", line 96, in getDatabase db = self._createDatabase(name, is_root) File "/opt/Zope-2.7/lib/python/DBTab/DBTab.py", line 113, in _createDatabase db = factory.open() File "/opt/Zope-2.7/lib/python/Zope/Startup/datatypes.py", line 172, in open DB = self.createDB() File "/opt/Zope-2.7/lib/python/Zope/Startup/datatypes.py", line 169, in createDB return ZODBDatabase.open(self) File "/opt/Zope-2.7/lib/python/ZODB/config.py", line 97, in open return ZODB.DB(section.storage.open(), File "/opt/Zope-2.7/lib/python/ZODB/config.py", line 128, in open quota=self.config.quota) File "/opt/Zope-2.7/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/opt/Zope-2.7/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/myzope/var/Data.fs.lock' TIA Regards Uwe -- +++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl AKTION f�r Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben
----- Original Message ----- From: "Uwe Wlaschny" <professorix@gmx.de>
Im absolute zope beginner and tried to solve my probability Easy-Problem by googling and looking in the forums, but it seems much confusing to me. There are informations to use user nobody and sticky bits, but on the other site I found informations such:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/InstallingZope.s tx/document_src
Note: for Zope 2.7, none of this permission-sticky-bit-setting nonsense is necessary. Instead, just set the effective-user parameter to an existing (nonroot) username in the zope.conf file and start Zope as root. All files including log and pid files will be written as the lesser-privileged user.
If I try to make an instance of Zope 2.7.3 with /opt/Zope-2.7/bin/mkzopeinstance.py I don't see an error (is there a logfile?) but if I start the Zope-instance I get the following error. Can someone help me? I use Python 2.3.4
After completing mkzopeinstance there are no files in the VAR-directory. Is this correct? When will the data.fs build?
p15142999:/usr/local/myzope/bin # ./zopectl fg export EVENT_LOG_FILE EVENT_LOG_FILE= /usr/local/myzope/bin/runzope ------ 2004-12-21T22:37:43 INFO(0) ZServer HTTP server started at Tue Dec 21 22:37:43 2004 Hostname: p15142999.pureserver.info Port: 8080 ------ 2004-12-21T22:37:43 INFO(0) ZServer FTP server started at Tue Dec 21 22:37:43 2004 Hostname: p15142999 Port: 8021 ------ 2004-12-21T22:37:43 INFO(0) Zope Set effective user to "uwc" Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7/lib/python/Zope/__init__.py", line 47, in startup _startup() File "/opt/Zope-2.7/lib/python/Zope/App/startup.py", line 57, in startup DB = configuration.dbtab.getDatabase('/', is_root=1) File "/opt/Zope-2.7/lib/python/DBTab/DBTab.py", line 96, in getDatabase db = self._createDatabase(name, is_root) File "/opt/Zope-2.7/lib/python/DBTab/DBTab.py", line 113, in _createDatabase db = factory.open() File "/opt/Zope-2.7/lib/python/Zope/Startup/datatypes.py", line 172, in open DB = self.createDB() File "/opt/Zope-2.7/lib/python/Zope/Startup/datatypes.py", line 169, in createDB return ZODBDatabase.open(self) File "/opt/Zope-2.7/lib/python/ZODB/config.py", line 97, in open return ZODB.DB(section.storage.open(), File "/opt/Zope-2.7/lib/python/ZODB/config.py", line 128, in open quota=self.config.quota) File "/opt/Zope-2.7/lib/python/ZODB/FileStorage.py", line 232, in __init__ self._lock_file = LockFile(file_name + '.lock') File "/opt/Zope-2.7/lib/python/ZODB/lock_file.py", line 60, in __init__ self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/myzope/var/Data.fs.lock'
It looks like zope does not have the necessary privileges to create/modify files in the '/usr/local/myzope/var' directory. Jonathan
On 21.Dec 2004 - 23:01:49, Uwe Wlaschny wrote:
Im absolute zope beginner and tried to solve my probability Easy-Problem by googling and looking in the forums, but it seems much confusing to me. There are informations to use user nobody and sticky bits, but on the other site I found informations such: http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/InstallingZope.s...
The information in the ZopeBook is correct, so stick to it. If you did any of the sticky bit Changes revert them... Also there is a README in the Source of Zope.
If I try to make an instance of Zope 2.7.3 with /opt/Zope-2.7/bin/mkzopeinstance.py I don't see an error (is there a logfile?) but if I start the Zope-instance I get the following error. Can someone help me? I use Python 2.3.4
After completing mkzopeinstance there are no files in the VAR-directory. Is this correct? When will the data.fs build?
p15142999:/usr/local/myzope/bin # ./zopectl fg
Zope is to be started with runzope, not zopectl.
2004-12-21T22:37:43 INFO(0) Zope Set effective user to "uwc" self._fp = open(path, 'w+') IOError: [Errno 13] Permission denied: '/usr/local/myzope/var/Data.fs.lock'
Does uwc have the necessary rights in /usr/local/myzope/var ? Did you execute mkzopeinstance as uwc? Andreas -- Beauty and harmony are as necessary to you as the very breath of life.
Am Mittwoch, den 22.12.2004, 01:02 +0100 schrieb Andreas Pakulat: ...
p15142999:/usr/local/myzope/bin # ./zopectl fg
Zope is to be started with runzope, not zopectl.
No. zopectl is perfectly correct. "zopectl start" to detach from shell. For start problem debugging, zopectl fg is used. Nothing wrong with it.
participants (4)
-
Andreas Pakulat -
Jonathan Hobbs -
Tino Wildenhain -
Uwe Wlaschny