GitLab Rails Console Cheat Sheet
DETAILS: Tier: Free, Premium, Ultimate Offering: Self-managed
This was the GitLab Support Team's collection of information regarding the GitLab Rails console, for use while troubleshooting. It is listed here for posterity, as most content has been moved to feature-specific troubleshooting pages and sections, see epic &8147. You may want to update your bookmarks accordingly.
If you are currently having an issue with GitLab, it is highly recommended that you first check our guide on the Rails console, and your support options, before attempting the information pointed to from here.
WARNING: Some of these scripts could be damaging if not run correctly, or under the right conditions. We highly recommend running them under the guidance of a Support Engineer, or running them in a test environment with a backup of the instance ready to be restored, just in case.
WARNING: As GitLab changes, changes to the code are inevitable, and so some scripts may not work as they once used to. These are not kept up-to-date as these scripts/commands were added as they were found/needed. As mentioned above, we recommend running these scripts under the supervision of a Support Engineer, who can also verify that they continue to work as they should and, if needed, update the script for the latest version of GitLab.
Mirrors
Find mirrors with "bad decrypt" errors
This content has been converted to a Rake task, see verify database values can be decrypted using the current secrets.
Transfer mirror users and tokens to a single service account
This content has been moved to Troubleshooting Repository mirroring.
Merge requests
CI
This content has been moved to Troubleshooting CI/CD.
License
This content has been moved to Activate GitLab EE with a license file or key.
Registry
Registry Disk Space Usage by Project
Find this content in the container registry troubleshooting documentation.
Run the Cleanup policy now
Find this content in the container registry troubleshooting documentation.
Sidekiq
This content has been moved to Troubleshooting Sidekiq.
Geo
Reverify all uploads (or any SSF data type which is verified)
Moved to Geo replication troubleshooting.
Artifacts
Moved to Geo replication troubleshooting.
Repository verification failures
Moved to Geo replication troubleshooting.
Resync repositories
Moved to Geo replication troubleshooting - Resync repository types.
Moved to Geo replication troubleshooting - Resync project and project wiki repositories.
Blob types
Moved to Geo replication troubleshooting.
Generate Service Ping
This content has been moved to Service Ping Troubleshooting.