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
7cba43c7
Commit
7cba43c7
authored
Jul 05, 2021
by
Michael Kozono
Committed by
Achilleas Pipinellis
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Designs bug to Geo Troubleshooting doc
parent
ca94c201
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
0 deletions
+70
-0
doc/administration/geo/replication/troubleshooting.md
doc/administration/geo/replication/troubleshooting.md
+70
-0
No files found.
doc/administration/geo/replication/troubleshooting.md
View file @
7cba43c7
...
...
@@ -588,6 +588,75 @@ to start again from scratch, there are a few steps that can help you:
gitlab-ctl start
```
### Design repository failures on mirrored projects and project imports
On the top bar, under
**Menu >**
**{admin}**
**Admin > Geo > Nodes**
,
if the Design repositories progress bar shows
`Synced`
and
`Failed`
greater than 100%, and negative
`Queued`
, then the instance
is likely affected by
[
a bug in GitLab 13.2 and 13.3
](
https://gitlab.com/gitlab-org/gitlab/-/issues/241668
)
.
It was
[
fixed in 13.4+
](
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40643
)
.
To determine the actual replication status of design repositories in
a
[
Rails console
](
../../operations/rails_console.md
)
:
```
ruby
secondary
=
Gitlab
::
Geo
.
current_node
counts
=
{}
secondary
.
designs
.
select
(
"projects.id"
).
find_each
do
|
p
|
registry
=
Geo
::
DesignRegistry
.
find_by
(
project_id:
p
.
id
)
state
=
registry
?
"
#{
registry
.
state
}
"
:
"registry does not exist yet"
# puts "Design ID##{p.id}: #{state}" # uncomment this for granular information
counts
[
state
]
||=
0
counts
[
state
]
+=
1
end
puts
"
\n
Counts:"
,
counts
```
Example output:
```
plaintext
Design ID#5: started
Design ID#6: synced
Design ID#7: failed
Design ID#8: pending
Design ID#9: synced
Counts:
{"started"=>1, "synced"=>2, "failed"=>1, "pending"=>1}
```
Example output if there are actually zero design repository replication failures:
```
plaintext
Design ID#5: synced
Design ID#6: synced
Design ID#7: synced
Counts:
{"synced"=>3}
```
#### If you are promoting a Geo secondary site running on a single server
`gitlab-ctl promotion-preflight-checks`
will fail due to the existence of
`failed`
rows in the
`geo_design_registry`
table. Use the
[
previous snippet
](
#design-repository-failures-on-mirrored-projects-and-project-imports
)
to
determine the actual replication status of Design repositories.
`gitlab-ctl promote-to-primary-node`
will fail since it runs preflight checks.
If the
[
previous snippet
](
#design-repository-failures-on-mirrored-projects-and-project-imports
)
shows that all designs are synced, then you can use the
`--skip-preflight-checks`
option or the
`--force`
option to move forward with
promotion.
#### If you are promoting a Geo secondary site running on multiple servers
`gitlab-ctl promotion-preflight-checks`
will fail due to the existence of
`failed`
rows in the
`geo_design_registry`
table. Use the
[
previous snippet
](
#design-repository-failures-on-mirrored-projects-and-project-imports
)
to
determine the actual replication status of Design repositories.
## Fixing errors during a failover or when promoting a secondary to a primary node
The following are possible errors that might be encountered during failover or
...
...
@@ -726,6 +795,7 @@ sudo gitlab-ctl promotion-preflight-checks
sudo
/opt/gitlab/embedded/bin/gitlab-pg-ctl promote
sudo
gitlab-ctl reconfigure
sudo
gitlab-rake geo:set_secondary_as_primary
```
## Expired artifacts
...
...
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