Skip to content

Rails is down

Many data gathering exercises listed in these docs involve accessing the Rails console.

However, during particularly severe incidents, the Rails console may be totally inaccessible, likely because Redis (specifically redis-cache) is unusable. This would also render Teleport useless as it uses the Rails console.

In the absence of the Rails console, you have a few choices:

  • The Patroni console does not rely on Redis, so you can use the Patroni nodes to run SQL queries against the database via sudo gitlab-psql
    • Be aware that you will be running queries against live data if you use this option!
  • If the data you’re collecting doesn’t necessarily need to be up-to-date, you can also run SQL queries against the delayed replica instances (postgres-dr-main-delayed-*, postgres-ci-dr-delayed-* et al.)
  • You can create a clone of the production database in the Database Lab Platform, access its console manually and run queries. However you will need to have set up the requisite access (AllFeaturesUser) beforehand
  • If the API is working and you happen to have a personal access token handy (it will likely need to have admin access rights for privileged operations), you can try querying the API
  • There may be a dashboard in the Data Warehouse that provides you with a view of the data needed