Unable to parse HTTP response for POST http://gerrit/yt.git/info/lfs/objects/: unexpected EOF

gerrit 3.1.3+git lfs 3.5

yt@ytdeMacBook-Pro ~ % git clone "http://aa@10.20.0.48:8080/a/yt" && (cd "yt" && mkdir -p .git/hooks && curl -Lo `git rev-parse --git-dir`/hooks/commit-msg http://aa@10.20.0.48:8080/tools/hooks/commit-msg; chmod +x `git rev-parse --git-dir`/hooks/commit-msg)
Cloning into 'yt'...
Password for 'http://aa@10.20.0.48:8080': 
remote: Counting objects: 11, done
remote: Finding sources: 100% (11/11)
remote: Total 11 (delta 0), reused 9 (delta 0)
Unpacking objects: 100% (11/11), 192.44 KiB | 1.21 MiB/s, done.
Encountered 1 file that should have been a pointer, but wasn't:
lfs.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1790  100  1790    0     0  43963      0 --:--:-- --:--:-- --:--:-- 48378
yt@ytdeMacBook-Pro ~ % cd yt 
yt@ytdeMacBook-Pro yt % ll
total 456
drwxr-xr-x   6 yt  staff     192  3 11 16:02 ./
drwxr-x---+ 32 yt  staff    1024  3 11 16:02 ../
drwxr-xr-x  13 yt  staff     416  3 11 16:02 .git/
-rw-r--r--   1 yt  staff      42  3 11 16:02 .gitattributes
-rw-r--r--   1 yt  staff       5  3 11 16:02 a.log
-rw-r--r--   1 yt  staff  223449  3 11 16:02 lfs.jar
yt@ytdeMacBook-Pro yt % git lfs install 
Updated Git hooks.
Git LFS initialized.
yt@ytdeMacBook-Pro yt % git lfs ls-files
yt@ytdeMacBook-Pro yt % mv lfs.jar lfs1.jar
yt@ytdeMacBook-Pro yt % git add .
yt@ytdeMacBook-Pro yt % git lfs ls-files   
8704e1dfd3 * lfs1.jar
yt@ytdeMacBook-Pro yt % git commit -m "lfs"
[master b240994] lfs
 2 files changed, 3 insertions(+)
 delete mode 100644 lfs.jar
 create mode 100644 lfs1.jar
yt@ytdeMacBook-Pro yt % git remote -v
origin http://aa@10.20.0.48:8080/a/yt (fetch)
origin http://aa@10.20.0.48:8080/a/yt (push)
yt@ytdeMacBook-Pro yt % git push origin master
Remote "origin" does not support the Git LFS locking API. Consider disabling it with:
  $ git config lfs.http://aa@10.20.0.48:8080/a/yt.git/info/lfs.locksverify false
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.                                                                                                                                                     
batch response: Unable to parse HTTP response for POST http://aa@10.20.0.48:8080/a/yt.git/info/lfs/objects/batch: unexpected EOF
error: failed to push some refs to 'http://10.20.0.48:8080/a/yt'
yt@ytdeMacBook-Pro yt % git config lfs.http://aa@10.20.0.48:8080/a/yt.git/info/lfs.locksverify false
yt@ytdeMacBook-Pro yt % git push origin master                                                            
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.                                                                                                                                                     
batch response: Unable to parse HTTP response for POST http://aa@10.20.0.48:8080/a/yt.git/info/lfs/objects/batch: unexpected EOF
error: failed to push some refs to 'http://10.20.0.48:8080/a/yt'
yt@ytdeMacBook-Pro yt % GIT_TRACE=1 git push origin master                                             
16:05:58.668627 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/bin/git
16:05:58.668864 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/bin
16:05:58.669075 git.c:444               trace: built-in: git push origin master
16:05:58.669366 run-command.c:664       trace: run_command: GIT_DIR=.git git remote-http origin http://aa@10.20.0.48:8080/a/yt
16:05:58.671324 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git
16:05:58.671534 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core
16:05:58.671713 git.c:730               trace: exec: git-remote-http origin http://aa@10.20.0.48:8080/a/yt
16:05:58.671721 run-command.c:664       trace: run_command: git-remote-http origin http://aa@10.20.0.48:8080/a/yt
16:05:58.674316 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git-remote-http
16:05:58.674524 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core
16:05:58.724778 run-command.c:664       trace: run_command: 'git credential-osxkeychain get'
16:05:58.732175 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git
16:05:58.732450 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core
16:05:58.732620 git.c:730               trace: exec: git-credential-osxkeychain get
16:05:58.732628 run-command.c:664       trace: run_command: git-credential-osxkeychain get
16:05:58.777513 run-command.c:664       trace: run_command: 'git credential-osxkeychain store'
16:05:58.781023 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git
16:05:58.781278 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core
16:05:58.781466 git.c:730               trace: exec: git-credential-osxkeychain store
16:05:58.781474 run-command.c:664       trace: run_command: git-credential-osxkeychain store
16:05:58.805383 run-command.c:664       trace: run_command: .git/hooks/pre-push origin http://aa@10.20.0.48:8080/a/yt
16:05:58.809074 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Library/Developer/CommandLineTools/usr/libexec/git-core/git
16:05:58.809296 exec-cmd.c:238          trace: resolved executable dir: /Library/Developer/CommandLineTools/usr/libexec/git-core
16:05:58.809478 git.c:730               trace: exec: git-lfs pre-push origin http://aa@10.20.0.48:8080/a/yt
16:05:58.809485 run-command.c:664       trace: run_command: git-lfs pre-push origin http://aa@10.20.0.48:8080/a/yt
16:05:58.814411 trace git-lfs: exec: git 'version'
16:05:58.817248 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'remote' '-v'
16:05:58.819327 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'remote'
16:05:58.821352 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' 'HEAD' '--symbolic-full-name' 'HEAD'
16:05:58.823445 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' '--git-dir' '--show-toplevel'
16:05:58.825483 trace git-lfs: exec: git 'config' '--includes' '-l'
16:05:58.827409 trace git-lfs: exec: git 'rev-parse' '--is-bare-repository'
16:05:58.829311 trace git-lfs: exec: git 'config' '--includes' '-l' '--blob' ':.lfsconfig'
16:05:58.831288 trace git-lfs: exec: git 'config' '--includes' '-l' '--blob' 'HEAD:.lfsconfig'
16:05:58.833537 trace git-lfs: pre-push: refs/heads/master b240994c58a6cb87921ff03f5ec8a713ccb72a59 refs/heads/master c4ac85454b024bd9af28ea5b053bc413ea7d3f09
16:05:58.833579 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'show-ref'
16:05:58.835714 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'ls-remote' '--heads' '--tags' '-q' 'origin'
16:05:58.982784 trace git-lfs: tq: running as batched queue, batch size of 100
16:05:58.982906 trace git-lfs: run_command: git rev-list --objects --ignore-missing --stdin --
16:05:58.983587 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'cat-file' '--batch-check'
16:05:58.984173 trace git-lfs: exec: git '-c' 'filter.lfs.smudge=' '-c' 'filter.lfs.clean=' '-c' 'filter.lfs.process=' '-c' 'filter.lfs.required=false' 'rev-parse' '--git-common-dir'
16:05:58.986372 trace git-lfs: tq: sending batch of size 1                                                                                                                                                
16:05:58.986506 trace git-lfs: api: batch 1 files
16:05:58.986581 trace git-lfs: creds: git credential fill ("http", "10.20.0.48:8080", "")
16:05:58.986599 trace git-lfs: exec: git 'credential' 'fill'
16:05:59.005727 trace git-lfs: Filled credentials for http://aa@10.20.0.48:8080/a/yt
16:05:59.005930 trace git-lfs: exec: /usr/bin/security 'list-keychains'
16:05:59.014812 trace git-lfs: exec: /usr/bin/security 'find-certificate' '-a' '-p' '-c' '10.20.0.48:8080' '/Library/Keychains/System.keychain'
16:05:59.025488 trace git-lfs: exec: /usr/bin/security 'find-certificate' '-a' '-p' '-c' '10.20.0.48' '/Library/Keychains/System.keychain'
16:05:59.035584 trace git-lfs: HTTP: POST http://aa@10.20.0.48:8080/a/yt.git/info/lfs/objects/batch
16:05:59.089145 trace git-lfs: HTTP: 200
16:05:59.089165 trace git-lfs: creds: git credential approve ("http", "10.20.0.48:8080", "")
16:05:59.089216 trace git-lfs: exec: git 'credential' 'approve'
batch response: Unable to parse HTTP response for POST http://aa@10.20.0.48:8080/a/yt.git/info/lfs/objects/batch: unexpected EOF
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.
error: failed to push some refs to 'http://10.20.0.48:8080/a/yt'

对比了此文章中正确的日志


发现多了这个
"transfers":["lfs-standalone-file","basic","ssh"]
求解决方案!