debian-mirror-gitlab/doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
2023-03-05 14:24:40 +05:30

4 KiB

stage group info
Systems Distribution To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments

GitLab Rails Console Cheat Sheet (FREE SELF)

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. Please 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 except for project or project wiki repositories.

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.