Re: [Zope] IOError: [Errno 13] Permission denied (Zope 2.7.3)
Andreas Jung wrote:
--On Montag, 10. Januar 2005 5:50 Uhr +0000 Magnus Lawrie <m.lawrie@gmx.net> wrote:
Andreas Jung wrote:
--On Sonntag, 9. Januar 2005 23:52 Uhr +0000 Magnus Lawrie <m.lawrie@gmx.net> wrote:
I installed python 2.3.4 and then zope 2.7.3 from source and ran mkzopeinstance.py, but am experiencing a problem with privileges. I gather that I have to change some, but I do not know exactly how to do that. I have looked at
http://www.plope.com/Books/2_7Edition/InstallingZope.stx
And this post:
http://www.gossamer-threads.com/lists/zope/users/177930
...but am no clearer.
Runzope results in:
IOError: [Errno 13] Permission denied: '/home/mdl/zope-instance/var/Data.fs.lock '
This usually happens if you install or run Zope as root which is not recommended (and documented in various places).
-aj
Yes, I did read that. I downloaded tarballs and worked out of my home directory but (being a novice only) didn't find a better way than: sudo make install
^^^^^^^^^^^^^^^^^^
There is no reason to run "make install" as root if you compile and install using the same account that will be used to run Zope!
make install wouldn't complete.
Why not? Please provide a traceback or error messages.
Andreas
I don't have a record of the original error, but ran the make install command once again. The last three lines: copying version.txt -> /opt/Zope-2.7/lib/python/. error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied make: *** [install] Error 1
Magnus Lawrie wrote:
I don't have a record of the original error, but ran the make install command once again. The last three lines:
copying version.txt -> /opt/Zope-2.7/lib/python/. error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied make: *** [install] Error 1 _______________________________________________ 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 )
I read this to get zope installed: http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO thanks for your replies,
--On Montag, 10. Januar 2005 7:45 Uhr +0000 Magnus Lawrie <m.lawrie@gmx.net> wrote:
Magnus Lawrie wrote:
I don't have a record of the original error, but ran the make install command once again. The last three lines:
copying version.txt -> /opt/Zope-2.7/lib/python/. error: /opt/Zope-2.7/lib/python/./version.txt: Permission denied make: *** [install] Error 1
The former reply already answered your question: - you installed Zope as root - all your files are installed as root - if you start Zope as non-root then Zope won't start because it can not open Data.fs for writing because 'var/*' is not writeable. Either change the owner of the installed files or change the permissions or use the installation method using a dedicated INSTANCE_HOME which is the recommended way to go. Both is explained here: <http://www.plope.com/Books/2_7Edition/InstallingZope.stx> -aj
participants (2)
-
Andreas Jung -
Magnus Lawrie