{"action":"created","issue":{"url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/56","repository_url":"https://api.github.com/repos/LTD-Beget/sprutio","labels_url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/56/comments","events_url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/56/events","html_url":"https://github.com/LTD-Beget/sprutio/issues/56","id":201929264,"number":56,"title":"Проблема с загрузкой файла","user":{"login":"redcap52","id":20042154,"avatar_url":"https://avatars2.githubusercontent.com/u/20042154?v=3","gravatar_id":"","url":"https://api.github.com/users/redcap52","html_url":"https://github.com/redcap52","followers_url":"https://api.github.com/users/redcap52/followers","following_url":"https://api.github.com/users/redcap52/following{/other_user}","gists_url":"https://api.github.com/users/redcap52/gists{/gist_id}","starred_url":"https://api.github.com/users/redcap52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redcap52/subscriptions","organizations_url":"https://api.github.com/users/redcap52/orgs","repos_url":"https://api.github.com/users/redcap52/repos","events_url":"https://api.github.com/users/redcap52/events{/privacy}","received_events_url":"https://api.github.com/users/redcap52/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kirvesp","id":9395956,"avatar_url":"https://avatars1.githubusercontent.com/u/9395956?v=3","gravatar_id":"","url":"https://api.github.com/users/kirvesp","html_url":"https://github.com/kirvesp","followers_url":"https://api.github.com/users/kirvesp/followers","following_url":"https://api.github.com/users/kirvesp/following{/other_user}","gists_url":"https://api.github.com/users/kirvesp/gists{/gist_id}","starred_url":"https://api.github.com/users/kirvesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirvesp/subscriptions","organizations_url":"https://api.github.com/users/kirvesp/orgs","repos_url":"https://api.github.com/users/kirvesp/repos","events_url":"https://api.github.com/users/kirvesp/events{/privacy}","received_events_url":"https://api.github.com/users/kirvesp/received_events","type":"User","site_admin":false},"assignees":[{"login":"kirvesp","id":9395956,"avatar_url":"https://avatars1.githubusercontent.com/u/9395956?v=3","gravatar_id":"","url":"https://api.github.com/users/kirvesp","html_url":"https://github.com/kirvesp","followers_url":"https://api.github.com/users/kirvesp/followers","following_url":"https://api.github.com/users/kirvesp/following{/other_user}","gists_url":"https://api.github.com/users/kirvesp/gists{/gist_id}","starred_url":"https://api.github.com/users/kirvesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirvesp/subscriptions","organizations_url":"https://api.github.com/users/kirvesp/orgs","repos_url":"https://api.github.com/users/kirvesp/repos","events_url":"https://api.github.com/users/kirvesp/events{/privacy}","received_events_url":"https://api.github.com/users/kirvesp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-01-19T17:47:46Z","updated_at":"2017-03-07T15:34:31Z","closed_at":null,"body":"при загрузке файла через Sprut.io выскакивает ошибка FileManager Server Error\r\n\r\nПроблема возникает только при загрузке файлов извне\r\nпри создании папок и файлов проблемы нет - всё работает\r\n\r\n```\r\npyportal: start.sendfile.py #211 : fm-rpc:INFO [2017-01-19 17:39:58,267][289] Server handle_accept()\r\npyportal: start.sendfile.py #52 : fm-rpc:INFO [2017-01-19 17:39:58,268][289] Handler __init__()\r\npyportal: start.sendfile.py #106 : fm-rpc:INFO [2017-01-19 17:39:58,268][289] FileStreamHandler init()\r\npyportal: start.sendfile.py #114 : fm-rpc:INFO [2017-01-19 17:39:58,269][289] FileStreamHandler handle_read()\r\npyportal: start.sendfile.py #77 : fm-rpc:ERROR [2017-01-19 17:39:58,269][289] Handler handle_error()\r\npyportal: start.sendfile.py #239 : fm-rpc:INFO [2017-01-19 17:39:59,403][338] Starting server\r\npyportal: start.sendfile.py #249 : fm-rpc:INFO [2017-01-19 17:39:59,406][338] LISTEN {'logger_name': '/var/log/fm/sendfile.log', 'host': '0.0.0.0', 'port': 51600}\r\n```\r\nвот что появляется в sendfile.log при попытке загрузить файл\r\napp.log\r\n```\r\nBaseHandler.py[LINE:55]# ERROR [2017-01-19 17:39:58,287] — app — Handled exception in app.py: [Errno 104] Connection reset by peerTraceback:Traceback (most recent call last):\r\nFile \"/app/handlers/BaseHandler.py\", line 204, in catch\r\nreturn method(*args, **kwargs)\r\nFile \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 2743, in wrapper\r\nreturn method(self, *args, **kwargs)\r\nFile \"/app/handlers/UploadHandler.py\", line 62, in post\r\nsent = sock.send(data)\r\nConnectionResetError: [Errno 104] Connection reset by peer\r\n\r\nBaseHandler.py[LINE:67]# ERROR [2017-01-19 17:39:58,290] — app — login:root — Traceback:Traceback (most recent call last):\r\nFile \"/app/handlers/BaseHandler.py\", line 204, in catch\r\nreturn method(*args, **kwargs)\r\nFile \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 2743, in wrapper\r\nreturn method(self, *args, **kwargs)\r\nFile \"/app/handlers/UploadHandler.py\", line 62, in post\r\nsent = sock.send(data)\r\nConnectionResetError: [Errno 104] Connection reset by peer\r\n```\r\nЛог ошибок веб-сервера (error.log):\r\n`2017/01/19 17:39:52 [warn] 8#8: *348 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000006, client: 176.213.12.245, server: , request: \"POST /upload?session=%7B%22host%22%3A%22localhost%22%2C%22path%22%3A%22%2Fopt%2Fsprutio%2Flogs%22%2C%22is_share%22%3Afalse%2C%22is_share_write%22%3Afalse%2C%22type%22%3A%22home%22%7D&overwrite=false HTTP/1.1\", host: \"188.120.251.147:9443\", referrer: \"https://188.120.251.147:9443/\"`"},"comment":{"url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/comments/284756111","html_url":"https://github.com/LTD-Beget/sprutio/issues/56#issuecomment-284756111","issue_url":"https://api.github.com/repos/LTD-Beget/sprutio/issues/56","id":284756111,"user":{"login":"redcap52","id":20042154,"avatar_url":"https://avatars2.githubusercontent.com/u/20042154?v=3","gravatar_id":"","url":"https://api.github.com/users/redcap52","html_url":"https://github.com/redcap52","followers_url":"https://api.github.com/users/redcap52/followers","following_url":"https://api.github.com/users/redcap52/following{/other_user}","gists_url":"https://api.github.com/users/redcap52/gists{/gist_id}","starred_url":"https://api.github.com/users/redcap52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redcap52/subscriptions","organizations_url":"https://api.github.com/users/redcap52/orgs","repos_url":"https://api.github.com/users/redcap52/repos","events_url":"https://api.github.com/users/redcap52/events{/privacy}","received_events_url":"https://api.github.com/users/redcap52/received_events","type":"User","site_admin":false},"created_at":"2017-03-07T15:34:31Z","updated_at":"2017-03-07T15:34:31Z","body":"Нет, она находится в другом месте. На папку, куда производится загрузка, стоят права 755\r\n"}}
{"actor":{"display_login":"redcap52"}}