[ZODB-Dev] can't get zeo up to run

oivvio polite ol1@v10a.com
Fri, 18 May 2001 01:25:55 +0200


 

I've spent the last 16 hours trying to get ZEO to work.
I've tried the DC ZEO and Andrew's stand alone.
I can't get either to work.

This is my setup:
    os: Debian GNU/Linux woody.
    python: 1.5.2 (from debian)
    zope: source dist from DC
    ZODB/ZEO: amk's latest release
    brain: fried
    
my /usr/local/etc/zeo.conf file looks like this:
    [zeo]
    Host: 127.0.0.1
    Port: 1975
    User: root
    Group: www-data
    Storage: /home/oivvio/repos/src/python/plusseven/data/words.fs  
    PIDfile: /var/run/zeod.pid

When I run

   /etc/rc.d/init.d/zeo  start

as root I don't get any complaints. But I do get the prompt back.
Is that supposed to happen? ps doesn't show any python,
zoed or zeo processes running.


Andrew's guide includes this test script.

    from ZEO import ClientStorage
    from ZODB import DB

    # Change next line to connect to your ZEO server
    addr = ('127.0.0.1', 1975)
    storage = ClientStorage.ClientStorage(addr)
    db = DB(storage)
    conn = db.open()
    root = conn.root()

    # Store some things in the root
    root['list'] = ['a', 'b', 1.0, 3]
    root['dict'] = {'a':1, 'b':4}

    # Commit the transaction
    get_transaction().commit()

When I run it I get this:

    Traceback (innermost last):
      File "/home/oivvio/tmp/zeotest.py", line 7, in ?
        db = DB(storage)
      File "/usr/lib/python1.5/site-packages/ZODB/DB.py", line 155, in      
__init__
        storage.tpc_begin(t)
      File "/usr/lib/python1.5/site-packages/ZEO/ClientStorage.py", line 457, 
         in tpc_begin
        if not self._connected: raise ClientDisconnected()
    ZEO.ClientStorage.ClientDisconnected




-- 
oivvio polite

cell +46 (0)709 30 40 30 / phone +46 (0)8 669 64 18 / fax +46 (0)8 84 00 18
varvsgatan 10A / s-117 29 stockholm / sweden