Skip to content

Commit

Permalink
Add hostname to meta link
Browse files Browse the repository at this point in the history
Windows does not like URL's without host names,getSnapshot (Get http://:8091?index=0) results in error ( ConnectEx tcp: The requested address is not valid in its context.). The fix is to add hostname to the URL.
  • Loading branch information
mvadu committed Mar 19, 2016
1 parent 050f654 commit 74e9295
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ There were some important breaking changes in this release. Here's a list of the
- [#6006](https://github.com/influxdata/influxdb/pull/6006): Fix deadlock while running backups
- [#5965](https://github.com/influxdata/influxdb/issues/5965): InfluxDB panic crashes while parsing "-" as Float
- [#5835](https://github.com/influxdata/influxdb/issues/5835): Make CREATE USER default to IF NOT EXISTS
- [#5848](https://github.com/influxdata/influxdb/issues/5848): Default setup of Influxd does not work in windows due to missing hostname in meta link

## v0.10.2 [2016-03-03]

Expand Down
2 changes: 1 addition & 1 deletion cmd/influxd/run/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ func (s *Server) initializeMetaClient() error {
if s.MetaService == nil {
return fmt.Errorf("server not set to join existing cluster must run also as a meta node")
}
s.MetaClient.SetMetaServers([]string{s.MetaService.HTTPAddr()})
s.MetaClient.SetMetaServers([]string{s.MetaService.RemoteHTTPAddr()})
s.MetaClient.SetTLS(s.metaUseTLS)
} else {
// join this node to the cluster
Expand Down
5 changes: 5 additions & 0 deletions services/meta/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ func (s *Service) HTTPAddr() string {
return s.httpAddr
}

// RemoteHTTPAddr returns the bind address for the HTTP API with host name
func (s *Service) RemoteHTTPAddr() string {
return s.remoteAddr(s.httpAddr)
}

// RaftAddr returns the bind address for the Raft TCP listener
func (s *Service) RaftAddr() string {
return s.raftAddr
Expand Down

0 comments on commit 74e9295

Please sign in to comment.