{"action":"created","issue":{"url":"https://api.github.com/repos/webrecorder/webrecorder/issues/223","repository_url":"https://api.github.com/repos/webrecorder/webrecorder","labels_url":"https://api.github.com/repos/webrecorder/webrecorder/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/webrecorder/webrecorder/issues/223/comments","events_url":"https://api.github.com/repos/webrecorder/webrecorder/issues/223/events","html_url":"https://github.com/webrecorder/webrecorder/issues/223","id":172282861,"number":223,"title":"Problem with Temp Dir?","user":{"login":"kzahel","id":158352,"avatar_url":"https://avatars.githubusercontent.com/u/158352?v=3","gravatar_id":"","url":"https://api.github.com/users/kzahel","html_url":"https://github.com/kzahel","followers_url":"https://api.github.com/users/kzahel/followers","following_url":"https://api.github.com/users/kzahel/following{/other_user}","gists_url":"https://api.github.com/users/kzahel/gists{/gist_id}","starred_url":"https://api.github.com/users/kzahel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzahel/subscriptions","organizations_url":"https://api.github.com/users/kzahel/orgs","repos_url":"https://api.github.com/users/kzahel/repos","events_url":"https://api.github.com/users/kzahel/events{/privacy}","received_events_url":"https://api.github.com/users/kzahel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-20T18:01:28Z","updated_at":"2016-09-20T05:55:44Z","closed_at":"2016-09-20T05:55:44Z","body":"I installed on a fresh ubuntu 16.04 server image, with all default configs. The website loads up looking great on port 8089 but I always see 0 bytes recorded in the UI, and running without -d I see an error writing to the temporary directory.\r\n\r\nI am new to docker, so I am not sure how to get a shell and check the folder. I tried docker ls and docker attach but that didn't seem to do what I want. :-\\\r\n\r\napp_1             | 2016-08-20 17:58:40,968: [INFO]: Starting new HTTP connection (1): recorder\r\nwebagg_1          | /usr/local/lib/python3.5/site-packages/urllib3/connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request\r\n is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html\r\nwebagg_1          |   InsecureRequestWarning)\r\nwebagg_1          | [pid: 15|app: 0|req: 13/59] 172.18.0.7 () {32 vars in 1298 bytes} [Sat Aug 20 17:58:40 2016] POST /live/resource/postr\r\neq?param.user=temp-PLZBE3I7&param.coll=temp&param.rec=recording-session-5&closest=now&url=https%3A%2F%2Fpixel.facebook.com%2Fsi%2Fkappa%2F\r\nasync%2F%3FKa%3DAbEy68WjXipDa1w2%26Kt%3D1471715920850%26Ko%3Da%26__a%3D1%26__be%3D-1%26__dyn%3D7xeXxaER2HwNJ0ZwRAKGzEyay6-C11xG3Kq2i5U4e1o\r\nx27QdwPwDyUG4XzEa8uwh9Vobo88lwIwHwJwpUO6Egx61YCBxZ3E%26__pc%3DPHASED%253ADEFAULT%26__req%3D7%26__rev%3D2518278%26__user%3D0%26asyncSignal%\r\n3D1607%26lsd%3DAVr0diR9 => generated 2711 bytes in 31 msecs (HTTP/1.1 200) 6 headers in 489 bytes (13 switches on core 399)\r\napp_1             | 2016-08-20 17:58:41,008: [DEBUG]: \"POST /record/live/resource/postreq?param.user=temp-PLZBE3I7&param.coll=temp&param.r\r\nec=recording-session-5&closest=now&url=https%3A%2F%2Fpixel.facebook.com%2Fsi%2Fkappa%2Fasync%2F%3FKa%3DAbEy68WjXipDa1w2%26Kt%3D14717159208\r\n50%26Ko%3Da%26__a%3D1%26__be%3D-1%26__dyn%3D7xeXxaER2HwNJ0ZwRAKGzEyay6-C11xG3Kq2i5U4e1ox27QdwPwDyUG4XzEa8uwh9Vobo88lwIwHwJwpUO6Egx61YCBxZ3\r\nE%26__pc%3DPHASED%253ADEFAULT%26__req%3D7%26__rev%3D2518278%26__user%3D0%26asyncSignal%3D1607%26lsd%3DAVr0diR9 HTTP/1.1\" 200 None\r\nrecorder_1        | Traceback (most recent call last):\r\nrecorder_1        |   File \"/webrecore/recorder/recorderapp.py\", line 48, in _write_loop\r\nrecorder_1        |     self._write_one()\r\nrecorder_1        |   File \"/webrecore/recorder/recorderapp.py\", line 65, in _write_one\r\nrecorder_1        |     self.writer.write_req_resp(req, resp, params)\r\nrecorder_1        |   File \"/webrecore/recorder/warcwriter.py\", line 112, in write_req_resp\r\nrecorder_1        |     self._do_write_req_resp(req, resp, params)\r\nrecorder_1        |   File \"/webrecore/recorder/warcwriter.py\", line 427, in _do_write_req_resp\r\nrecorder_1        |     return self._write_to_file(params, write_callback)\r\nrecorder_1        |   File \"/webrecore/recorder/warcwriter.py\", line 453, in _write_to_file\r\nrecorder_1        |     out = self._open_file(filename, params)\r\nrecorder_1        |   File \"/webrecore/recorder/warcwriter.py\", line 371, in _open_file\r\nrecorder_1        |     fh = open(filename, 'a+b')\r\nrecorder_1        | FileNotFoundError: [Errno 2] No such file or directory: '/data/warcs/temp-PLZBE3I7/rec-20160820175841016175-4097da1c0d\r\n50-ZXGJZEJH.warc.gz'"},"comment":{"url":"https://api.github.com/repos/webrecorder/webrecorder/issues/comments/248208640","html_url":"https://github.com/webrecorder/webrecorder/issues/223#issuecomment-248208640","issue_url":"https://api.github.com/repos/webrecorder/webrecorder/issues/223","id":248208640,"user":{"login":"ikreymer","id":1015759,"avatar_url":"https://avatars.githubusercontent.com/u/1015759?v=3","gravatar_id":"","url":"https://api.github.com/users/ikreymer","html_url":"https://github.com/ikreymer","followers_url":"https://api.github.com/users/ikreymer/followers","following_url":"https://api.github.com/users/ikreymer/following{/other_user}","gists_url":"https://api.github.com/users/ikreymer/gists{/gist_id}","starred_url":"https://api.github.com/users/ikreymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikreymer/subscriptions","organizations_url":"https://api.github.com/users/ikreymer/orgs","repos_url":"https://api.github.com/users/ikreymer/repos","events_url":"https://api.github.com/users/ikreymer/events{/privacy}","received_events_url":"https://api.github.com/users/ikreymer/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T05:55:44Z","updated_at":"2016-09-20T05:55:44Z","body":"I think this was a permissions issue with `./data` dir, where the Docker container did not have access to write to the data dir. I think I improved this recently by not running Docker as root but as a new user and mapping it to the user with uid 1000. This isn't guaranteed to work in all cases, but should at least make this less likely. If this happens again, the `./data/warcs` dir can be set to be world writable. Let me know if this happens again on a new deployment"}}
{"actor":{"display_login":"ikreymer"}}