hashicorp / hashicorp/consul

Failed to join message when joining area

Open
#3,112 0 comments 0 reactions 0 assignees View on GitHub
theme/federation-usability type/bug
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

The following message shows up in the logs when running `consul operator area join`:
```
[DEBUG] memberlist: Failed to join ::1: failed to connect to "[::1]:8805": dial tcp: address 127.0.0.1:0: no suitable address found
```

Here's the setup I used for this:

node1
```consul agent -dev```

node2
```consul agent -dev -config-file config.json -node node2 -datacenter dc2```

config.json:
```{"ports":{"http":8800,"dns":8801,"serf_lan":8803,"serf_wan":8804,"server":8805}}```

```
$ consul operator area create -peer-datacenter dc2
Created area "cb5bfe78-3893-35bf-519b-879b42eb6e22" with peer datacenter "dc2"!

$ consul operator area create -http-addr localhost:8800 -peer-datacenter dc1
Created area "3d9befa3-0ed4-15b5-a5f7-4e79ccc725e2" with peer datacenter "dc1"!

$ consul operator area join -peer-datacenter dc2 localhost:8805
Address Joined Error
localhost:8805 true (none)

$ consul operator area join -http-addr localhost:8800 -peer-datacenter dc1 localhost:8300
Address Joined Error
localhost:8300 true (none)
```

Things seem to work despite this, but it's a pretty suspect message.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.