Unable to log in to Netlify CMS UI after transferring GitHub repo

Netlify site name: condescending-perlman-ec107b

This is a Gatsby site based on the Gatsby Netlify CMS starter. I used to be able to log into the CMS UI using Netlify Identity with the Git gateway. However, after transferring the Github repo from matsolo1/covid19hg to covid19-hg/covid19hg, I wasn’t able to log in with my previous email and password and instead got a “not found” error. This was even after disabling and re-enabling the Git Gateway option in Netlify identity and also after regenerating the API token. Can you help me troubleshoot this issue? Thanks.

I encountered the same error yesterday when I switched a github repo from public to private.

I believe the CMS is past the identity stage, and attempting to get the content. It can no longer see the repo and throws that cryptic message.

Unfortunately, I just switched back to a public repo for the moment. Please do share if you find the setting that needs to be reset to fix this issue. I’ll do the same. I suspect going to Netlify project’s build settings, try changing “Link to a different repository” to re-attach the github repo may do something. Or there’s a shared key that needs to be reset somewhere.

This should solve the issue:

  1. Open the Netlify settings for your site
  2. Open the Identity settings
  3. Scroll down to “Git Gateway” within “Services”
  4. Disable the gateway and set it up again

Tada. You can see your content again.
Hope that helps!

When transferring a repository from an individual Github account to a Github Org, additional permissions may be needed by Netlify’s Github OAuth Application.

To view the permissions granted to Netlify’s Github OAuth App, log into your Github account, go to https://github.com/settings/applications, and click Netlify Auth.

From there, you can request access to a Github Org by clicking “Request” next to that Org’s name.

After access has been requested, the owner of the Github Org can grant it by following these steps: https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/approving-oauth-apps-for-your-organization