{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/1494","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1494/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/1494/events","html_url":"https://github.com/borgbackup/borg/issues/1494","id":171644376,"number":1494,"title":"Improper logging of remote exceptions/errors","user":{"login":"lutoma","id":179393,"avatar_url":"https://avatars.githubusercontent.com/u/179393?v=3","gravatar_id":"","url":"https://api.github.com/users/lutoma","html_url":"https://github.com/lutoma","followers_url":"https://api.github.com/users/lutoma/followers","following_url":"https://api.github.com/users/lutoma/following{/other_user}","gists_url":"https://api.github.com/users/lutoma/gists{/gist_id}","starred_url":"https://api.github.com/users/lutoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lutoma/subscriptions","organizations_url":"https://api.github.com/users/lutoma/orgs","repos_url":"https://api.github.com/users/lutoma/repos","events_url":"https://api.github.com/users/lutoma/events{/privacy}","received_events_url":"https://api.github.com/users/lutoma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T12:24:32Z","updated_at":"2016-08-17T12:50:06Z","closed_at":"2016-08-17T12:50:06Z","body":"I've been using borg to back up various servers for a few weeks and I've been very happy with it so far. However for some reason, all of our backups failed this night on all our servers with an error message like this:\r\n\r\n```bash\r\nAug 17 14:10:57 bnc borg[15672]: Remote Exception (see remote log for the traceback)\r\nAug 17 14:10:57 bnc borg[15672]: Platform: Linux bnc 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64\r\nAug 17 14:10:57 bnc borg[15672]: Linux: debian 8.4\r\nAug 17 14:10:57 bnc borg[15672]: Borg: 1.0.6  Python: CPython 3.4.2\r\nAug 17 14:10:57 bnc borg[15672]: PID: 15672  CWD: /\r\nAug 17 14:10:57 bnc borg[15672]: sys.argv: ['/usr/bin/borg', 'create', 'foo@example.net:backups/foo.foo.net::{now:%Y-%m-%d}', '/', '--exclude-from', '/var/local/backup-excludes.txt', '--exclude-caches', '-vs', '-C', 'lz4']\r\nAug 17 14:10:57 bnc borg[15672]: SSH_ORIGINAL_COMMAND: None\r\n```\r\n\r\nIMHO that's a very unhelpful error message for a number of reasons:\r\n\r\n* It doesn't actually say what is broken, but just refers to the \"remote log\".\r\n* There is no mention of a \"remote log\" anywhere in the documentation (at least I couldn't find any).\r\n* Remote errors don't seem to get logged to any file by default, but just to stdout/-err (where the client will just discard them), and the configuration samples in the documentation don't contain any stderr redirection to logs either. This is problematic because you don't tend to notice that until after you've had some kind of remote error, at which point it's obviously too late to add logging, and one may not be able to reproduce the error anymore.\r\n\r\nApologies if those are known issues or there is some kind of error/misunderstanding on my side."},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/240400926","html_url":"https://github.com/borgbackup/borg/issues/1494#issuecomment-240400926","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1494","id":240400926,"user":{"login":"lutoma","id":179393,"avatar_url":"https://avatars.githubusercontent.com/u/179393?v=3","gravatar_id":"","url":"https://api.github.com/users/lutoma","html_url":"https://github.com/lutoma","followers_url":"https://api.github.com/users/lutoma/followers","following_url":"https://api.github.com/users/lutoma/following{/other_user}","gists_url":"https://api.github.com/users/lutoma/gists{/gist_id}","starred_url":"https://api.github.com/users/lutoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lutoma/subscriptions","organizations_url":"https://api.github.com/users/lutoma/orgs","repos_url":"https://api.github.com/users/lutoma/repos","events_url":"https://api.github.com/users/lutoma/events{/privacy}","received_events_url":"https://api.github.com/users/lutoma/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T12:50:06Z","updated_at":"2016-08-17T12:50:06Z","body":"Oooh I see, I just now realized that actually part of the log was cut off, but because it started right with that line it looked like it was complete. Looks like the mistake was on my side indeed. Sorry for the noise, and thanks for the great backup tool :)."}}
{"actor":{"display_login":"lutoma"}}