From f6e0345b07e9da6824aac7dd1814eeeb68658038 Mon Sep 17 00:00:00 2001 From: erewhon Date: Sun, 12 Apr 2020 19:10:35 +0000 Subject: [PATCH 1/7] --- doc/forum/get_fails.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/forum/get_fails.mdwn diff --git a/doc/forum/get_fails.mdwn b/doc/forum/get_fails.mdwn new file mode 100644 index 0000000000..11ec18f6c7 --- /dev/null +++ b/doc/forum/get_fails.mdwn @@ -0,0 +1,9 @@ +Running + +```git annex get . --from=remote``` + +on a repository fails for particular annexed files. + +Any idea what the issue could be? + +Thanks From 4714d2cc5eea231e0bf88b083a6de625373e54ca Mon Sep 17 00:00:00 2001 From: erewhon Date: Sun, 12 Apr 2020 19:28:38 +0000 Subject: [PATCH 2/7] --- doc/forum/get_fails.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/forum/get_fails.mdwn b/doc/forum/get_fails.mdwn index 11ec18f6c7..9c7bdc8576 100644 --- a/doc/forum/get_fails.mdwn +++ b/doc/forum/get_fails.mdwn @@ -2,8 +2,10 @@ Running ```git annex get . --from=remote``` -on a repository fails for particular annexed files. +on a repository fails for particular annexed files despite the files being in the remote. -Any idea what the issue could be? +I tried running `git annex fsck` in the repository but that did not seem to help. + +Any idea what the issue could be? Thanks From 995d32778492996a14b2366c8b4ce9f4551b4bdb Mon Sep 17 00:00:00 2001 From: Ilya_Shlyakhter Date: Mon, 13 Apr 2020 00:53:59 +0000 Subject: [PATCH 3/7] Added a comment --- .../comment_1_9c81adaedf2b526f735ed39cb9d24709._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/forum/get_fails/comment_1_9c81adaedf2b526f735ed39cb9d24709._comment diff --git a/doc/forum/get_fails/comment_1_9c81adaedf2b526f735ed39cb9d24709._comment b/doc/forum/get_fails/comment_1_9c81adaedf2b526f735ed39cb9d24709._comment new file mode 100644 index 0000000000..9d2f7ff328 --- /dev/null +++ b/doc/forum/get_fails/comment_1_9c81adaedf2b526f735ed39cb9d24709._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="Ilya_Shlyakhter" + avatar="http://cdn.libravatar.org/avatar/1647044369aa7747829c38b9dcc84df0" + subject="comment 1" + date="2020-04-13T00:53:59Z" + content=""" +Running with `--verbose --debug` might give more info on the cause. +"""]] From ce664ebc7b27c75928c610f701e21b48db7cb338 Mon Sep 17 00:00:00 2001 From: "4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0" <4omecha@web> Date: Mon, 13 Apr 2020 09:13:51 +0000 Subject: [PATCH 4/7] Best way to restore objects with correct names w/o git log present? --- doc/forum.mdwn | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/doc/forum.mdwn b/doc/forum.mdwn index c6759aed07..7d0ecadd71 100644 --- a/doc/forum.mdwn +++ b/doc/forum.mdwn @@ -1,9 +1,18 @@ -This is a place to discuss using git-annex. -If you need help, advice, or anything, post about it here. +# Best way to extract git-annex object files (with correct names) in absence of git log? -But, please don't post bug reports here. Put them in [[bugs]]. -And please don't make wishlist requests here. Put them in [[todo]]. -(If you post bugs/todo here, it'll just get moved.) +**Issue**: -[[!inline pages="forum/* and !*/Discussion" archive=yes feedlimit=10 -rootpage=forum postformtext="Add a new thread titled:"]] + * any git log is missing, so restore not viable + * annex directory is empty, i.e. no symlinks (.git/annex present, though) + * annex A: .git/annex/transfer/download/failed contains files + * annex B: .git/annex/objects contains files + * git-annex fsck -A: checksums files present + * git-annex fix: no change + * git-annex sync [--content]: on B fetched objects, fails on A (iirc) + * git-annex find: nothing + * git-annex unused shows couple of files on annex A and B + * git-annex addunused && git-annex unlock makes them available but filename is missing: "unused.SHA256E-[...].pdf" + +**Question**: any chance of restoring those files with their correct names? + +Thanks i.a. for any recommendations. From 16f2ccfc7c777a1ef9591385d470a4f846b8c277 Mon Sep 17 00:00:00 2001 From: "4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0" <4omecha@web> Date: Mon, 13 Apr 2020 09:16:39 +0000 Subject: [PATCH 5/7] bad edit This reverts commit ce664ebc7b27c75928c610f701e21b48db7cb338 --- doc/forum.mdwn | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/doc/forum.mdwn b/doc/forum.mdwn index 7d0ecadd71..c6759aed07 100644 --- a/doc/forum.mdwn +++ b/doc/forum.mdwn @@ -1,18 +1,9 @@ -# Best way to extract git-annex object files (with correct names) in absence of git log? +This is a place to discuss using git-annex. +If you need help, advice, or anything, post about it here. -**Issue**: +But, please don't post bug reports here. Put them in [[bugs]]. +And please don't make wishlist requests here. Put them in [[todo]]. +(If you post bugs/todo here, it'll just get moved.) - * any git log is missing, so restore not viable - * annex directory is empty, i.e. no symlinks (.git/annex present, though) - * annex A: .git/annex/transfer/download/failed contains files - * annex B: .git/annex/objects contains files - * git-annex fsck -A: checksums files present - * git-annex fix: no change - * git-annex sync [--content]: on B fetched objects, fails on A (iirc) - * git-annex find: nothing - * git-annex unused shows couple of files on annex A and B - * git-annex addunused && git-annex unlock makes them available but filename is missing: "unused.SHA256E-[...].pdf" - -**Question**: any chance of restoring those files with their correct names? - -Thanks i.a. for any recommendations. +[[!inline pages="forum/* and !*/Discussion" archive=yes feedlimit=10 +rootpage=forum postformtext="Add a new thread titled:"]] From 25ac0ef160be6e94497009a7de03b1bb223a5704 Mon Sep 17 00:00:00 2001 From: "4omecha@fff0ca6fa5307d92706e5ee6812d8db8f8067df0" <4omecha@web> Date: Mon, 13 Apr 2020 09:19:23 +0000 Subject: [PATCH 6/7] Best way to restore objects with correct names w/o git log present? --- ...rect_names__41___in_absence_of_git_log.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/forum/Best_way_to_extract_git-annex_object_files___40__with_correct_names__41___in_absence_of_git_log.mdwn diff --git a/doc/forum/Best_way_to_extract_git-annex_object_files___40__with_correct_names__41___in_absence_of_git_log.mdwn b/doc/forum/Best_way_to_extract_git-annex_object_files___40__with_correct_names__41___in_absence_of_git_log.mdwn new file mode 100644 index 0000000000..7d0ecadd71 --- /dev/null +++ b/doc/forum/Best_way_to_extract_git-annex_object_files___40__with_correct_names__41___in_absence_of_git_log.mdwn @@ -0,0 +1,18 @@ +# Best way to extract git-annex object files (with correct names) in absence of git log? + +**Issue**: + + * any git log is missing, so restore not viable + * annex directory is empty, i.e. no symlinks (.git/annex present, though) + * annex A: .git/annex/transfer/download/failed contains files + * annex B: .git/annex/objects contains files + * git-annex fsck -A: checksums files present + * git-annex fix: no change + * git-annex sync [--content]: on B fetched objects, fails on A (iirc) + * git-annex find: nothing + * git-annex unused shows couple of files on annex A and B + * git-annex addunused && git-annex unlock makes them available but filename is missing: "unused.SHA256E-[...].pdf" + +**Question**: any chance of restoring those files with their correct names? + +Thanks i.a. for any recommendations. From e96d3b5776518f62ad3c867d05dab2e7c0879b09 Mon Sep 17 00:00:00 2001 From: "bjornw@6a7d7d0413efc7ed3bb44922586f040bb768b71c" Date: Mon, 13 Apr 2020 16:30:33 +0000 Subject: [PATCH 7/7] --- .../Updating_a_podcast_episode_checksum.mdwn | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 doc/forum/Updating_a_podcast_episode_checksum.mdwn diff --git a/doc/forum/Updating_a_podcast_episode_checksum.mdwn b/doc/forum/Updating_a_podcast_episode_checksum.mdwn new file mode 100644 index 0000000000..a34890155c --- /dev/null +++ b/doc/forum/Updating_a_podcast_episode_checksum.mdwn @@ -0,0 +1,27 @@ +I've been experimenting with `git-annex` as a podcatcher and really loving it so far. I've just hit one small snag I'm unclear on how best to resolve. + +I initially added a feed with a command like the following + +``` +git annex importfeed --fast --template='example-podcast/${itempubdate}-${itemtitle}${extension}' https://example.org/example.rss +git annex get example-podcast/* +``` + +This downloaded nearly all of the episodes of the podcast. Several episodes, however, failed with errors like the following: + +``` +get 2020_03_12-The_Covenanters.mp3 (from web...) + + verification of content failed + + Unable to access these remotes: web + + Try making some of these repositories available: + 00000000-0000-0000-0000-000000000001 -- web +failed +git-annex: get: 1 failed +``` + +Based on [this thread](https://git-annex.branchable.com/forum/Simple_question_about_web_remote/) I gather that the problem is that one file size was returned when I ran `importfeed` and another was returned on the subsequent `get`. What I'd like to download all of the episodes that failed to download (i.e. all of those that are not present in the annex right now) and update their checksums to match the file size currently returned by their respective URLs. + +I would prefer not to switch to a URL backend, because as I understand it this would mean that at some time in the future the file could be updated on the webserver and my local copy could be overwritten. For that reason, I would like to update the checksums for all podcast episodes this one time, so I can finish downloading the series and be assured that these versions of the episodes will be preserved.