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
ddc41198
Commit
ddc41198
authored
Sep 28, 2021
by
Craig Norris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove outdated GitLab version instructions
Remove outdated GitLab version instructions
parent
8931be02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
35 deletions
+11
-35
doc/update/restore_after_failure.md
doc/update/restore_after_failure.md
+11
-35
No files found.
doc/update/restore_after_failure.md
View file @
ddc41198
...
...
@@ -31,9 +31,7 @@ attempts. This is because some tables may have been added during the failed
upgrade. If these tables are still present after you restore from the
older backup it can lead to migration failures on future upgrades.
Starting in GitLab 8.6 we drop all tables prior to importing the backup to
prevent this problem. If you've restored a backup to a version prior to 8.6 you
may have to manually correct the problem next time you upgrade.
We drop all tables prior to importing the backup to prevent this problem.
Example error:
...
...
@@ -52,38 +50,16 @@ Copy the version from the error. In this case the version number is
WARNING:
Use the following steps only if you are certain you must do them.
### GitLab 8.6+
1.
Pass the version to a database Rake task to manually mark the migration as
complete.
Pass the version to a database Rake task to manually mark the migration as
complete.
```
shell
# Source install
sudo
-u
git
-H
bundle
exec
rake gitlab:db:mark_migration_complete[20151103134857]
RAILS_ENV
=
production
```
she
ll
# Source install
sudo
-u
git
-H
bundle
exec
rake gitlab:db:mark_migration_complete[20151103134857]
RAILS_ENV
=
production
# Omnibus insta
ll
sudo
gitlab-rake gitlab:db:mark_migration_complete[20151103134857]
```
# Omnibus install
sudo
gitlab-rake gitlab:db:mark_migration_complete[20151103134857]
```
After the migration is successfully marked, run the Rake
`db:migrate`
task again.
Repeat this process until all failed migrations are complete.
### GitLab < 8.6
```
shell
# Source install
sudo
-u
git
-H
bundle
exec
rails console
-e
production
# Omnibus install
sudo
gitlab-rails console
```
At the Rails console, type the following commands:
```
ruby
ActiveRecord
::
Base
.
connection
.
execute
(
"INSERT INTO schema_migrations (version) VALUES('20151103134857')"
)
exit
```
After the migration is successfully marked, run the Rake
`db:migrate`
task again.
Repeat this process until all failed migrations are complete.
1.
After the migration is successfully marked, run the Rake
`db:migrate`
task again.
1.
Repeat this process until all failed migrations are complete.
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