Git LFS files not getting pushed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Git LFS files not getting pushed

darignac
Hi there,

I'm using Artifactory 4.7.6 and try to push a file to a Git LFS repository.
Unfortunately this fails when doing the git push. Someone at Github suggested to only run the git hook for investigating the problem, which fails with the same issue:

echo "refs/heads/master 66e4deb6880b6cbed3a0956cb2279fed05168ebe refs/head/master 0000000000000000000000000000000000000000" | GIT_TRACE=2 GIT_CURL_VERBOSE=1 git lfs pre-push origin

16:30:49.740242 git.c:563               trace: exec: 'git-lfs' 'pre-push' 'origin'
16:30:49.740742 run-command.c:336       trace: run_command: 'git-lfs' 'pre-push' 'origin'
trace git-lfs: run_command: git rev-list --objects 66e4deb6880b6cbed3a0956cb2279fed05168ebe --not --remotes=origin --
trace git-lfs: run_command: git cat-file --batch-check
trace git-lfs: run_command: git cat-file --batch
trace git-lfs: run_command: 'git' config -l
trace git-lfs: tq: starting 3 transfer workers
trace git-lfs: tq: running as batched queue, batch size of 100
trace git-lfs: tq: sending batch of size 1
trace git-lfs: api: batch 1 files
trace git-lfs: HTTP: POST https://customserver.com/artifactory/api/lfs/demo-gitlfs/objects/batch
> POST /artifactory/api/lfs/demo-gitlfs/objects/batch HTTP/1.1
> Host: customserver.com
> Accept: application/vnd.git-lfs+json; charset=utf-8
> Content-Type: application/vnd.git-lfs+json; charset=utf-8
> User-Agent: git-lfs/1.2.0 (GitHub; windows amd64; go 1.6.1; git 386c5d8)
>
{"objects":[{"oid":"5c2ed4979b8cf8dcf9ff5b644574884d95fda2b2a4605274930a35e8b34fd5c6","size":349815}],"operation":"upload"}trace git-lfs: HTTP: 200


< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Content-Type: application/vnd.git-lfs+json
< Date: Thu, 26 May 2016 14:30:51 GMT
< Server: Artifactory/4.7.6
<
trace git-lfs: HTTP: {
  "objects" : [ {
    "oid" : "5c2ed4979b8cf8dcf9ff5b644574884d95fda2b2a4605274930a35e8b34fd5c6",
    "size" : -1
  } ]
}
{
  "objects" : [ {
    "oid" : "5c2ed4979b8cf8dcf9ff5b644574884d95fda2b2a4605274930a35e8b34fd5c6",
    "size" : -1
  } ]
}trace git-lfs: HTTP:
Git LFS: (0 of 1 files, 1 skipped) 0 B / 341.62 KB


How do I find out, why the file is skipped? I'm using cygwin in Windows, it also fails for MinGW and when using SourceTree.

Thanks for any help!

All the best
-Alex
Reply | Threaded
Open this post in threaded view
|

Re: Git LFS files not getting pushed

Phani
I am running into the same issue with Artifactory version 4.7.0. Any solution to resolve this issue.

$ echo “refs/heads/master fb262935014f354a1563e7305f6efbecfa9d2e8f refs/heads/master 0000000000000000000000000000000000000000” | GIT_TRACE=1 GIT_CURL_VERBOSE=1 git lfs pre-push origin
12:44:48.268830 git.c:563               trace: exec: 'git-lfs' 'pre-push' 'origin'
12:44:48.268983 run-command.c:336       trace: run_command: 'git-lfs' 'pre-push' 'origin'
trace git-lfs: run_command: git rev-list --objects fb262935014f354a1563e7305f6efbecfa9d2e8f --not --remotes=origin --
trace git-lfs: run_command: git cat-file --batch-check
trace git-lfs: run_command: git cat-file --batch
trace git-lfs: run_command: 'git' config -l -f .lfsconfig
trace git-lfs: run_command: 'git' config -l
trace git-lfs: tq: running as batched queue, batch size of 100
trace git-lfs: tq: sending batch of size 1
trace git-lfs: api: batch 1 files
trace git-lfs: HTTP: POST http://artifactory-server/artifactory/api/lfs/gitlfs-local/objects/batch
> POST /artifactory/api/lfs/gitlfs-local/objects/batch HTTP/1.1
> Host: artifactory-server
> Accept: application/vnd.git-lfs+json; charset=utf-8
> Content-Type: application/vnd.git-lfs+json; charset=utf-8
> User-Agent: git-lfs/1.2.0 (GitHub; linux amd64; go 1.6.2; git 7ee533f)
>
{"transfers":["basic"],"operation":"upload","objects":[{"oid":"09f0e1e3033913ee42300abf912577e49b76e7507ae00e272a80fd946180b1fd","size":4190}]}trace git-lfs: HTTP: 200


< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Content-Type: application/vnd.git-lfs+json
< Date: Thu, 21 Jul 2016 07:14:54 GMT
< Server: Artifactory/4.7.0
< X-Artifactory-Id: 0aab31b401ffac72b0e8ae6e4deede1dda0e8eca
< X-Artifactory-Node-Id: slc-ha-prod-1
<
trace git-lfs: HTTP: {
  "objects" : [ {
    "oid" : "09f0e1e3033913ee42300abf912577e49b76e7507ae00e272a80fd946180b1fd",
    "size" : -1
  } ]
}
{
  "objects" : [ {
    "oid" : "09f0e1e3033913ee42300abf912577e49b76e7507ae00e272a80fd946180b1fd",
    "size" : -1
  } ]
}trace git-lfs: HTTP:
Git LFS: (0 of 0 files, 1 skipped) 0 B / 4.09 KB
Git LFS: (0 of 0 files, 1 skipped) 0 B / 4.09 KB