Cannot disable any import sources (or add for that matter)

We are running GitLab Community Edition 14.10.1 and because of CVE-2022-2884, we are trying to implement the workaround

  1. Click “Menu” → “Admin”.
  2. Click “Settings” → “General”.
  3. Expand the “Visibility and access controls” tab.
  4. Under “Import sources” disable the “GitHub” option.
  5. Click “Save changes”.

However, each time we click “Save changes”, we get a 500 error. How could we implement this workaround or troubleshoot this issue?

Can check stuff inside /var/log/gitlab/ instance. For example if you update that IMPORT setting. A successful SAVE should result a POST call in

cat /var/log/gitlab/gitlab-workhorse/current


   "content_type":"text/html; charset=utf-8",
   "user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.11.1111.111 Safari/999.99",

Maybe there’s a 500 error code somewhere.

We looked at the logs using the gitlab-ctl tool and could see the 500 error but it was not clear what was causing it. However, we noticed that some database migrations were in incomplete state. A smarter person suggested that could be an issue and addressed it by running

gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]']gitlab-rake db:migrategitlab-ctl reconfiguregitlab-ctl restart

After that we were able to use the GUI to disable import sources. Thanks for the help.