Can't delete objects from Riak KV

Alex De la rosa alex.rosa.box at gmail.com
Thu Apr 14 09:57:03 EDT 2016


Hi Luke, I tried and get this and didn't work:

~ # curl -4vvv -XDELETE http://xx.xx.xx.xx:8098/buckets/test/keys/something
* Hostname was NOT found in DNS cache
*   Trying xx.xx.xx.xx...
* Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 8098 (#0)
> DELETE /buckets/test/keys/something HTTP/1.1
> User-Agent: curl/7.35.0
> Host: xx.xx.xx.xx:8098
> Accept: */*
>
* Empty reply from server
* Connection #0 to host xx.xx.xx.xx left intact
curl: (52) Empty reply from server

Thanks,
Alex

On Thu, Apr 14, 2016 at 5:50 PM, Alex De la rosa <alex.rosa.box at gmail.com>
wrote:

> I can try that, but I would like to do it via the python client itself...
>
> Thanks,
> Rohman
>
> On Thu, Apr 14, 2016 at 5:47 PM, Luke Bakken <lbakken at basho.com> wrote:
>
>> Hi Alex,
>>
>> Can you use the HTTP API to delete an object? Something like:
>>
>> curl -4vvv -XDELETE riak-host:8098/buckets/test/keys/something
>>
>> --
>> Luke Bakken
>> Engineer
>> lbakken at basho.com
>>
>>
>> On Thu, Apr 14, 2016 at 2:05 AM, Alex De la rosa
>> <alex.rosa.box at gmail.com> wrote:
>> > I upgraded the Python library to the latest and is still failing... I'm
>> > unable to delete any objects at all.
>> >
>> > ~ # pip show riak
>> > ---
>> > Name: riak
>> > Version: 2.4.2
>> > Location: /usr/local/lib/python2.7/dist-packages
>> > Requires: six, pyOpenSSL, protobuf
>> >
>> > Everything else seems fine, just timeouts when deleting :(
>> >
>> > Thanks,
>> > Alex
>> >
>> > On Thu, Apr 14, 2016 at 8:53 AM, Alex De la rosa <
>> alex.rosa.box at gmail.com>
>> > wrote:
>> >>
>> >> Hi there,
>> >>
>> >> I'm trying to delete objects from riak with the python library and is
>> >> timing out, any ideas? (this example is from a simple object, but also
>> have
>> >> issues with bucket types with map objects, etc...)... Just I seem to
>> unable
>> >> to delete anything, just times out.
>> >>
>> >> >>> import riak
>> >> >>> RIAK = riak.RiakClient(protocol = 'pbc', nodes = [{'host':
>> '--------',
>> >> >>> 'http_port': 8098, 'pb_port': 8087}])
>> >> >>> x = RIAK.bucket('test').get('something')
>> >> >>> print x.data
>> >> {"something":"here"}
>> >> >>> x.delete()
>> >> Traceback (most recent call last):
>> >>   File "<stdin>", line 1, in <module>
>> >>   File "/usr/local/lib/python2.7/dist-packages/riak/riak_object.py",
>> line
>> >> 329, in delete
>> >>     timeout=timeout)
>> >>   File
>> "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
>> >> line 196, in wrapper
>> >>     return self._with_retries(pool, thunk)
>> >>   File
>> "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
>> >> line 138, in _with_retries
>> >>     return fn(transport)
>> >>   File
>> "/usr/local/lib/python2.7/dist-packages/riak/client/transport.py",
>> >> line 194, in thunk
>> >>     return fn(self, transport, *args, **kwargs)
>> >>   File
>> "/usr/local/lib/python2.7/dist-packages/riak/client/operations.py",
>> >> line 744, in delete
>> >>     pw=pw, timeout=timeout)
>> >>   File
>> >>
>> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/transport.py",
>> >> line 283, in delete
>> >>     riak.pb.messages.MSG_CODE_DEL_RESP)
>> >>   File
>> >>
>> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
>> >> line 34, in _request
>> >>     return self._recv_msg(expect)
>> >>   File
>> >>
>> "/usr/local/lib/python2.7/dist-packages/riak/transports/pbc/connection.py",
>> >> line 165, in _recv_msg
>> >>     raise RiakError(bytes_to_str(err.errmsg))
>> >> riak.riak_error.RiakError: 'timeout'
>> >>
>> >> My Riak version is 2.1.4
>> >>
>> >> My Python library is (installed via pip):
>> >> Name: riak
>> >> Version: 2.2.0
>> >> Location: /usr/local/lib/python2.7/dist-packages
>> >> Requires: six, pyOpenSSL, riak-pb
>> >>
>> >> Thanks,
>> >> Alex
>> >
>> >
>> >
>> > _______________________________________________
>> > riak-users mailing list
>> > riak-users at lists.basho.com
>> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20160414/5482da1e/attachment-0002.html>


More information about the riak-users mailing list