[ZODB-Dev] ZEO problems

Eric Brun eric.brun@univ-savoie.fr
Tue, 15 May 2001 17:56:58 +0200


Hi,
I have a problem and I hope you will be able to help me :
I work on Linux Mandrake 8.0, Zope 2.3.2 and ZEO 1.0 beta 2
I install ZEO 1.0 beta 2 on one server and start ZEO Server:

zope> python lib/python/ZEO/start.py -p 8800

ok at this point.

then, I install ZEO on a client
I configure custom_zodb.py :
# Sample custom_zodb.py
__version__ = "$Revision: 1.1 $"[11:-2]
 
 # In situations where we switch between different storages, we've
# found it useful to use if-elif-else pattern.
 import os
 
if 1: # Change the 0 to 1 to enable!
 
    # ZEO Unix Domain Socket
 
    # This import isn't strictly necessary but is helpful when
    # debugging and while Zope's and Python's asyncore are out of sync
    # to make sure we get the right version of asyncore.
     import ZServer
 
    import ZEO.ClientStorage
     Storage=ZEO.ClientStorage.ClientStorage(
        ('',8800),
        # If no name is given, then connection info will be shown:
        name="ZEO Storage",
         # You can specify the storage name, which defaults to "1":
         storage="1",
         )
 
else:
 
    # Default FileStorage
    import ZODB.FileStorage
    Storage=ZODB.FileStorage.FileStorage(
        os.path.join(INSTANCE_HOME, 'var', 'Data.fs'),
         )
 
 then, I start my client :
 
 zope client> ./start&
 
 I have a error :
 
the cPickle module is up-to-date
 

 then I edit the fap.py file and comment the exception lines
 
 and then :
 
 2001-05-15T19:53:25 INFO(0) client Trying to connect to server: ('', 8800)
 ------
 2001-05-15T19:53:25 INFO(0) ClientStorage Connected to storage
 ------
 2001-05-15T19:53:25 PROBLEM(100) ClientStorage Disconnected from storage
 ------
2001-05-15T19:53:25 PANIC(300) z2 Startup exception
 Traceback (innermost last):
   File /usr/local/Zope-2.3.2-linux2-x86/z2.py, line 566, in ?
   File <string>, line 1, in ?
   File /usr/local/Zope-2.3.2-linux2-x86/lib/python/Zope/__init__.py, line 
 118, in ?
   File /usr/local/Zope-2.3.2-linux2-x86/lib/python/ZODB/DB.py, line 155, in 
__init__
   File /usr/local/Zope-2.3.2-linux2-x86/lib/python/ZEO/ClientStorage.py, 
line 
 478, in tpc_begin
     (Object: ZEO Storage)
 ClientDisconnected: This action is temporarily unavailable.<p>
 
 

 I don't understand !
 
 Thanks for your help                            
-- 
Eric Brun
Mission TIC
Savoie Technolac
France
E-mail : Eric.Brun@univ-savoie.fr