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?

@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.