Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9cbed108
Commit
9cbed108
authored
Aug 26, 2019
by
Bill Bagdon
Committed by
Achilleas Pipinellis
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci_builds also has encrypted tokens
These need to be reset
parent
8c5f583a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+23
-0
No files found.
doc/raketasks/backup_restore.md
View file @
9cbed108
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment