{"action":"created","issue":{"url":"https://api.github.com/repos/ajenti/ajenti/issues/815","labels_url":"https://api.github.com/repos/ajenti/ajenti/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/ajenti/ajenti/issues/815/comments","events_url":"https://api.github.com/repos/ajenti/ajenti/issues/815/events","html_url":"https://github.com/ajenti/ajenti/issues/815","id":114497093,"number":815,"title":"UnicodeError on Raspbian using Raspberry Pi B+","user":{"login":"codebucketdev","id":5750114,"avatar_url":"https://avatars.githubusercontent.com/u/5750114?v=3","gravatar_id":"","url":"https://api.github.com/users/codebucketdev","html_url":"https://github.com/codebucketdev","followers_url":"https://api.github.com/users/codebucketdev/followers","following_url":"https://api.github.com/users/codebucketdev/following{/other_user}","gists_url":"https://api.github.com/users/codebucketdev/gists{/gist_id}","starred_url":"https://api.github.com/users/codebucketdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebucketdev/subscriptions","organizations_url":"https://api.github.com/users/codebucketdev/orgs","repos_url":"https://api.github.com/users/codebucketdev/repos","events_url":"https://api.github.com/users/codebucketdev/events{/privacy}","received_events_url":"https://api.github.com/users/codebucketdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-01T22:25:06Z","updated_at":"2015-11-03T07:31:51Z","closed_at":"2015-11-03T07:31:51Z","body":"Hello Guys,\r\n\r\nI have a problem with my Ajenti installation. It is my third installation on a Raspberry Pi B+ and normally everything worked fine, but today my new installation has got an error while I tried to log in.\r\n\r\nDevice: Raspberry Pi B+\r\nOS: Raspbian Wheezy\r\n\r\n**Logfile**\r\n```\r\n2015-11-01 23:09:09,895 INFO     registry.register_crypt_handler(): registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>\r\n2015-11-01 23:09:11,834 WARNING  core.run(): Couldn't set default locale\r\n2015-11-01 23:09:11,850 INFO     core.run(): Ajenti 1.2.23.0 running on platform: debian\r\n2015-11-01 23:09:12,124 INFO     sm_upstart.verify(): Disabling Upstart service manager: org.freedesktop.DBus.Error.ServiceUnknown: The name com.ubuntu.Upstart was not provided by any .service files\r\n2015-11-01 23:09:21,628 INFO     core.run(): Starting server on (u'0.0.0.0', 8384)\r\n2015-11-01 23:09:21,767 INFO     core.run(): SSL enabled: /etc/ajenti/ajenti.pem\r\n2015-11-01 23:15:29,849 INFO     users.check_password(): user root logged in through AjentiSyncProvider from 192.168.1.23\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 523, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/baseserver.py\", line 153, in _close_when_done\r\n    return handle(*args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/server.py\", line 130, in wrap_socket_and_handle\r\n    return self.handle(ssl_socket, address)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/server.py\", line 124, in handle\r\n    handler.handle()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 410, in handle\r\n    result = self.handle_one_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 625, in handle_one_request\r\n    self.handle_one_response()\r\n  File \"/usr/lib/pymodules/python2.7/ajenti/http.py\", line 25, in handle_one_response\r\n    return SocketIOHandler.handle_one_response(self)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 122, in handle_one_response\r\n    return self._do_handshake(handshake_tokens.groupdict())\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 64, in _do_handshake\r\n    self.write_smart(data)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 88, in write_smart\r\n    self.write_plain_result(data)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 78, in write_plain_result\r\n    (\"Content-Type\", \"text/plain\"),\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 740, in start_response\r\n    raise UnicodeError(\"The value must be a native string\", header, value)\r\nUnicodeError: ('The value must be a native string', 'Access-Control-Max-Age', 3600)\r\n<Greenlet at 0x2825f80: _close_when_done(<socket at 0x2e6a590 fileno=[Errno 9] Bad file des, ('192.168.1.23', 63384))> failed with UnicodeError\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py\", line 523, in run\r\n    result = self._run(*self.args, **self.kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/baseserver.py\", line 153, in _close_when_done\r\n    return handle(*args)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/server.py\", line 130, in wrap_socket_and_handle\r\n    return self.handle(ssl_socket, address)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/server.py\", line 124, in handle\r\n    handler.handle()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 410, in handle\r\n    result = self.handle_one_request()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 625, in handle_one_request\r\n    self.handle_one_response()\r\n  File \"/usr/lib/pymodules/python2.7/ajenti/http.py\", line 25, in handle_one_response\r\n    return SocketIOHandler.handle_one_response(self)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 122, in handle_one_response\r\n    return self._do_handshake(handshake_tokens.groupdict())\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 64, in _do_handshake\r\n    self.write_smart(data)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 88, in write_smart\r\n    self.write_plain_result(data)\r\n  File \"/usr/lib/python2.7/dist-packages/socketio/handler.py\", line 78, in write_plain_result\r\n    (\"Content-Type\", \"text/plain\"),\r\n  File \"/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py\", line 740, in start_response\r\n    raise UnicodeError(\"The value must be a native string\", header, value)\r\nUnicodeError: ('The value must be a native string', 'Access-Control-Max-Age', 3600)\r\n<Greenlet at 0x302a530: _close_when_done(<socket at 0x2e5c7b0 fileno=[Errno 9] Bad file des, ('192.168.1.23', 63400))> failed with UnicodeError"},"comment":{"url":"https://api.github.com/repos/ajenti/ajenti/issues/comments/153279875","html_url":"https://github.com/ajenti/ajenti/issues/815#issuecomment-153279875","issue_url":"https://api.github.com/repos/ajenti/ajenti/issues/815","id":153279875,"user":{"login":"codebucketdev","id":5750114,"avatar_url":"https://avatars.githubusercontent.com/u/5750114?v=3","gravatar_id":"","url":"https://api.github.com/users/codebucketdev","html_url":"https://github.com/codebucketdev","followers_url":"https://api.github.com/users/codebucketdev/followers","following_url":"https://api.github.com/users/codebucketdev/following{/other_user}","gists_url":"https://api.github.com/users/codebucketdev/gists{/gist_id}","starred_url":"https://api.github.com/users/codebucketdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebucketdev/subscriptions","organizations_url":"https://api.github.com/users/codebucketdev/orgs","repos_url":"https://api.github.com/users/codebucketdev/repos","events_url":"https://api.github.com/users/codebucketdev/events{/privacy}","received_events_url":"https://api.github.com/users/codebucketdev/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T07:31:51Z","updated_at":"2015-11-03T07:31:51Z","body":"Thanks,\r\nI've installed now ```gevent==1.1.b3``` and it works again! Maybe you should update the script and the article for Raspbian on the Knowledge Base, because there are 2 wrong lines.\r\n\r\nhttp://support.ajenti.org/topic/436874-installing-on-raspbian/\r\n\r\nInstead of\r\n```\r\npip install -U gevent \r\npip install greenlet==dev \r\n```\r\n\r\nShould be this here:\r\n```\r\npip install -U gevent==1.1b4\r\npip install greenlet\r\n```"}}