{"action":"created","issue":{"url":"https://api.github.com/repos/restic/restic/issues/1023","repository_url":"https://api.github.com/repos/restic/restic","labels_url":"https://api.github.com/repos/restic/restic/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/restic/restic/issues/1023/comments","events_url":"https://api.github.com/repos/restic/restic/issues/1023/events","html_url":"https://github.com/restic/restic/issues/1023","id":235043493,"number":1023,"title":"Panic when backing up to Amazon S3","user":{"login":"gabesullice","id":4500265,"avatar_url":"https://avatars2.githubusercontent.com/u/4500265?v=3","gravatar_id":"","url":"https://api.github.com/users/gabesullice","html_url":"https://github.com/gabesullice","followers_url":"https://api.github.com/users/gabesullice/followers","following_url":"https://api.github.com/users/gabesullice/following{/other_user}","gists_url":"https://api.github.com/users/gabesullice/gists{/gist_id}","starred_url":"https://api.github.com/users/gabesullice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabesullice/subscriptions","organizations_url":"https://api.github.com/users/gabesullice/orgs","repos_url":"https://api.github.com/users/gabesullice/repos","events_url":"https://api.github.com/users/gabesullice/events{/privacy}","received_events_url":"https://api.github.com/users/gabesullice/received_events","type":"User","site_admin":false},"labels":[{"id":330189994,"url":"https://api.github.com/repos/restic/restic/labels/backend:s3","name":"backend:s3","color":"c7def8","default":false},{"id":95485885,"url":"https://api.github.com/repos/restic/restic/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-11T04:53:39Z","updated_at":"2017-06-11T16:32:22Z","closed_at":null,"body":"## Output of `restic version`\r\n```sh\r\nrestic 0.6.1 (v0.6.1-56-g0b55be25)\r\ncompiled with go1.8.3 on linux/amd64\r\n```\r\n\r\n## How did you start restic exactly? (Include the complete command line)\r\n```sh\r\n$ cat $HOME/scripts/restic-backup.sh\r\n#!/bin/bash\r\n\r\nRESTIC_REPOSITORY=\"s3:s3.amazonaws.com/<mybucket>\" \\\r\nAWS_ACCESS_KEY_ID=\"<my_key_id>\" \\\r\nAWS_SECRET_ACCESS_KEY=\"<my_access_key>\" \\\r\nrestic -p /home/gabe/restic-backup-password.txt \\\r\n  --exclude='/**/.data/mysql' \\\r\n  --exclude='/**/node_modules' \\\r\n  --exclude='/**/sites/*/files' \\\r\n  --exclude='*.tgz' \\\r\n  --exclude='*.tar.gz' \\\r\n  --exclude='*.sql.gz' \\\r\n  --exclude='*.sql' \\\r\n  --exclude='/**/.data/mysql' \\\r\n  backup \\\r\n  /home/gabe/projects/aten \\\r\n  /home/gabe/projects/contrib \\\r\n  /home/gabe/projects/github.com \\\r\n  /home/gabe/projects/bitbucket.org \\\r\n  /home/gabe/projects/drupal.org \\\r\n  /home/gabe/projects/go/src \\\r\n  /home/gabe/projects/presentations \\\r\n  /home/gabe/projects/devops \\\r\n  /home/gabe/Documents\r\n\r\n$ sudo ./scripts/restic-backup.sh\r\n```\r\n\r\n## What backend/server/service did you use?\r\nAmazon S3\r\n\r\n## Expected behavior\r\nI expected my backup to succeed? :man_shrugging: I know that's not incredibly useful. Happy to answer more questions though.\r\n\r\n## Actual behavior\r\n```sh\r\nscan [/home/gabe/projects/aten /home/gabe/projects/contrib /home/gabe/projects/github.com /home/gabe/projects/bitbucket.org /home/gabe/projects/drupal.org /home/gabe/projects/go/src /home/gabe/projects/presentations /home/gabe/projects/devops /home/gabe/Documents]\r\nscanned 172600 directories, 620951 files in 1:50\r\npanic: client.PutObject: Put https://s3-us-west-2.amazonaws.com/<mybucket>/restic/data/02bda62992525e37cd5a0f7920a5be25b916d541beeacd928b6b6be0147f6f9c: dial tcp: lookup s3-us-west-2.amazonaws.com on [2601:282:204:3d83:6a1:51ff:fee7:cc58]:53: read udp [2601:282:204:3d83:931b:80a:708a:3256]:48578->[2601:282:204:3d83:6a1:51ff:fee7:cc58]:53: i/o timeout\r\n\r\ngoroutine 52544 [running]:\r\nrestic/archiver.(*Archiver).saveChunk(0xc420337950, 0xc194a0, 0xc420018428, 0x0, 0x2e4d8, 0x1, 0xc421cca000, 0x2e4d8, 0x80000, 0xc420434840, ...)\r\n\tsrc/restic/archiver/archiver.go:164 +0x293\r\ncreated by restic/archiver.(*Archiver).SaveFile\r\n\tsrc/restic/archiver/archiver.go:238 +0x3a4\r\n```\r\n\r\n## Steps to reproduce the behavior\r\nI'm not sure if there's anything especially unique or complicated that I'm doing to get this bug to come up. This happens every time I run the backup script above.\r\n\r\n\r\n## Do you have any idea what may have caused this?\r\nThe only thing that I _might_ have done that was strange is killed the backup script with `^C` multiple times as I was attempting to get all my `--exclude`s correct. Perhaps this corrupted my bucket in some way? Sorry, wish I knew more about this to give a better bug report.\r\n"},"comment":{"url":"https://api.github.com/repos/restic/restic/issues/comments/307640490","html_url":"https://github.com/restic/restic/issues/1023#issuecomment-307640490","issue_url":"https://api.github.com/repos/restic/restic/issues/1023","id":307640490,"user":{"login":"gabesullice","id":4500265,"avatar_url":"https://avatars2.githubusercontent.com/u/4500265?v=3","gravatar_id":"","url":"https://api.github.com/users/gabesullice","html_url":"https://github.com/gabesullice","followers_url":"https://api.github.com/users/gabesullice/followers","following_url":"https://api.github.com/users/gabesullice/following{/other_user}","gists_url":"https://api.github.com/users/gabesullice/gists{/gist_id}","starred_url":"https://api.github.com/users/gabesullice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabesullice/subscriptions","organizations_url":"https://api.github.com/users/gabesullice/orgs","repos_url":"https://api.github.com/users/gabesullice/repos","events_url":"https://api.github.com/users/gabesullice/events{/privacy}","received_events_url":"https://api.github.com/users/gabesullice/received_events","type":"User","site_admin":false},"created_at":"2017-06-11T16:32:22Z","updated_at":"2017-06-11T16:32:22Z","body":"`fix-1013` did not resolve the issue. Here is the output of netstat with that version:\r\n\r\n```\r\ntcp        0      0 192.168.1.6:37224       50.31.166.176:443       ESTABLISHED\r\ntcp        0      0 192.168.1.6:44730       34.208.216.244:443      ESTABLISHED\r\ntcp        0 1111233 192.168.1.6:33052       54.231.176.208:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:57790       52.218.160.52:443       TIME_WAIT  \r\ntcp        0      0 192.168.1.6:57778       52.218.160.52:443       TIME_WAIT  \r\ntcp        0      0 192.168.1.6:44078       151.101.68.133:443      TIME_WAIT  \r\ntcp        0 292129 192.168.1.6:41664       54.231.168.212:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:57780       52.218.160.52:443       TIME_WAIT  \r\ntcp        0      0 192.168.1.6:55476       216.58.217.46:443       ESTABLISHED\r\ntcp        0      0 192.168.1.6:57786       52.218.160.52:443       TIME_WAIT  \r\ntcp        0 830561 192.168.1.6:33064       54.231.176.208:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:48872       192.30.253.125:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:58938       192.30.253.116:443      TIME_WAIT  \r\ntcp        0 339385 192.168.1.6:33048       54.231.176.208:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:44076       151.101.68.133:443      TIME_WAIT  \r\ntcp        0      0 192.168.1.6:48612       192.30.253.125:443      ESTABLISHED\r\ntcp        0 165266 192.168.1.6:33050       54.231.176.208:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:44068       151.101.68.133:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:48884       192.30.253.125:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:44070       151.101.68.133:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:44264       198.252.206.25:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:51920       34.223.242.85:443       ESTABLISHED\r\ntcp        0      0 192.168.1.6:47980       52.35.123.126:443       ESTABLISHED\r\ntcp        0 297857 192.168.1.6:55570       52.218.208.88:443       FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:51922       34.223.242.85:443       ESTABLISHED\r\ntcp        0 462537 192.168.1.6:36020       52.218.160.44:443       FIN_WAIT1  \r\ntcp        0      1 192.168.1.6:42924       54.231.168.164:443      FIN_WAIT1  \r\ntcp        0 443921 192.168.1.6:55568       52.218.208.88:443       FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:40374       192.30.253.113:443      TIME_WAIT  \r\ntcp        0 307881 192.168.1.6:55566       52.218.208.88:443       FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:41740       52.25.204.247:443       ESTABLISHED\r\ntcp        0      0 192.168.1.6:44072       151.101.68.133:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:50782       54.230.120.123:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:44608       34.208.216.244:443      ESTABLISHED\r\ntcp        0      0 192.168.1.6:57782       52.218.160.52:443       TIME_WAIT  \r\ntcp        0 667313 192.168.1.6:33066       54.231.176.208:443      FIN_WAIT1  \r\ntcp        0      0 192.168.1.6:43768       52.39.120.161:443       ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36598 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:46524 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:45284 2607:f8b0:4001:c0c::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:45850 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:45874 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36512 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36596 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36014 2607:f8b0:400e:c04::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36480 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36496 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36486 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36010 2607:f8b0:400e:c04::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:46522 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       0      0 2601:282:204:3d83:36494 2607:f8b0:4005:80a::443 ESTABLISHED\r\ntcp6       1      1 2601:282:204:3d83:36478 2607:f8b0:4005:80a::443 CLOSING    \r\nudp        0      0 0.0.0.0:5353            0.0.0.0:*                          \r\nudp        0      0 0.0.0.0:5353            0.0.0.0:*                          \r\nudp6       0      0 :::5353                 :::*                               \r\nudp6       0      0 :::5353                 :::*                               \r\nudp6       0      0 :::5353                 :::*                               \r\nudp6       0      0 :::5353                 :::*                               \r\nudp6       0      0 :::5353                 :::*                               \r\nudp6       0      0 :::5353                 :::*                               \r\n```"}}
{"actor":{"display_login":"gabesullice"}}