[ZODB-Dev] Zope2.6 + ZEO 2
Igor Stroh
stroh@scan-plus.de
07 Apr 2003 11:14:02 +0200
Hi there,
I failed to find a solution in the archives so I'm just asking:
I have Zope2.6 (2.6.1-0.9 from debian/unstable) and ZEO 2 (from [1])
running. Both start up with no complaints, but I can't fetch a page from
Zope through http. I tried to mount the DB served by ZEO from a python
shell, which worked quite nice (i.e. I could get some Folder object
using unrestrictedTraverse() etc.). My custom_zodb.py looks like this:
from ZEO.ClientStorage import ClientStorage
Storage = ClientStorage(('localhost', 7700))
The startup script for zeo is:
#! /bin/sh
NAME=zeo
PATH=/bin:/usr/bin:/sbin:/usr/sbin
ZOPECTL=/usr/sbin/zopectl
ZOPEVAR=/var/lib/zope/var
ZEOPATH=/usr/lib/zope/lib/python/ZEO
ZEOOPTS="-D -u zope -h localhost -p 7700"
export ZEO_SERVER_PID=$ZOPEVAR/ZEO_SERVER.pid
export STUPID_LOG_FILE=$ZOPEVAR/ZEO_EVENTS.log
start() {
cd $ZOPEVAR
python2.1 $ZEOPATH/start.py $ZEOOPTS Data.fs
cd -
}
...
case "$1" in
start )
echo -n "Starting ZEO..."
start
echo " done."
;;
...
Startup script for zope the default init script from zope debian
package, the only thing I altered are the options passed to zopectl:
ZOPEOPTS="-P 127.0.0.1:0 -t 7 -D -u zope"
That's what Zope says upon startup:
...
2003-04-07T11:11:01 INFO(0) ZCS:15640 ClientStorage (pid=15640) created
RW/normal for storage: '1'
------
2003-04-07T11:11:01 INFO(0) ZEC:1 ClientCache: storage='1',
size=20971520; file[0]=None
------
2003-04-07T11:11:01 INFO(0) ZCS:15640 Testing connection
<ManagedConnection ('127.0.0.1', 7700)>
------
2003-04-07T11:11:01 INFO(0) ZCS:15640 Connected to storage:
('127.0.0.1', 7700)
------
2003-04-07T11:11:01 INFO(0) ZODB Opening database for mounting:
'142157536_1043755787.450199'
------
2003-04-07T11:11:01 INFO(0) ZODB Mounted database
'142157536_1043755787.450199' at /temp_folder
...
so I guess everything works fine...
What might be the problem here? I had the same problem with Zope2.4/2.5
and ZEO2. I solved it switching to ZEO1.x, but I thought Zope2.6 and
ZEO2 were known to work pretty good...
[1]: http://www.zope.org/Products/ZEO/ZEO-2.0.1b1.tar.gz
Thanks in advance,
Igor