From cfe960bf5e5f85bd504ea6ce6361dbd4f8edb2fd Mon Sep 17 00:00:00 2001 From: "beryllium@5bc3c32eb8156390f96e363e4ba38976567425ec" Date: Thu, 30 Jan 2025 02:35:09 +0000 Subject: [PATCH 1/4] --- .../git-lfs_special_insists_on_https.mdwn | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 doc/bugs/git-lfs_special_insists_on_https.mdwn diff --git a/doc/bugs/git-lfs_special_insists_on_https.mdwn b/doc/bugs/git-lfs_special_insists_on_https.mdwn new file mode 100644 index 0000000000..62c62f438a --- /dev/null +++ b/doc/bugs/git-lfs_special_insists_on_https.mdwn @@ -0,0 +1,68 @@ +### Please describe the problem. + +Trying to copy annexed files to an lfs server via the configured http schemed url results in an error of this form: + +[[!format sh """ +$ git-annex copy -t lfsonly +copy mod_access_compat.so (HttpExceptionRequest Request { + host = "computer-ubul.local" + port = 5965 + secure = True + requestHeaders = [("Accept","application/vnd.git-lfs+json"),("Content-Type","application/vnd.git-lfs+json"),("User-Agent","git-annex/10.20241031-1~ndall+1")] + path = ".git/info/lfs/objects/batch" + queryString = "" + method = "POST" + proxy = Nothing + rawBody = False + redirectCount = 10 + responseTimeout = ResponseTimeoutDefault + requestVersion = HTTP/1.1 + proxySecureMode = ProxySecureWithConnect +} + (InternalException (HandshakeFailed (Error_Packet_Parsing "Failed reading: invalid header type: 72\nFrom:\theader\n\n")))) failed +copy mod_autoindex.so (HttpExceptionRequest Request { + host = "computer-ubul.local" + port = 5965 + secure = True + requestHeaders = [("Accept","application/vnd.git-lfs+json"),("Content-Type","application/vnd.git-lfs+json"),("User-Agent","git-annex/10.20241031-1~ndall+1")] + path = ".git/info/lfs/objects/batch" + queryString = "" + method = "POST" + proxy = Nothing + rawBody = False + redirectCount = 10 + responseTimeout = ResponseTimeoutDefault + requestVersion = HTTP/1.1 + proxySecureMode = ProxySecureWithConnect +} + (InternalException (HandshakeFailed (Error_Packet_Parsing "Failed reading: invalid header type: 72\nFrom:\theader\n\n")))) failed +copy: 2 failed +"""]] + +From what I can see, there is no way to work around this. Unlike, for example, the S3 special remotes, initremote doesn't take a protocol=http setting. + + +### What steps will reproduce the problem? + +[[!format sh """ +$ git-annex initremote lfsonly type=git-lfs encryption=none url=http://computer-ubul.local:5965/ +initremote lfsonly ok +(recording state in git...) +$ git config annex.security.allowed-ip-addresses 172.17.0.1 # required to overcome ConnectionRestricted error +$ git-annex copy -t lfsonly +... eror from above +"""]] + +### What version of git-annex are you using? On what operating system? + +git-annex/10.20241031-1~ndall+1 on Ubuntu 22.04 LTS: + +Linux computer-ubul 6.8.0-40-generic #40~22.04.3-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 30 17:30:19 UTC 2 x86_64 x86_64 x86_64 GNU/Linux + +### Please provide any additional information below. + +Nil + +### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) + +Love git-annex. Long time supporter. From 0afb8eab26e6f76d63a890e7ce724ccc3b026adc Mon Sep 17 00:00:00 2001 From: nobodyinperson Date: Thu, 30 Jan 2025 12:59:00 +0000 Subject: [PATCH 2/4] --- doc/forum/Forcing_offline_behavior.mdwn | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/forum/Forcing_offline_behavior.mdwn diff --git a/doc/forum/Forcing_offline_behavior.mdwn b/doc/forum/Forcing_offline_behavior.mdwn new file mode 100644 index 0000000000..a11989e06e --- /dev/null +++ b/doc/forum/Forcing_offline_behavior.mdwn @@ -0,0 +1 @@ +It seems that things like `git annex wanted . present` cause network activity, maybe git-annex fetches remotes and tries to look up IDs and such. I didn't find a general flag to disables this. Something like `--offline` would be nice for scripts in networks that might hang indefinitely in certain situations. Does this exist? 🤔 From 0d339831410e1468e153ada66d25bf4bb2d74113 Mon Sep 17 00:00:00 2001 From: dmcardle Date: Thu, 30 Jan 2025 13:56:30 +0000 Subject: [PATCH 3/4] Added a comment --- .../comment_2_f65aeea70b85745de1fbecb6fcce66d1._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/forum/b2_rclone_initremote_failed__58___empty_folders/comment_2_f65aeea70b85745de1fbecb6fcce66d1._comment diff --git a/doc/forum/b2_rclone_initremote_failed__58___empty_folders/comment_2_f65aeea70b85745de1fbecb6fcce66d1._comment b/doc/forum/b2_rclone_initremote_failed__58___empty_folders/comment_2_f65aeea70b85745de1fbecb6fcce66d1._comment new file mode 100644 index 0000000000..85b5e78c61 --- /dev/null +++ b/doc/forum/b2_rclone_initremote_failed__58___empty_folders/comment_2_f65aeea70b85745de1fbecb6fcce66d1._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="dmcardle" + avatar="http://cdn.libravatar.org/avatar/b79468a0d03ec3ec7acbae547c4fa994" + subject="comment 2" + date="2025-01-30T13:56:30Z" + content=""" +I just created rclone [issue #8349](https://github.com/rclone/rclone/issues/8349) to track this. +"""]] From eab8aec4f01e843e4fe479c751f04b723d6239ee Mon Sep 17 00:00:00 2001 From: matrss Date: Thu, 30 Jan 2025 14:50:58 +0000 Subject: [PATCH 4/4] --- doc/git-annex.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn index 869686883a..620aee61cd 100644 --- a/doc/git-annex.mdwn +++ b/doc/git-annex.mdwn @@ -341,25 +341,25 @@ content from the key-value store. Initializes a new cluster. - See [[git-annex-initcluster](1) for details. + See [[git-annex-initcluster]](1) for details. * `updatecluster` Update records of cluster nodes. - See [[git-annex-updatecluster](1) for details. + See [[git-annex-updatecluster]](1) for details. * `extendcluster` Adds an additional gateway to a cluster. - See [[git-annex-extendcluster](1) for details. + See [[git-annex-extendcluster]](1) for details. * `updateproxy` Update records with proxy configuration. - See [[git-annex-updateproxy](1) for details. + See [[git-annex-updateproxy]](1) for details. * `schedule repository [expression]`