Alright, following Jim's instructions:<div><br class="webkit-block-placeholder"></div><div>Here's how i started the server:</div><div><br class="webkit-block-placeholder"></div><div><div>xkenneth@xkenneth-desktop:/usr/lib/python2.5/site-packages$
python2.5 ZEO/runzeo.py -a /tmp/zeosocket -f /tmp/test.fs</div><div><br></div>And the client + errors:</div><div><br class="webkit-block-placeholder"></div><div><div>>>> import logging</div><div>>>> logging.getLogger
().setLevel(logging.INFO)</div><div>>>> logging.getLogger().addHandler(logging.StreamHandler())</div><div>>>> from ZEO import ClientStorage</div><div>>>> from ZODB import DB</div><div>>>> storage =
ClientStorage.ClientStorage('/tmp/zeosocket')</div><div>(12188) ClientStorage (pid=12188) created RW/normal for storage: '1'</div><div>created temporary cache file '<fdopen>'</div><div>(12188) Testing connection <ManagedClientConnection /tmp/zeosocket>
</div><div>(/tmp/zeosocket) received handshake 'Z303'</div><div>(12188) Server authentication protocol None</div><div>(12188) Connected to storage: /tmp/zeosocket</div><div>(12188) Verifying cache</div><div>(12188) Waiting for cache verification to finish
</div><div>(12188) Waiting for cache verification to finish</div><div>(12188) endVerify finishing</div><div>(12188) endVerify finished</div><div>>>> db = DB(storage)</div><div>(12188) can't decode message: '(K\x04K\x00U\x06.reply(
cZODB.POSException\nPOSKeyError\...'</div><div>(/tmp/zeosocket) Error caught in asyncore</div><div>Traceback (most recent call last):</div><div> File "asyncore.py", line 68, in read</div><div> obj.handle_read_event
()</div><div> File "asyncore.py", line 390, in handle_read_event</div><div> self.handle_read()</div><div> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/smac.py", line 219, in handle_read</div><div>
self.message_input(msg)</div><div> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py", line 387, in message_input</div><div> msgid, flags, name, args = self.marshal.decode(message)</div><div>
File "/usr/lib/python2.5/site-packages/ZEO/zrpc/marshal.py", line 50, in decode</div><div> return unpickler.load() # msgid, flags, name, args</div><div> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/marshal.py", line 79, in find_global
</div><div> raise ZRPCError("Unsafe global: %s.%s" % (module, name))</div><div>ZRPCError: Unsafe global: ZODB.POSException.POSKeyError</div><div>(12188) Disconnected from storage: '/tmp/zeosocket'</div>
<div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/usr/lib/python2.5/site-packages/ZODB/DB.py", line 238, in __init__</div><div> storage.load
(z64,'')</div><div> File "/usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line 746, in load</div><div> return self.loadEx(oid, version)[:2]</div><div> File "/usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line 769, in loadEx
</div><div> data, tid, ver = self._server.loadEx(oid, version)</div><div> File "/usr/lib/python2.5/site-packages/ZEO/ServerStub.py", line 192, in loadEx</div><div> return self.rpc.call("loadEx", oid, version)
</div><div> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py", line 531, in call</div><div> r_flags, r_args = self.wait(msgid)</div><div> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py", line 621, in wait
</div><div> raise DisconnectedError()</div><div>ZEO.zrpc.error.DisconnectedError</div><div>(12188) Testing connection <ManagedClientConnection /tmp/zeosocket></div><div>(/tmp/zeosocket) received handshake 'Z303'
</div><div>(12188) Server authentication protocol None</div><div>(12188) Connected to storage: /tmp/zeosocket</div><div>(12188) Verifying cache</div><div>(12188) Waiting for cache verification to finish</div><div>(12188) Waiting for cache verification to finish
</div><div>(12188) endVerify finishing</div><div>(12188) endVerify finished</div><div>>>> </div><div><br class="webkit-block-placeholder"></div><div>Is there something wrong with what I'm doing? Am I setting up the server/client incorrectly? I'm following the examples, it seems like this should work.
</div><div><br></div><div>Regards,</div><div>Kenneth Miller</div><div><br class="webkit-block-placeholder"></div><div class="gmail_quote">On Jan 9, 2008 5:49 PM, Jim Fulton <<a href="mailto:jim@zope.com">jim@zope.com</a>
> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The POSKey error for object 0 can be ignored. It is normal. When the<br>database is opened for the first time, it tries to load object 0 and
<br>then creates it if it doesn't exist. I don't see any other errors in<br>your log output from the server.<br><br>In your client code, try adding:<br><br> import logging<br> logging.getLogger().setLevel(logging.INFO
)<br> logging.getLogger().addHandler(logging.StreamHandler())<br><br>and see if this gives more useful logging info on the client.<br><br>Jim<br><div><div></div><div class="Wj3C7c"><br><br>On Jan 9, 2008, at 6:43 PM, Kenneth Miller wrote:
<br><br>> Sorry for the string of messages, but also:<br>><br>> I've recieved these errors when settings up with the following<br>> config files.<br>><br>> zeoserver.conf<br>><br>> <zeo><br>
> address localhost:8090<br>> monitor-address localhost:8091<br>> </zeo><br>><br>> <filestorage 1><br>> path /tmp/Data.fs<br>> </filestorage><br>><br>> <eventlog><br>> <logfile>
<br>> path /tmp/zeo.log<br>> format %(asctime)s %(message)s<br>> </logfile><br>> </eventlog><br>><br>><br>> zeoclient.conf<br>><br>> <zeoclient><br>> server localhost:8090<br>
> </zeoclient><br>><br>><br>> Error:<br>><br>><br>> 2008-01-09T17:33:42 (11338) opening storage '1' using FileStorage<br>> 2008-01-09T17:33:42 (11338) StorageServer created RW with storages:
<br>> 1:RW:/tmp/Data.fs<br>> 2008-01-09T17:33:42 (11338) listening on ('localhost', 8090)<br>> 2008-01-09T17:33:42 listening on ('localhost', 8091)<br>> 2008-01-09T17:36:55 (11338) new connection ('
<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>', 60885):<br>> <ManagedServerConnection ('<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>', 60885)><br>> 2008-01-09T17:36:55 (<a href="http://127.0.0.1:60885" target="_blank">
127.0.0.1:60885</a>) received handshake 'Z303'<br>> 2008-01-09T17:38:52 (<a href="http://127.0.0.1:60885" target="_blank">127.0.0.1:60885</a>) loadEx() raised exception: 0x00<br>> Traceback (most recent call last):
<br>> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py",<br>> line 421, in handle_request<br>> ret = meth(*args)<br>> File "/usr/lib/python2.5/site-packages/ZEO/StorageServer.py", line
<br>> 248, in loadEx<br>> return self.storage.loadEx(oid, version)<br>> File "/usr/lib/python2.5/site-packages/ZODB/FileStorage/<br>> FileStorage.py", line 523, in loadEx<br>> pos = self._lookup_pos(oid)
<br>> File "/usr/lib/python2.5/site-packages/ZODB/FileStorage/<br>> FileStorage.py", line 514, in _lookup_pos<br>> raise POSKeyError(oid)<br>> POSKeyError: 0x00<br>> 2008-01-09T17:38:53 (11338/127.0.0.1:60885) disconnected
<br>> 2008-01-09T17:38:53 (11338) new connection ('<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>', 60886):<br>> <ManagedServerConnection (' <a href="http://127.0.0.1" target="_blank">127.0.0.1
</a>', 60886)><br>> 2008-01-09T17:38:53 (<a href="http://127.0.0.1:60886" target="_blank">127.0.0.1:60886</a>) received handshake 'Z303'<br>> 2008-01-09T17:39:00 (11338/127.0.0.1:60886) disconnected<br>
> 2008-01-09T17:40:45 (11338) terminated by SIGINT<br>> 2008-01-09T17:40:45 (11338) closing storage '1'<br>><br>> Regards,<br>> Kenneth Miller<br>><br>><br>> On Jan 9, 2008 5:24 PM, Kenneth Miller <
<a href="mailto:xkenneth@gmail.com">xkenneth@gmail.com</a>> wrote:<br>> Also,<br>><br>> I've replicated the error on Ubuntu linux.<br>><br>> Here's the server command and output.<br>><br>
> xkenneth@xkenneth-desktop:/usr/lib/python2.5/site-packages$<br>> python2.5 ZEO/runzeo.py -a localhost:8090 -f /tmp/test.fs<br>> ------<br>> 2008-01-09T17:19:38 INFO ZEO.runzeo (6138) opening storage '1' using
<br>> FileStorage<br>> ------<br>> 2008-01-09T17:19:38 INFO ZEO.StorageServer (6138) StorageServer<br>> created RW with storages: 1:RW:/tmp/test.fs<br>> ------<br>> 2008-01-09T17:19:38 INFO ZEO.zrpc (6138) listening on ('localhost',
<br>> 8090)<br>> ------<br>> 2008-01-09T17:20:41 INFO ZEO.StorageServer (6138) new connection<br>> ('<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>', 37523): <ManagedServerConnection ('
<a href="http://127.0.0.1" target="_blank">127.0.0.1</a> ', 37523)><br>> ------<br>> 2008-01-09T17:20:41 INFO ZEO.zrpc.Connection(S) (<a href="http://127.0.0.1:37523" target="_blank">127.0.0.1:37523</a>)<br>> received handshake 'Z303'
<br>> ------<br>> 2008-01-09T17:20:53 INFO ZEO.zrpc.Connection(S) (<a href="http://127.0.0.1:37523" target="_blank">127.0.0.1:37523</a>)<br>> loadEx() raised exception: 0x00<br>> Traceback (most recent call last):
<br>> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py",<br>> line 421, in handle_request<br>> ret = meth(*args)<br>> File "/usr/lib/python2.5/site-packages/ZEO/StorageServer.py", line
<br>> 248, in loadEx<br>> return self.storage.loadEx(oid, version)<br>> File "/usr/lib/python2.5/site-packages/ZODB/FileStorage/<br>> FileStorage.py", line 523, in loadEx<br>> pos = self._lookup_pos(oid)
<br>> File "/usr/lib/python2.5/site-packages/ZODB/FileStorage/<br>> FileStorage.py", line 514, in _lookup_pos<br>> raise POSKeyError(oid)<br>> POSKeyError: 0x00<br>> ------<br>> 2008-01-09T17:20:53 INFO
ZEO.StorageServer (6138/127.0.0.1:37523)<br>> disconnected<br>> ------<br>> 2008-01-09T17:20:53 INFO ZEO.StorageServer (6138) new connection ('<br>> <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>
', 37524): <ManagedServerConnection ('<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>', 37524)><br>> ------<br>> 2008-01-09T17:20:53 INFO ZEO.zrpc.Connection(S) ( <a href="http://127.0.0.1:37524" target="_blank">
127.0.0.1:37524</a>)<br>> received handshake 'Z303'<br>><br>> And here's the client input and error:<br>><br>> xkenneth@xkenneth-desktop :/usr/lib/python2.5/site-packages$ python2.5<br>> Python
2.5.1 (r251:54863, May 2 2007, 16:56:35)<br>> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2<br>> Type "help", "copyright", "credits" or "license" for more information.<br>> >>> from ZEO import ClientStorage
<br>> >>> from ZODB import DB<br>> >>> storage = ClientStorage.ClientStorage(('localhost',8090))<br>> >>> db = DB( storage )<br>> No handlers could be found for logger "
ZEO.zrpc"<br>> Traceback (most recent call last):<br>> File "<stdin>", line 1, in <module><br>> File "/usr/lib/python2.5/site-packages/ZODB/DB.py", line 238, in<br>> __init__
<br>> storage.load(z64,'')<br>> File "/usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line<br>> 746, in load<br>> return self.loadEx(oid, version)[:2]<br>> File "/usr/lib/python2.5/site-packages/ZEO/ClientStorage.py", line
<br>> 769, in loadEx<br>> data, tid, ver = self._server.loadEx(oid, version)<br>> File "/usr/lib/python2.5/site-packages/ZEO/ServerStub.py", line<br>> 192, in loadEx<br>> return self.rpc.call
("loadEx", oid, version)<br>> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py",<br>> line 531, in call<br>> r_flags, r_args = self.wait(msgid)<br>> File "/usr/lib/python2.5/site-packages/ZEO/zrpc/connection.py",
<br>> line 621, in wait<br>> raise DisconnectedError()<br>> ZEO.zrpc.error.DisconnectedError<br>><br>><br>> Any help would be greatly appreciated.<br>><br>> Regards,<br>> Kenneth Miller<br>>
<br>> On Jan 9, 2008 5:03 PM, Kenneth Miller < <a href="mailto:xkenneth@gmail.com">xkenneth@gmail.com</a> > wrote:<br>> I applied the patch succesfully, but still recieved the same error.<br>><br>> How can i retrieve the log of the zeo process?
<br>><br>> Regards,<br>> Kenneth Miller<br>><br>> On Jan 9, 2008, at 4:52 PM, Paolo Losi wrote:<br>><br>> > You are maybe being bite by bug <a href="https://bugs.launchpad.net/zodb/+bug/135108" target="_blank">
https://bugs.launchpad.net/zodb/+bug/135108</a><br>> > even if, in my case, it was unix socket instead of tcp socket.<br>> ><br>> > Could you please try to apply the patch<br>> > <a href="http://launchpadlibrarian.net/10338640/patch.diff" target="_blank">
http://launchpadlibrarian.net/10338640/patch.diff</a><br>> > and report back?<br>> ><br>> > It would be very useful to have the log of zeo process as well.<br>> ><br>> > Paolo<br>> ><br>
> > Kenneth Miller wrote:<br>> >> All,<br>> >> I hope this is the right mailing list for newbie help.<br>> >> I'm trying to get a basic example of ZEO running for an example,<br>> >> here's what I've tried so far.
<br>> >> I've installed python2.5 and ZODB/Zeo with MacPorts (Mac OS X<br>> >> 10.5.1).<br>> >> To start the zeo server with a temporary filesystem, i've issued<br>> >> this command:
<br>> >> python2.5 ZEO/runzeo.py -a localhost:8090 -f /tmp/test.fs<br>> >> To connect to the zeo server i've entered the following commands<br>> >> and received the following error:<br>> >> Python
2.5.1 (r251:54863, Oct 5 2007, 21:08:09)<br>> >> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin<br>> >> Type "help", "copyright", "credits" or "license" for more<br>
> >> information.<br>> >> >>> from ZEO import ClientStorage<br>> >> >>> from ZODB import DB<br>> >> >>><br>> >> >>> storage = ClientStorage.ClientStorage
( ('localhost', 8090) )<br>> >> >>> db = DB( storage )<br>> >> No handlers could be found for logger " ZEO.zrpc "<br>> >> Traceback (most recent call last):<br>> >> File "<stdin>", line 1, in <module>
<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg /ZODB/DB.py", line 246, in __init__<br>> >> storage.load(z64,'')<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-
3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg/ZEO/ClientStorage.py", line 727, in load<br>> >> return self.loadEx(oid, version)[:2]<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-
3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg/ZEO/ClientStorage.py", line 750, in loadEx<br>> >> data, tid, ver = self._server.loadEx(oid, version)<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-
3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg/ZEO/ServerStub.py", line 196, in loadEx<br>> >> return self.rpc.call("loadEx", oid, version)<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-
3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg/ZEO/zrpc/connection.py", line 645, in call<br>> >> r_flags, r_args = self.wait(msgid)<br>> >> File "/Library/Python/2.5/site-packages/ZODB3-
3.7.2-py2.5-<br>> >> macosx-10.5-i386.egg/ZEO/zrpc/connection.py", line 735, in wait<br>> >> raise DisconnectedError()<br>> >> ZEO.zrpc.error.DisconnectedError<br>> >> I've expiremented with ZODB itself on a standalone FS, and gotten
<br>> >> that to work successfully. I'd really like to use ZEO, so any help<br>> >> would be appreciated.<br>> >> Regards,<br>> >> Kenneth Miller<br>> >> _______________________________________________
<br>> >> For more information about ZODB, see the ZODB Wiki:<br>> >> <a href="http://www.zope.org/Wikis/ZODB/" target="_blank">http://www.zope.org/Wikis/ZODB/</a><br>> >> ZODB-Dev mailing list -
<a href="mailto:ZODB-Dev@zope.org">ZODB-Dev@zope.org</a><br>> >> <a href="http://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zodb-dev</a><br>> ><br>><br>
><br>><br></div></div>> _______________________________________________<br><div><div></div><div class="Wj3C7c">> For more information about ZODB, see the ZODB Wiki:<br>> <a href="http://www.zope.org/Wikis/ZODB/" target="_blank">
http://www.zope.org/Wikis/ZODB/</a><br>><br>> ZODB-Dev mailing list - <a href="mailto:ZODB-Dev@zope.org">ZODB-Dev@zope.org</a><br>> <a href="http://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zodb-dev
</a><br><br></div></div><font color="#888888">--<br>Jim Fulton<br>Zope Corporation<br><br><br></font></blockquote></div><br></div>