[Zope] ZEO Client with a custom INSTANCE_HOME

Jens Vagelpohl jens@zope.com
Mon, 13 May 2002 13:36:18 -0400


you start zope as root thus the user running zope is the "nobody" account.
  nobody cannot write anywhere from what it looks like.

jens


On Monday, May 13, 2002, at 01:25 , Igor Stroh wrote:

> Hi there,
>
> I'm trying to setup a "discless" ZEO client. The INSTANCE_HOME is
> pointing to '/var/run/zope'[1] (/var is mounted on a ramdisk).
> If I try to start zope with
> `/usr/sbin/zopectl -I /var/run/zope/ start -P 8000 -u www-data -D`
> I get the errors in [2]. The custom_zodb.py looks like [3]. Afaik all
> file permissions/modes are set correctly, what else might be the reason?
> ZEO is running smooth, everything works if I try to run Zope with a
> default INSTANCE_HOME. If I remove the old INSTANCE_HOME and supply a
> custom one I get those erros in [1]...
>
> some more info:
> Zope version: 2.5.1-1 (from debian woody)
> python version: 2.1.3
>
>
> Thnx in advance,
> Igor
>
> [1]:
>  NFSROOT@test1:~# ls -l /var/run/zope/ /var/run/zope/var
> total 12
> -rw-r--r--    1 www-data www-data       39 May 13 17:54 access
> -rw-r--r--    1 www-data www-data       90 May 13 17:54 custom_zodb.py
> -rw-r--r--    1 root     root          245 May 13 18:38 custom_zodb.pyc
> drwxr-xr-x    2 www-data www-data        0 May 13 19:02 var
>
> /var/run/zope/var:
> total 0
> -rw-r--r--    1 www-data www-data        0 May 13 18:33 Z2.log
>
>
> [2]:
> NFSROOT@test1:~# /etc/init.d/zope start
> Starting Zope...------
> 2002-05-13T17:19:19 INFO(0) client Trying to connect to server: ('<some
> IP>', 7700)
> ------
> 2002-05-13T17:19:19 INFO(0) ClientStorage Connected to storage
> ------
> 2002-05-13T17:19:19 INFO(0) ZODB Opening database for mounting:
> '142508672_1021297398.478297'
> ------
> 2002-05-13T17:19:19 INFO(0) ZODB Mounted database
> '142508672_1021297398.478297' at /temp_folder
> ------
> 2002-05-13T17:19:19 INFO(0) Zope Default Object Creation
> /usr/lib/zope/lib/python/../../import/Examples.zexp examples import file
> could not be found.
> ------
> 2002-05-13T17:19:19 INFO(0) ZServer HTTP server started at Mon May 13
> 19:19:19 2002
> 	Hostname: test1.domain.tld
> 	Port: 8080
> ------
> 2002-05-13T17:19:19 INFO(0) ZServer FTP server started at Mon May 13
> 19:19:19 2002
> 	Hostname: test1
> 	Port: 8021
> ------
> 2002-05-13T17:19:19 ERROR(200) ZServer Cannot write PID file.
> ------
> 2002-05-13T17:19:19 PANIC(300) z2 Startup exception
> Traceback (innermost last):
>   File /usr/sbin/zope-z2, line 627, in ?
>   File /usr/lib/zope/ZServer/PCGIServer.py, line 275, in __init__
>   File /usr/lib/zope/ZServer/medusa/asyncore.py, line 306, in bind
> error: (2, 'No such file or directory')
>
>
>
> [3]:
> NFSROOT@fs0:/var/run/zope# cat custom_zodb.py
> import ZEO.ClientStorage
> Storage=ZEO.ClientStorage.ClientStorage(('<some IP>', 7700))
>
> --
> ScanPlus GmbH NOC Ulm - Germany - Griesbadgasse 7-13 - D 89073 Ulm
> TEL +49 731 920 13 100 - FAX +49 731 920 13 290
> eMail: support@scan-plus.de
> Amtsgericht Ulm - HRB3220 - Geschaeftsfuehrer: Juergen Hoermann
>