Getting this error while configuring netlify lfs : Provisioning Netlify Large Media × Provisioning Netlify Large Media → Error {"error":"Large Media addon doesn't support the repo linked to multiple sites

Hi , we are trying to intergrate

https://docs.netlify.com/large-media/transform-images/#request-transformations

We are getting this error

getting this error while configuring netlify lfs : Provisioning Netlify Large Media
× Provisioning Netlify Large Media
→ Error {“error”:“Large Media addon doesn’t support the repo linked to multiple sites”}
Configuring Git LFS for this site
{ Error: Error {“error”:“Large Media addon doesn’t support the repo linked to multiple sites”}
at createAddon (C:\Users\Owner\AppData\Local\netlify-cli\node_modules\netlify-lm-plugin\node_modules\netlify\src\addons.js:24:11)
at process._tickCallback (internal/process/next_tick.js:68:7) context: [Object: null prototype] {} }

Can someone please give clarity on what this is and how we fit it ?

Hi, @theanswer, this means that our API believe the same repo was already linked to a different site with Large Media enabled for it.

If Large Media is enabled for a site at Netlify, that same repo cannot be linked to other sites. This in covered in the limitations section of the Large Media documentation.

Is there a .lfsconfig file already in the repo? If so, what is the content of that file? (It is safe to post that content here.)

If that file doesn’t exist, what is the URL for the repo you are trying to connect to (or is already connected to) the site?

1 Like

@luke There is no .lfsconfig file our URL is https://amazing-sinoussi-953b08.netlify.app

thank you for your time
Kind regards

Hi, @theanswer. I can confirm that this repo isn’t linked to any other sites so that error doesn’t make sense.

Would you be willing to please test the following?

If so, in the repo directory with the Netlify CLI tool, please do the following:

$ netlify logout
$ netlify login

Then, in our web app, please “re-link” the existing repo here:

https://app.netlify.com/sites/amazing-sinoussi-953b08/settings/deploys#build-settings

To “re-link”, the steps are:

  • click the “Edit settings” button on the page above
  • click “Link to a different repository”
  • select the original repository

Then try the Large Media setup again:

$ netlify plugins:install netlify-lm-plugin
$ netlify lm:install 
$ netlify link
$ netlify lm:setup

You might skip the netlify link step if the repo is already linked to the site correctly. (You can test that with netlify status.)

If this still doesn’t resolve the issue, please let us know.

1 Like

I am having same issue. " → Error {“error”:“Large Media addon doesn’t support the repo linked to multiple sites”}"

I have followed the steps above.

site: e4336933-805c-4d99-a601-76d36bddcd59

Hi, @f3rg. The repository that site is using is already linked to two sites, for a total of three sites with the same repo. (Note, there are two different accounts using this repo.)

We cover this in the limitations documentation for Large Media, quoting:

  • Files tracked with Netlify Large Media are tied to a specific site. This means that Deploy to Netlify buttons and repositories with multiple connected sites (such as monorepos) are not supported. Similarly, you cannot create a new site from a fork of a repository, though you can fork a Large-Media-enabled repository for the purpose of making contributions to be merged into the original repository.

This site won’t be able to use Large Media until the repo is unlinked from the other two sites. The easiest way to do so is to delete the sites under the other account. However, our support team can also manually unlink the repos with the account owner’s permission.

If there are other questions about this, please let us know.