{"action":"closed","issue":{"url":"https://api.github.com/repos/zetaops/pyoko/issues/5","labels_url":"https://api.github.com/repos/zetaops/pyoko/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/zetaops/pyoko/issues/5/comments","events_url":"https://api.github.com/repos/zetaops/pyoko/issues/5/events","html_url":"https://github.com/zetaops/pyoko/issues/5","id":98140417,"number":5,"title":"manage.py update_schema riak error","user":{"login":"hiorws","id":9096008,"avatar_url":"https://avatars.githubusercontent.com/u/9096008?v=3","gravatar_id":"","url":"https://api.github.com/users/hiorws","html_url":"https://github.com/hiorws","followers_url":"https://api.github.com/users/hiorws/followers","following_url":"https://api.github.com/users/hiorws/following{/other_user}","gists_url":"https://api.github.com/users/hiorws/gists{/gist_id}","starred_url":"https://api.github.com/users/hiorws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiorws/subscriptions","organizations_url":"https://api.github.com/users/hiorws/orgs","repos_url":"https://api.github.com/users/hiorws/repos","events_url":"https://api.github.com/users/hiorws/events{/privacy}","received_events_url":"https://api.github.com/users/hiorws/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-30T10:55:21Z","updated_at":"2016-01-06T09:40:15Z","closed_at":"2016-01-06T09:40:15Z","body":"When i tried \r\npython manage.py update_schema --bucket all\r\nreturns error. and traceback;\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 12, in <module>\r\n    ManagementCommands(argv[1:])\r\n  File \"/app/env/local/lib/python2.7/site-packages/pyoko/manage.py\", line 21, in __init__\r\n    getattr(self, self.args.command)()\r\n  File \"/app/env/local/lib/python2.7/site-packages/pyoko/manage.py\", line 53, in schema_update\r\n    self.robot.run()\r\n  File \"/app/env/local/lib/python2.7/site-packages/pyoko/db/schema_update.py\", line 42, in run\r\n    bucket_name)))\r\n  File \"/app/env/local/lib/python2.7/site-packages/pyoko/db/schema_update.py\", line 119, in apply_schema\r\n    self.client.create_search_index(tmp_index_name)\r\n  File \"/app/env/src/riak/riak/client/transport.py\", line 196, in wrapper\r\n    return self._with_retries(pool, thunk)\r\n  File \"/app/env/src/riak/riak/client/transport.py\", line 138, in _with_retries\r\n    return fn(transport)\r\n  File \"/app/env/src/riak/riak/client/transport.py\", line 194, in thunk\r\n    return fn(self, transport, *args, **kwargs)\r\n  File \"/app/env/src/riak/riak/client/operations.py\", line 702, in create_search_index\r\n    return transport.create_search_index(index, schema, n_val)\r\n  File \"/app/env/src/riak/riak/transports/pbc/transport.py\", line 501, in create_search_index\r\n    MSG_CODE_PUT_RESP)\r\n  File \"/app/env/src/riak/riak/transports/pbc/connection.py\", line 56, in _request\r\n    return self._recv_msg(expect)\r\n  File \"/app/env/src/riak/riak/transports/pbc/connection.py\", line 174, in _recv_msg\r\n    self._recv_pkt()\r\n  File \"/app/env/src/riak/riak/transports/pbc/connection.py\", line 199, in _recv_pkt\r\n    % len(nmsglen))\r\nriak.riak_error.RiakError: 'Socket returned short packet length 0 - expected 4'\r\n\r\nIf i added RIAK_PROTOCOL='http' to environment variables, everything is ok, and scheme updated."}}