{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/3876","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/3876/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/3876/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/3876/events","html_url":"https://github.com/borgbackup/borg/issues/3876","id":330245739,"node_id":"MDU6SXNzdWUzMzAyNDU3Mzk=","number":3876,"title":"AttributeError: 'bytes' object has no attribute 'items' in src/borg/item.pyx\", line 60","user":{"login":"barrio","id":4562629,"node_id":"MDQ6VXNlcjQ1NjI2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/4562629?v=4","gravatar_id":"","url":"https://api.github.com/users/barrio","html_url":"https://github.com/barrio","followers_url":"https://api.github.com/users/barrio/followers","following_url":"https://api.github.com/users/barrio/following{/other_user}","gists_url":"https://api.github.com/users/barrio/gists{/gist_id}","starred_url":"https://api.github.com/users/barrio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrio/subscriptions","organizations_url":"https://api.github.com/users/barrio/orgs","repos_url":"https://api.github.com/users/barrio/repos","events_url":"https://api.github.com/users/barrio/events{/privacy}","received_events_url":"https://api.github.com/users/barrio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-06-07T12:15:15Z","updated_at":"2018-06-07T18:11:15Z","closed_at":null,"author_association":"NONE","body":"I'm getting this exception when trying to restore a root backup from external hdd, no matter wether I use pip or github install. \r\n```\r\nsudo borg extract -p /run/media/barrios/TOSHIBA\\ EXT/vaio-manjaro-backup::root-2018-06-07\r\nCalculating size\r\nLocal Exception\r\nTraceback (most recent call last):\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 4101, in main\r\n    exit_code = archiver.run(args)\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 4033, in run\r\n    return set_ec(func(args))\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 152, in wrapper\r\n    return method(self, args, repository=repository, **kwargs)\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 165, in wrapper\r\n    return method(self, args, repository=repository, manifest=manifest, key=key, archive=archive, **kwargs)\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 708, in do_extract\r\n    extracted_size = sum(item.get_size(hardlink_masters) for item in archive.iter_items(filter))\r\n  File \"/home/barrios/apps/borg/src/borg/archiver.py\", line 708, in <genexpr>\r\n    extracted_size = sum(item.get_size(hardlink_masters) for item in archive.iter_items(filter))\r\n  File \"/home/barrios/apps/borg/src/borg/archive.py\", line 447, in iter_items\r\n    filter=lambda item: self.item_filter(item, filter)):\r\n  File \"/home/barrios/apps/borg/src/borg/archive.py\", line 220, in unpack_many\r\n    items = [Item(internal_dict=item) for item in unpacker]\r\n  File \"/home/barrios/apps/borg/src/borg/archive.py\", line 220, in <listcomp>\r\n    items = [Item(internal_dict=item) for item in unpacker]\r\n  File \"src/borg/item.pyx\", line 50, in borg.item.PropDict.__init__\r\n  File \"src/borg/item.pyx\", line 60, in borg.item.PropDict.update_internal\r\nAttributeError: 'bytes' object has no attribute 'items'\r\n\r\nPlatform: Linux manjaro 4.14.16-1-MANJARO #1 SMP PREEMPT Wed Jan 31 19:41:43 UTC 2018 x86_64\r\nLinux: arch Manjaro Linux\r\nBorg: 1.2.0.dev519+gc97006ec.d20180607  Python: CPython 3.6.5\r\nPID: 14976  CWD: /\r\nsys.argv: ['/home/barrios/apps/borg/borg-env/bin/borg', 'extract', '-p', '/run/media/barrios/TOSHIBA EXT/vaio-manjaro-backup::root-2018-06-07']\r\nSSH_ORIGINAL_COMMAND: None\r\n```"},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/395514353","html_url":"https://github.com/borgbackup/borg/issues/3876#issuecomment-395514353","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/3876","id":395514353,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTUxNDM1Mw==","user":{"login":"barrio","id":4562629,"node_id":"MDQ6VXNlcjQ1NjI2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/4562629?v=4","gravatar_id":"","url":"https://api.github.com/users/barrio","html_url":"https://github.com/barrio","followers_url":"https://api.github.com/users/barrio/followers","following_url":"https://api.github.com/users/barrio/following{/other_user}","gists_url":"https://api.github.com/users/barrio/gists{/gist_id}","starred_url":"https://api.github.com/users/barrio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrio/subscriptions","organizations_url":"https://api.github.com/users/barrio/orgs","repos_url":"https://api.github.com/users/barrio/repos","events_url":"https://api.github.com/users/barrio/events{/privacy}","received_events_url":"https://api.github.com/users/barrio/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T18:11:15Z","updated_at":"2018-06-07T18:11:15Z","author_association":"NONE","body":"I ran borg create for / from within the running system on ext4 without snapshot, could this lead to a corrupted backup which in turn may have caused the exception? And then -silly enough- I tried to restore again from within the running system. As far as I recall this threw an exception when it came to restore the venv borg was running from... Maybe I try create & extract when the system is down from another install."}}
{"actor":{"display_login":"barrio"}}