{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/1316","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/1316/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1316/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/1316/events","html_url":"https://github.com/borgbackup/borg/issues/1316","id":165043031,"number":1316,"title":"flush of closed file","user":{"login":"patatetom","id":14196171,"avatar_url":"https://avatars.githubusercontent.com/u/14196171?v=3","gravatar_id":"","url":"https://api.github.com/users/patatetom","html_url":"https://github.com/patatetom","followers_url":"https://api.github.com/users/patatetom/followers","following_url":"https://api.github.com/users/patatetom/following{/other_user}","gists_url":"https://api.github.com/users/patatetom/gists{/gist_id}","starred_url":"https://api.github.com/users/patatetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatetom/subscriptions","organizations_url":"https://api.github.com/users/patatetom/orgs","repos_url":"https://api.github.com/users/patatetom/repos","events_url":"https://api.github.com/users/patatetom/events{/privacy}","received_events_url":"https://api.github.com/users/patatetom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/borgbackup/borg/labels/bug","name":"bug","color":"dd0000"},{"url":"https://api.github.com/repos/borgbackup/borg/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-12T10:16:33Z","updated_at":"2016-07-12T10:51:11Z","closed_at":"2016-07-12T10:38:48Z","body":"hi,\r\n\r\nrecent upgrade of borg :\r\n\r\n```\r\n~ # strings pacman.log | grep borg\r\n[2016-04-15 15:55] [PACMAN] Running 'pacman -S borg'\r\n[2016-04-15 15:55] [ALPM] installed borg (1.0.1-1)\r\n[2016-04-25 09:29] [ALPM] upgraded borg (1.0.1-1 -> 1.0.2-1)\r\n[2016-06-01 10:12] [ALPM] upgraded borg (1.0.2-1 -> 1.0.3-1)\r\n[2016-07-11 13:22] [ALPM] upgraded borg (1.0.3-1 -> 1.0.5-1)\r\n```\r\n\r\nand now backup fails :\r\n\r\n```\r\n~ $ borg list /backup  ## /backup is cifs (w$ server)\r\nEnter passphrase for key /backup: \r\n20160613                             Mon, 2016-06-13 11:34:32\r\n20160615                             Wed, 2016-06-15 15:15:19\r\n20160621                             Tue, 2016-06-21 09:57:41\r\n\r\n\r\n\r\n~ $ borg info /backup::20160621\r\nEnter passphrase for key /backup: \r\nName: 20160621\r\nFingerprint: 40271f59866f87c293a8f0634f4ebca9f617ce8ad9d02041bc862d8485ef470\r\nHostname: archlinux\r\nUsername: user\r\nTime (start): Tue, 2016-06-21 09:57:41\r\nTime (end):   Tue, 2016-06-21 09:58:50\r\nCommand line: /usr/bin/borg create -v --stats /backup::20160621 /home/user\r\nNumber of files: 134298\r\n\r\n                       Original size      Compressed size    Deduplicated size\r\nThis archive:                7.75 GB              7.76 GB             89.27 MB\r\nAll archives:               23.06 GB             23.08 GB              7.37 GB\r\n\r\n                       Unique chunks         Total chunks\r\nChunk index:                   93078               399192\r\n\r\n\r\n\r\n~ $ borg create -v --stats /backup::20160712 ~\r\nEnter passphrase for key /backup: \r\nException ignored in: <bound method Repository.__del__ of <Repository /backup>>\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 72, in __del__\r\n    self.close()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 189, in close\r\n    self.io.close()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 532, in close\r\n    self.close_segment()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 752, in close_segment\r\n    self._write_fd.flush()\r\nValueError: flush of closed file\r\nLocal Exception.\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 81, in wrapper\r\n    return method(self, args, repository=repository, **kwargs)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 247, in do_create\r\n    create_inner(archive, cache)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 219, in create_inner\r\n    read_special=args.read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 301, in _process\r\n    read_special=read_special, dry_run=dry_run)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 275, in _process\r\n    status = archive.process_file(path, st, cache, self.ignore_inode)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archive.py\", line 666, in process_file\r\n    chunks.append(cache.add_chunk(self.key.id_hash(chunk), chunk, self.stats))\r\n  File \"/usr/lib/python3.5/site-packages/borg/cache.py\", line 365, in add_chunk\r\n    self.repository.put(id, data, wait=False)\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 481, in put\r\n    segment, offset = self.io.write_put(id, data)\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 721, in write_put\r\n    fd = self.get_write_fd(raise_full=raise_full)\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 608, in get_write_fd\r\n    self.close_segment()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 759, in close_segment\r\n    sync_dir(os.path.dirname(self._write_fd.name))\r\n  File \"/usr/lib/python3.5/site-packages/borg/platform.py\", line 9, in sync_dir\r\n    os.fsync(fd)\r\nOSError: [Errno 22] Invalid argument\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 1601, in main\r\n    exit_code = archiver.run(args)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 1538, in run\r\n    return args.func(args)\r\n  File \"/usr/lib/python3.5/site-packages/borg/archiver.py\", line 81, in wrapper\r\n    return method(self, args, repository=repository, **kwargs)\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 94, in __exit__\r\n    self.close()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 189, in close\r\n    self.io.close()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 532, in close\r\n    self.close_segment()\r\n  File \"/usr/lib/python3.5/site-packages/borg/repository.py\", line 752, in close_segment\r\n    self._write_fd.flush()\r\nValueError: flush of closed file\r\n\r\nPlatform: Linux archlinux 4.4.14-1-lts #1 SMP Fri Jun 24 21:35:25 CEST 2016 x86_64 \r\nLinux: arch  \r\nBorg: 1.0.5  Python: CPython 3.5.2\r\nPID: 8978  CWD: /home/user\r\nsys.argv: ['/usr/bin/borg', 'create', '-v', '--stats', '/backup::20160712', '/home/user']\r\nSSH_ORIGINAL_COMMAND: None\r\n\r\n\r\n\r\n~ $ borg list /backup/\r\nFailed to create/acquire the lock /backup/lock.exclusive (timeout).\r\n```"},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/232005467","html_url":"https://github.com/borgbackup/borg/issues/1316#issuecomment-232005467","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1316","id":232005467,"user":{"login":"patatetom","id":14196171,"avatar_url":"https://avatars.githubusercontent.com/u/14196171?v=3","gravatar_id":"","url":"https://api.github.com/users/patatetom","html_url":"https://github.com/patatetom","followers_url":"https://api.github.com/users/patatetom/followers","following_url":"https://api.github.com/users/patatetom/following{/other_user}","gists_url":"https://api.github.com/users/patatetom/gists{/gist_id}","starred_url":"https://api.github.com/users/patatetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatetom/subscriptions","organizations_url":"https://api.github.com/users/patatetom/orgs","repos_url":"https://api.github.com/users/patatetom/repos","events_url":"https://api.github.com/users/patatetom/events{/privacy}","received_events_url":"https://api.github.com/users/patatetom/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T10:51:11Z","updated_at":"2016-07-12T10:51:11Z","body":"ok, thanks."}}
{"actor":{"display_login":"patatetom"}}