Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-08-26 22:54:38 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-08-26 22:54:38 +0300
commit4e01a9e0fb1aff81d09f9dcc1158145108e603ee (patch)
tree3e4395110f989643d3d5edba3b358b03ed1a6ac1
parent8c5f583abfb21fb826a2fe34060f9d6f22e88b8d (diff)
parent9cbed1086b0ed078f931626fee33552b60261284 (diff)
Merge branch 'master' into 'master'
Update docs for forgotten secrets file See merge request gitlab-org/gitlab-ce!31393
-rw-r--r--doc/raketasks/backup_restore.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/raketasks/backup_restore.md b/doc/raketasks/backup_restore.md
index b4b7d711d5a..19486052dd9 100644
--- a/doc/raketasks/backup_restore.md
+++ b/doc/raketasks/backup_restore.md
@@ -923,6 +923,29 @@ backup beforehand.
UPDATE ci_runners SET token = null, token_encrypted = null;
```
+#### Reset pending pipeline jobs
+
+1. Enter the DB console:
+
+ For Omnibus GitLab packages:
+
+ ```sh
+ sudo gitlab-rails dbconsole
+ ```
+
+ For installations from source:
+
+ ```sh
+ sudo -u git -H bundle exec rails dbconsole RAILS_ENV=production
+ ```
+
+1. Clear all the tokens for pending jobs:
+
+ ```sql
+ -- Clear build tokens
+ UPDATE ci_builds SET token = null, token_encrypted = null;
+ ```
+
A similar strategy can be employed for the remaining features - by removing the
data that cannot be decrypted, GitLab can be brought back into working order,
and the lost data can be manually replaced.