Getting Error 404 batch response: Repository test1 not found B/s

25 views
Skip to first unread message

Rahul

unread,
Apr 16, 2020, 3:29:31 PM4/16/20
to Repo and Gerrit Discussion
 Hello Gerrit experts

Need help again on LFS.

Gerrit installed
LFS is configured
All settings are done on the All Projects
I'm able to see the LFS properties when i create a new repository

When i do a git push before enabling LFS it works as expected.

git lfs track *.bin
git lfs status

On branch master
Objects to be pushed to origin/master:

        cat.bin (77cfb5e03ae1e80bfc2f2c951f28f175ff4c5f11a03ec8c96b7e7d1a73c3dba3)
        dog.bin (3decdf446f45ed93ce8ba24b1850a2a36e5d5285ec46652d9f9d62c3c4436d4c)

Objects to be committed:

        .lfsconfig (Git: c5cfa3d)

Objects not staged for commit:


Git push fails with:

***************
GIT_TRACE=1 git lfs push origin master --all
19:18:22.752832 git.c:654               trace: exec: git-lfs push origin master --all
19:18:22.752873 run-command.c:643       trace: run_command: git-lfs push origin master --all
19:18:22.756901 trace git-lfs: exec: git 'version'
19:18:22.760389 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'
19:18:22.763742 trace git-lfs: exec: git 'config' '-l'
19:18:22.765271 trace git-lfs: exec: git 'config' '-l' '-f' '/home/test01/test/.lfsconfig'
19:18:22.767023 trace git-lfs: Upload refs [master] to remote origin
19:18:22.899624 trace git-lfs: creds: git credential fill ("http", "ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080", "")
19:18:22.902235 git.c:415               trace: built-in: git credential fill
Password for 'http://tes...@ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080':
19:18:28.620737 trace git-lfs: Filled credentials for http://tes...@ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080/test.git/info/lfs
19:18:28.621142 trace git-lfs: HTTP: POST http://tes...@ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080/test.git/info/lfs/locks/verify
19:18:28.627987 trace git-lfs: HTTP: 200
19:18:28.628004 trace git-lfs: creds: git credential approve ("http", "ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080", "")
19:18:28.629617 git.c:415               trace: built-in: git credential approve
19:18:28.630459 trace git-lfs: HTTP: {}
19:18:28.630680 trace git-lfs: tq: running as batched queue, batch size of 100
19:18:28.630768 trace git-lfs: run_command: git rev-list --stdin --objects --do-walk --
19:18:28.637254 trace git-lfs: tq: sending batch of size 2
19:18:28.637453 trace git-lfs: api: batch 2 files
19:18:28.637541 trace git-lfs: creds: git credential cache ("http", "ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080", "")
19:18:28.637548 trace git-lfs: Filled credentials for http://tes...@ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080/test.git/info/lfs
19:18:28.637558 trace git-lfs: HTTP: POST http://tes...@ec2-18-217-2-250.us-east-2.compute.amazonaws.com:8080/test.git/info/lfs/objects/batch
19:18:28.645250 trace git-lfs: HTTP: 404
19:18:28.645285 trace git-lfs: HTTP: {"message":"Repository test not found"}
19:18:28.645313 trace git-lfs: api error: Repository test not found
batch response: Repository test not found
***************

I ran a rest api to fech all projects and that list the test project

****************
)
]
}'
{
"All-Projects": {
"id": "All-Projects",
"description": "Access inherited by all other projects.",
"state": "ACTIVE",
"web_links": [
  {
    "name": "browse",
    "url": "/plugins/gitiles/All-Projects",
    "target": "_blank"
  }
]
},
"All-Users": {
"id": "All-Users",
"description": "Individual user settings and preferences.",
"state": "ACTIVE",
"web_links": [
  {
    "name": "browse",
    "url": "/plugins/gitiles/All-Users",
    "target": "_blank"
  }
]
},
"test": {
"id": "test",
"state": "ACTIVE",
"web_links": [
  {
    "name": "browse",
    "url": "/plugins/gitiles/test",
    "target": "_blank"
  }
]
}
}
****************************************

However if u try to get the http details for the project using the rest call

It gives Not Found

Is this some defect in gerrit???
 Is there a solution to this issue.

Thank you,
Rahul




Reply all
Reply to author
Forward
0 new messages