Commit a7fb768d authored by Richard Clamp's avatar Richard Clamp

Troubleshooting for consul, Multiple private IPs

The `Multiple private IPs` failure case has the same fix as the 'unable
to communicate' case, but the reasoning is slightly different, as is the
error message a user will observe.

Closes https://gitlab.com/gitlab-org/build/team-tasks/issues/31
parent e985161a
......@@ -60,6 +60,30 @@ To fix this:
```
1. Run `gitlab-ctl reconfigure`
### Consul agents do not start - Multiple private IPs
In the case that a node has multiple private IPs the agent be confused as to which of the private addresses to advertise, and then immediately exit on start.
You will see messages like the following in `gitlab-ctl tail consul` output if you are running into this issue:
```
2017-11-09_17:41:45.52876 ==> Starting Consul agent...
2017-11-09_17:41:45.53057 ==> Error creating agent: Failed to get advertise address: Multiple private IPs found. Please configure one.
```
To fix this:
1. Pick an address on the node that all of the other nodes can reach this node through.
1. Update your `/etc/gitlab/gitlab.rb`
```ruby
consul['configuration'] = {
...
bind_addr: 'IP ADDRESS'
}
```
1. Run `gitlab-ctl reconfigure`
### Outage recovery
If you lost enough server agents in the cluster to break quorum, then the cluster is considered failed, and it will not function without manual intervenetion.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment