You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm adding a step-level git-lfs clone in bitbucket-pipelines.yml file, as described here, but it throws a System Error during build. The repo I'm working on is a forked repo that had git-lfs configured (it had .gitattributes in the repo).
image: continuumio/anaconda3:latest
pipelines:
pull-requests:
'**': # runs as default for any branch
- step:
name: build test
clone:
lfs: true
script:
- if [ -f environment.yml ]; then conda env create -f environment.yml; fi
- git clone --branch="test" git@bitbucket<somerepo>
Error encountered:
- error downloading object (error logs below)
Steps taken to resolve (but failed):
- Removed step-level clone, and specified it globally, but same error encountered
- Added `git lfs install` as part of build step instead of using `clone: enabled: true` but git lfs command is not recognized
+ umask 000
+ git lfs 2>/dev/null >/dev/null || if [ $? -ne 0 ]; then exit 86; fi
+ retry 6 git clone --branch="add_ci_backbone" $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...
Downloading data/df_clean.csv (15 MB)
Error downloading object: data/df_clean.csv (19f9dde): Smudge error: Error downloading data/df_clean.csv (sha...): [sha...] Object does not exist on the server: [404] Object does not exist on the server
Errors logged to '/opt/atlassian/pipelines/agent/build/.git/lfs/logs/20221003T160918.187587842.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: data/df_clean.csv: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Attempt 1 of 6 failed.
Retrying in 1 seconds
Attempt 2 of 6 failed.
Retrying in 2 seconds
fatal: destination path '/opt/atlassian/pipelines/agent/build' already exists and is not an empty directory.
fatal: destination path '/opt/atlassian/pipelines/agent/build' already exists and is not an empty directory.
Welcome to the community!
Based on the log you shared, the clone is failing because it fails to download LFS files:
Error downloading object: data/df_clean.csv (19f9dde):
Smudge error: Error downloading data/df_clean.csv (sha...): [sha...] Object does not exist on the server: [404] Object does not exist on the server
The remote repository is missing "data/df_clean.csv" files as per the above error.
Can you check if you have these files locally by running the following commands:
Locate the missing files, UUID exists locally:
git lfs ls-files | grep 19f9dde
If the OID exists, push the files back to the remote repository:
git lfs push origin --all
Once pushed, re-run the pipeline build again and let me know if that works.
Cheers,
Syahrul
Hi @Syahrul
I appreciate your response! Following up on your suggestion works, I ended up on this current limitations for git lfs with bb page and it helped me understand the issue.
Now it's been resolved. Thank you!
Jhonsen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.