.... LOG("ClientStorage", INFO, "Connected to storage") File "/usr/local/zope/lib/python/zLOG/__init__.py", line 130, in LOG log_write(subsystem, severity, summary, detail, error) TypeError: object of type 'None' is not callable "log_write" appears not be initialized correctly. Apparently, it is "None".
Enable Zope logging by setting the environment variable "STUPID_LOG_FILE" to your log file (you can do that with an argument to the Zope startup script). And see, whether the problem goes away.
Ok Dieter , I did waht you told me, I put the Stupid_log _File variable, and now not only the client Crashes also de ZEO Server. I did two things 1) I changed the permisions in my var/ directory so it could only be accessed (rwx) by my zope user but this the output of the logs ZEO_EVENTS: 2002-08-07T20:07:31 INFO(0) ZEO Server Serving main: <ZODB.FileStorage.FileStorage instance at 0x830a60c> ------ 2002-08-07T20:07:31 INFO(0) ZEO Server Listening on ('192.168.0.1', 8800) ------ 2002-08-07T20:08:09 INFO(0) ZEO Server Connect 136372896 ('192.168.0.1', 50364) ------ 2002-08-07T20:08:09 ERROR(200) ZEO Server Unknown storage_id: 1 ------ 2002-08-07T20:08:09 INFO(0) ZEO Server Close 136372896 ------ 2002-08-07T20:08:09 ERROR(200) ZEO uncaptured python exception, closing channel <ZEO.StorageServer.ZEOConnection connected 192.168.0.1:50364 at 0x820e2a0> (exceptions.TypeError:len() of unsized object [/usr/local/Zope-2.5.1-src/ZServer/medusa/asyncore.py|poll|94] [/usr/local/Zope-2.5.1-src/ZServer/medusa/asyncore.py|handle_read_event|391] [/usr/local/Zope/lib/python/ZEO/smac.py|handle_read|101] [./lib/python/ZEO/StorageServer.py|message_input|220] [./lib/python/ZEO/StorageServer.py|get_info|276]) ------ 2002-08-07T20:08:09 INFO(0) ZEO Server Close 136372896 And this the output when i tried to start the client Unhandled exception in thread: Traceback (most recent call last): File "/usr/local/Zope/lib/python/ZEO/zrpc.py", line 94, in connect self.aq_parent.notifyConnected(s) File "/usr/local/Zope/lib/python/ZEO/ClientStorage.py", line 143, in notifyConnected LOG("ClientStorage", INFO, "Connected to storage") TypeError: object of type 'None' is not callable --------------------------------------- 0 -------------------------------------------------------- 2) if a leave the permissions the way there where since setup this are the outputs: *ZEO_EVENTS 2002-08-07T20:33:55 INFO(0) ZEO Server Serving main: <ZODB.FileStorage.FileStorage instance at 0x830a60c> ------ 2002-08-07T20:33:55 INFO(0) ZEO Server Listening on ('172.16.39.84', 8800) ------ 2002-08-07T20:34:11 INFO(0) ZEO Server Connect 136365528 ('172.16.39.84', 57943) ------ 2002-08-07T20:34:11 ERROR(200) ZEO Server Unknown storage_id: 1 ------ 2002-08-07T20:34:11 INFO(0) ZEO Server Close 136365528 ------ 2002-08-07T20:34:11 ERROR(200) ZEO uncaptured python exception, closing channel <ZEO.StorageServer.ZEOConnection connected 172.16.39.84:57943 at 0x820c5d8> (exceptions.TypeError:len() of unsized object [/usr/local/Zope-2.5.1-src/ZServer/medusa/asyncore.py|poll|94] [/usr/local/Zope-2.5.1-src/ZServer/medusa/asyncore.py|handle_read_event|391] [/usr/local/Zope/lib/python/ZEO/smac.py|handle_read|101] [./lib/python/ZEO/StorageServer.py|message_input|220] [./lib/python/ZEO/StorageServer.py|get_info|276]) ------ 2002-08-07T20:34:11 INFO(0) ZEO Server Close 136365528 *Output when I start the client: Unhandled exception in thread: Traceback (most recent call last): File "/usr/local/Zope/lib/python/ZEO/zrpc.py", line 70, in connect 'Trying to connect to server: %s' % `connection`) TypeError: object of type 'None' is not callable *Output of the stupid_log_file: ----- 2002-08-07T20:34:11 INFO(0) client Trying to connect to server: ('172.16.39.84', 8800) ------ 2002-08-07T20:34:11 INFO(0) ClientStorage Connected to storage ------ 2002-08-07T20:34:11 PROBLEM(100) ClientStorage Disconnected from storage ------ 2002-08-07T20:34:11 PANIC(300) z2 Startup exception Traceback (innermost last): File /usr/local/Zope/z2.py, line 497, in ? File <string>, line 1, in ? File /usr/local/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 45, in ? File /usr/local/Zope-2.5.1-src/lib/python/ZODB/DB.py, line 77, in __init__ File /usr/local/Zope/lib/python/ZEO/ClientStorage.py, line 294, in load (Object: ('172.16.39.84', 8800)) File /usr/local/Zope/lib/python/ZEO/zrpc.py, line 168, in __call__ TypeError: exceptions must be strings, classes, or instances, not None ------ 2002-08-07T20:34:11 PROBLEM(100) zdaemon zdaemon: Wed Aug 7 15:34:11 2002: The kid, 22002, died on me. The permissions are set to rwx----- to Data.fs and Data.fs.in to zope user rw-r--r-- to all the rest of Data.fs.* , stupid log, ZEO_EVENTS, ZEO_SERVER.pid, Z2.log under zope user rw-r--r-- to zProces.... Also i notice that a file name c1-8800-0.zec whit rw-r--r-- under root was created, Inow this is because of the ZEO_CLIENT=8800 enviroment variable in the start script. what can be wrong? I use the custom_zodb.py import ZEO.ClientStorage Storage=ZEO.ClientStorage.ClientStorage(('192.168.0.1',8800)) and the StorageConfig.py as described in te documentation of kedai (http://www.zope.org/Members/kedai/UseZeoZope) Im using Zope 2.5.1 and ZEO 1.0 over Redhat 7.2 and python 2.1.3 Tavo