-
Bug
-
Resolution: Answered
-
Low
-
None
-
6.7.0, 6.6.2, 6.7.1
-
3
-
Severity 3 - Minor
-
Summary
Checking out source code on a remote agent when using a Git LFS repository results in a missing objects error.
Environment
- Git LFS 2.6.0
Steps to Reproduce
- Install Git LFS 2.6.0 on your Bamboo Server
- Make a repository in Bitbucket
- Enable it for LFS in the repository settings
- Push some LFS objects from your local
mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master
- Create a Bamboo build plan pointed at that repository and enable LFS under advanced options
- Build – there's an LFS error:
Expected Results
Code checkout completes successfully, and build proceeds
Actual Results
simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git
simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull
simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a
simple 08-Nov-2018 14:15:41
simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log
Workaround
Option 1
Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1.
Option 2
Disable remote agent caching of the repository.
Repository -> Advanced Options -> uncheck Enable repository caching on remote agents
- relates to
-
BAM-20119 Additional protocols for caching to provide GIT LFS Support
- Gathering Interest
[BAM-20172] Git LFS 2.6.0 cannot checkout from local cache on agent
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 3006741 ] | New: JAC Bug Workflow v3 [ 3386202 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Answered [ 9 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Resolved [ 5 ] |
Resolution | Original: Won't Do [ 10000 ] | |
Status | Original: Resolved [ 5 ] | New: Needs Triage [ 10030 ] |
Resolution | New: Won't Do [ 10000 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Description |
Original:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1. Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* |
New:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround h6. Option 1 Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1. h6. Option 2 Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* |
Description |
Original:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1. |
New:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1. Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* |
Description |
Original:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* Or downgrade to Git LFS 2.5.2. |
New:
h3. Summary
Checking out source code on a remote agent when using a {{Git LFS}} repository results in a {{missing objects}} error. h3. Environment * Git LFS 2.6.0 h3. Steps to Reproduce # Install Git LFS 2.6.0 on your Bamboo Server # Make a repository in Bitbucket # Enable it for LFS in the repository settings # Push some LFS objects from your local {code:java} mkdir lfsrepotest8 cd lfsrepotest8 git init . echo Hello World > README.md git add README.md git commit -m "Initial commit" ls > foo.txt ls > bar.txt git add foo.txt bar.txt git lfs install head -c 1000000 /dev/urandom > cat.bin head -c 1000000 /dev/urandom > dog.bin git lfs track '*.bin' git add .gitattributes "*.bin" git commit -m "Add files" git remote add origin https://bitbucket/scm/lfs/lfsrepotest.git git push -u origin master {code} # Create a Bamboo build plan pointed at that repository and enable LFS under advanced options # Build – there's an LFS error: h3. Expected Results Code checkout completes successfully, and build proceeds h3. Actual Results {code:java} simple 08-Nov-2018 14:15:41 /usr/bin/git remote set-url origin ssh://0e946526-243b-495e-af65-b9ddbc2cac84@127.0.0.1:45558/lfs/lfsrepotest8.git simple 08-Nov-2018 14:15:41 /usr/bin/git lfs pull simple 08-Nov-2018 14:15:41 Scanner error: missing object: 4edd5acb13dba6a9f44a206fa1b6a1789fbcc50a simple 08-Nov-2018 14:15:41 simple 08-Nov-2018 14:15:41 Errors logged to /root/bamboo-agent-home/xml-data/build-dir/LFS-LFS8-JOB1/.git/lfs/logs/20181108T141541.4055297.log {code} h3.Workaround Disable remote agent caching of the repository. *Repository -> Advanced Options -> uncheck Enable repository caching on remote agents* Downgrade to Git LFS 2.5.2 or upgrade to Git LFS 2.6.1. |
Support reference count | New: 3 |
Labels | New: bamboo-bugfix-kanban-candidate |
Tested as fixed with Git LFS 2.6.1+.