{"action":"created","issue":{"url":"https://api.github.com/repos/Storj/dataserv-client/issues/83","labels_url":"https://api.github.com/repos/Storj/dataserv-client/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/Storj/dataserv-client/issues/83/comments","events_url":"https://api.github.com/repos/Storj/dataserv-client/issues/83/events","html_url":"https://github.com/Storj/dataserv-client/issues/83","id":103885445,"number":83,"title":"Register/Farm fails with v2.1.3 on http://switch.driveshare.org with Raspbian Pi (Model B)","user":{"login":"mabeebam","id":13075761,"avatar_url":"https://avatars.githubusercontent.com/u/13075761?v=3","gravatar_id":"","url":"https://api.github.com/users/mabeebam","html_url":"https://github.com/mabeebam","followers_url":"https://api.github.com/users/mabeebam/followers","following_url":"https://api.github.com/users/mabeebam/following{/other_user}","gists_url":"https://api.github.com/users/mabeebam/gists{/gist_id}","starred_url":"https://api.github.com/users/mabeebam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mabeebam/subscriptions","organizations_url":"https://api.github.com/users/mabeebam/orgs","repos_url":"https://api.github.com/users/mabeebam/repos","events_url":"https://api.github.com/users/mabeebam/events{/privacy}","received_events_url":"https://api.github.com/users/mabeebam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Storj/dataserv-client/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"F483","id":977605,"avatar_url":"https://avatars.githubusercontent.com/u/977605?v=3","gravatar_id":"","url":"https://api.github.com/users/F483","html_url":"https://github.com/F483","followers_url":"https://api.github.com/users/F483/followers","following_url":"https://api.github.com/users/F483/following{/other_user}","gists_url":"https://api.github.com/users/F483/gists{/gist_id}","starred_url":"https://api.github.com/users/F483/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F483/subscriptions","organizations_url":"https://api.github.com/users/F483/orgs","repos_url":"https://api.github.com/users/F483/repos","events_url":"https://api.github.com/users/F483/events{/privacy}","received_events_url":"https://api.github.com/users/F483/received_events","type":"User","site_admin":false},"milestone":null,"comments":23,"created_at":"2015-08-29T21:49:45Z","updated_at":"2015-09-22T11:22:10Z","closed_at":null,"body":"\"dataserv-client --url http://status.driveshare.org:5000 register\" is not coming back to command line on a raspbian pi:\"\r\n\r\nI can wget /api/online and /api/address from the machine (so i dont think it is a port problem).\r\nVersion is correct 2.0.3, Payout_address is set, wallet address created (config therefor assumed to be fine)\r\n\r\nWhen I run \"dataserv-client --url http://status.driveshare.org:5000 register\" it hangs (I waited for 30min).\r\n\r\nI investigated a bit, my client gets in the loop of _handle_connection_error-method tries (which it does 12 times sleeping 300secs). I reduced connection_retry_delay=5 and connection_retry_limit=5, result:\r\n---\r\ndataserv-client --url http://status.driveshare.org:5000 register\r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/dataserv-client\", line 10, in <module>\r\n   cli.main(sys.argv[1:])\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/cli.py\", line 153, in main\r\n   return getattr(client, command_name)(**arguments)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/api.py\", line 72, in register\r\n   registered = self.messenger.register(payout_address)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 100, in register\r\n   self.auth_address(), payout_addr\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 42, in _url_query\r\n   headers = self._create_authentication_headers()\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 77, in _create_authentication_headers\r\n   msg = self._get_node_address() + \" \" + header_date\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 70, in _get_node_address\r\n   self._server_address = self.address()\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 91, in address\r\n   data = self._url_query(\"/api/address\", authenticate=False)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 85, in _handle_connection_error\r\n   return self._url_query(api_path, retries + 1, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 85, in _handle_connection_error\r\n   return self._url_query(api_path, retries + 1, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 85, in _handle_connection_error\r\n   return self._url_query(api_path, retries + 1, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 85, in _handle_connection_error\r\n   return self._url_query(api_path, retries + 1, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 85, in _handle_connection_error\r\n   return self._url_query(api_path, retries + 1, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 63, in _url_query\r\n   self._handle_connection_error(api_path, retries, authenticate)\r\n File \"/usr/local/lib/python2.7/dist-packages/dataserv_client/messaging.py\", line 83, in _handle_connection_error\r\n   raise exceptions.ConnectionError(self._server_url)\r\ndataserv_client.exceptions.ConnectionError: Could not connect to server http://status.driveshare.org:5000!\r\n---\r\nWhat is the problem?\r\nIs it a good idea not to bubble up the urllib.error.URLError-Exception of line 62 in messaging.py?"},"comment":{"url":"https://api.github.com/repos/Storj/dataserv-client/issues/comments/142258117","html_url":"https://github.com/Storj/dataserv-client/issues/83#issuecomment-142258117","issue_url":"https://api.github.com/repos/Storj/dataserv-client/issues/83","id":142258117,"user":{"login":"ksingh7","id":9701902,"avatar_url":"https://avatars.githubusercontent.com/u/9701902?v=3","gravatar_id":"","url":"https://api.github.com/users/ksingh7","html_url":"https://github.com/ksingh7","followers_url":"https://api.github.com/users/ksingh7/followers","following_url":"https://api.github.com/users/ksingh7/following{/other_user}","gists_url":"https://api.github.com/users/ksingh7/gists{/gist_id}","starred_url":"https://api.github.com/users/ksingh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksingh7/subscriptions","organizations_url":"https://api.github.com/users/ksingh7/orgs","repos_url":"https://api.github.com/users/ksingh7/repos","events_url":"https://api.github.com/users/ksingh7/events{/privacy}","received_events_url":"https://api.github.com/users/ksingh7/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:22:10Z","updated_at":"2015-09-22T11:22:10Z","body":"@littleskunk \r\n\r\nNeed your help , i updated python version , so now i have two pythons 2.7.5 and 2.7.8 (see below) , so how should i instruct dataserv-client to use python2.7.8 ??\r\n\r\n```\r\n[root@node2 ~]# python --version\r\nPython 2.7.5\r\n[root@node2 ~]# python2\r\npython2           python2.7         python2.7-config  python2-config\r\n[root@node2 ~]# python2.7 --version\r\nPython 2.7.8\r\n[root@node2 ~]#\r\n[root@node2 ~]# dataserv-client register\r\nINFO dataserv_client.messaging 43: Query: http://status.driveshare.org/api/address\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/dataserv-client\", line 10, in <module>\r\n    cli.main(sys.argv[1:])\r\n  File \"/usr/lib/python2.7/site-packages/dataserv_client/cli.py\", line 190, in main\r\n    return getattr(client, command_name)(**arguments)\r\n  File \"/usr/lib/python2.7/site-packages/dataserv_client/api.py\", line 87, in register\r\n    self.messenger.register(payout_address)\r\n  File \"/usr/lib/python2.7/site-packages/dataserv_client/messaging.py\", line 103, in register\r\n    self.auth_address(), payout_addr\r\n  File \"/usr/lib/python2.7/site-packages/dataserv_client/messaging.py\", line 39, in _url_query\r\n    self.btctxstore, self._get_server_address(), self.wif\r\n  File \"/usr/lib/python2.7/site-packages/storjcore/auth.py\", line 38, in create_headers\r\n    signature = btctxstore.sign_unicode(sender_wif, msg)\r\n  File \"/usr/lib/python2.7/site-packages/btctxstore/api.py\", line 191, in sign_unicode\r\n    return self.sign_data(wif, hexdata)\r\n  File \"/usr/lib/python2.7/site-packages/btctxstore/api.py\", line 174, in sign_data\r\n    sigdata = control.sign_data(self.testnet, data, key)\r\n  File \"/usr/lib/python2.7/site-packages/btctxstore/control.py\", line 300, in sign_data\r\n    sig = _add_recovery_params(i, compressed, sigdata)\r\n  File \"/usr/lib/python2.7/site-packages/btctxstore/control.py\", line 283, in _add_recovery_params\r\n    return struct.pack(\">B\", params) + sigdata\r\nTypeError: Struct() argument 1 must be string, not unicode\r\n[root@node2 ~]#\r\n```"}}