nexus gitlfs problem

539 views
Skip to first unread message

ciphe...@gmail.com

unread,
Aug 1, 2018, 10:51:19 PM8/1/18
to Nexus Users
We want depoly nexus oss for gitlfs repository but it's can not work as can fairly be expected.
'''
apt-get install git-lfs
git lfs install
cd project
git config -f .lfsconfig lfs.url http://mynexus.xxxx.com/repositpory/testlfs/
git lfs track '*.jpg'
git add .
git commit -m "testlfs"
git push origin master
'''
It reuturn error like this
'''
batch response: Repository or object not found: http://mynexus.xxxx.com/repository/testlfs/objects/batch
Check that it exists and that you have proper access to it
'''
I check gitlab have support lfs.
I missing some important steps?
Do anyone have the same problem? 
Thanks a lot!

Rich Seddon

unread,
Aug 2, 2018, 12:09:11 AM8/2/18
to Nexus Users
You need to add "/info/lfs" onto the end of the repository URL you pass into "git config", as per the documentation:

Russ Tremain

unread,
Sep 9, 2018, 4:51:25 PM9/9/18
to Rich Seddon, Nexus Users
Hi Rich,

this was helpful to me, but...

I think this could be made much clearer in the LFS setup page.

I copied the url from the nexus repository setup screen, which is what one would expect, but it does not include the "info/lfs" suffix.

The error you get when you try to push is also not helpful:

% git lfs push origin master --all --dry-run
Username for 'http://localhost:8081': admin
Password for 'http://admin@localhost:8081':
Remote "origin" does not support the LFS locking API. Consider disabling it with:
  $ git config lfs.http://localhost:8081/repository/git-lfs-local.locksverify false
push 6fe2e48ef494b7855e6d8f93c59cf38d38350274e304a9ac35102d5c365ee002 => binary.jpg

% git lfs push origin master --all
Username for 'http://localhost:8081': admin                                                                                                                      
Password for 'http://admin@localhost:8081':
batch response: Repository or object not found: http://localhost:8081/repository/git-lfs-local/objects/batch

Check that it exists and that you have proper access to it
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done

I saw the suffix in the original github setup, but didn't realize it would be required for other LFS storage managers (and of course missed it in the setup example because it scrolled off my browser screen).

Love that you guys are supporting git LFS!

thanks,
-Russ
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/5f220e0e-86c4-4bce-b11b-5d7d9740868c%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Reply all
Reply to author
Forward
0 new messages