Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Imported GitHub.com repo, images didn't import successfully?

Dave Liao
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 7, 2021

I just imported a GitHub repository into my Bitbucket Cloud project. Bitbucket reports the import was successful, no error messages.

  • Markdown and code all imported OK, yay! 👐
  • Images look like they're present (I see filenames and appropriate file sizes), but I can't view any images, boo. 😢

Clicking an image just shows a loading spinner in the preview area. Spinning and spinning. Checking my browser's dev tools, I see a 404 error:

GET https://bitbucket.org/!api/internal/repositories/prahokco/imported-repo/lfs-info-by-path/<long GUID>/Images/Image.png 404

 Anyone else run into this issue before? Any suggestions?

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2021

Hi Dave,

Based on the URL you provided, it looks that the image is tracked by LFS. Are all the images you have issues with tracked by LFS?

Bitbucket importer doesn't import Git LFS files, only the .git repo, so this may be the culprit.

If this repo is using Git LFS, instead of importing it, I would suggest:

1. Take a mirror clone of the repo

git clone --mirror <SOURCE-URL>

2. Fetch all LFS objects in your mirror clone, by executing the following command inside the directory of the mirror clone

git lfs fetch origin --all

3. Create an empty repo in Bitbucket, and then push to that from the mirror clone

git push --mirror <TARGET-URL>
git lfs push --all <TARGET-URL>

Is this something that works for you?

Kind regards,
Theodora

Dave Liao
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2021

@Theodora Boudale - I'll give this a spin and report back! 🙏

Like Theodora Boudale likes this
Dave Liao
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2021

@Theodora Boudale - this helped!

Hopefully someone updates the Cloud and Server pages for the Bitbucket importer to mention the lack of LFS support? 😜

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 23, 2021

Hi @Dave Liao ,

You are right! I have raised this issue with the team responsible for the documentation and asked to include this info in the docs for the importer.

Thank you for the feedback, and I'm glad that you were able to make the import the way I suggested!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events