Trying to upgrade from 0.14.1 to 1.0.0...
This python program works with 0.14.1:
====================================================================
import riak
client = riak.RiakClient(port=XXXX, host="YYYY.ZZZZ",
transport_class=riak.RiakPbcTransport)
test_bucket = client.bucket('test')
x=test_bucket.new('0-0-0','hello6')
x.store()
====================================================================
However, with the server running 1.0.0, I get:
====================================================================
Traceback (most recent call last):
File "./bench/client.py", line 6, in <module>
x.store()
File
"/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/riak_object.py",
line 296, in store
Result = t.put(self, w, dw, return_body)
File
"/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py",
line 188, in put
msg_code, resp = self.recv_msg()
File
"/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py",
line 357, in recv_msg
self.recv_pkt()
File
"/usr/lib/python2.7/site-packages/riak-1.2.2-py2.7.egg/riak/transports/pbc.py",
line 401, in recv_pkt
format(nmsglen))
riak.RiakError: 'Socket returned short packet length - expected 4'
====================================================================
When this happens, console.logg gets:
2011-10-13 15:52:41.920 [error] <0.17823.0> CRASH REPORT Process <0.17823.0>
with 0 neighbours crashed with reason: call to undefined function
protobuffs:next_field_num(<<10,4,116,101,115,116,18,5,48,45,48,45,48,34,28,10,8,34,104,101,108,108,111,54,34,18,16,97,112...>>)
Both 0.14.1 and 1.0.0 work with the HTTP interface, but I want to use
the PB interface.
I suspect I'm just missing something simple, but I haven't been puzzling
over this for some time and haven't been able to find anything yet!
--
Peter Fales
Alcatel-Lucent
Member of Technical Staff
1960 Lucent Lane
Room: 9H-505
Naperville, IL 60566-7033
Email: [email protected]
Phone: 630 979 8031
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com