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
a51033f3
Commit
a51033f3
authored
Aug 13, 2020
by
Catalin Irimie
Committed by
Achilleas Pipinellis
Aug 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add extra troubleshooting steps when promoting a Geo secondary
parent
d3c09d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
doc/administration/geo/replication/troubleshooting.md
doc/administration/geo/replication/troubleshooting.md
+29
-0
No files found.
doc/administration/geo/replication/troubleshooting.md
View file @
a51033f3
...
...
@@ -631,6 +631,35 @@ or `gitlab-ctl promote-to-primary-node`, either:
bug
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/22021
)
was
fixed.
If the above does not work, another possible reason is that you have paused replication
from the original primary node before attempting to promote this node.
To double check this, you can do the following:
-
Get the current secondary node's ID using:
```
shell
sudo
gitlab-rails runner
'puts GeoNode.current_node.id'
```
-
Double check that the node is active through the database by running the following
on the secondary node, replacing
`ID_FROM_ABOVE`
:
```
shell
sudo
gitlab-rails dbconsole
SELECT enabled FROM geo_nodes WHERE
id
=
ID_FROM_ABOVE
;
```
-
If the above returned
`f`
it means that the replication was paused.
You can re-enable it through an
`UPDATE`
statement in the database:
```
shell
sudo
gitlab-rails dbconsole
UPDATE geo_nodes SET enabled
=
't'
WHERE
id
=
ID_FROM_ABOVE
;
```
### Message: ``NoMethodError: undefined method `secondary?' for nil:NilClass``
When
[
promoting a **secondary** node
](
../disaster_recovery/index.md#step-3-promoting-a-secondary-node
)
,
...
...
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