Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File lock failed: Repository or object not found #97

Closed
LeavesInAutumn opened this issue Oct 18, 2020 · 1 comment
Closed

File lock failed: Repository or object not found #97

LeavesInAutumn opened this issue Oct 18, 2020 · 1 comment

Comments

@LeavesInAutumn
Copy link

Hi. I get a problem with file locking.
Here is my server config:

LFS_LISTEN="tcp://:9999"
LFS_HOST="192.168.2.36:9999"
LFS_CONTENTPATH="/usr/local/lib/git-lfs-server/content"
LFS_METADB="/usr/local/lib/git-lfs-server/lfs.db"
LFS_ADMINUSER="cc"
LFS_ADMINPASS="cc"

I can track/push/pull files normally with git lfs commands, but when I want to lock a file with:
$ git lfs lock image.jpg
It fails and here is the message:

Lock failed: Repository or object not found: http://192.168.2.36:9999/locks
Check that it exists and that you have proper access to it

Can somebody help me with this? Thanks.

@LeavesInAutumn
Copy link
Author

Well, I find the mistake.
The url I write in my client config file ".lfsconfig" is "http://192.168.2.36:9999". It should be "http://192.168.2.36:9999/info/lfs".
But it's weird, since I can normally use "git lfs pull/push" even with a wrong url.
Anyway, I can use file locking now~
Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant