Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

influxd -hostname localhost #2350

Closed
neonstalwart opened this issue Apr 20, 2015 · 5 comments · Fixed by #2367
Closed

influxd -hostname localhost #2350

neonstalwart opened this issue Apr 20, 2015 · 5 comments · Fixed by #2367
Assignees

Comments

@neonstalwart
Copy link
Contributor

influxd -hostname localhost stopped working after #2233 was merged

https://github.com/influxdb/influxdb/pull/2333/files#r28724886

@otoolep
Copy link
Contributor

otoolep commented Apr 21, 2015

@neonstalwart -- thanks.

It does look like this regressed, as we had to overhaul the test suite in a significant way for CI stability. We'll have to look at this shortly.

cc @jwilder @corylanou

@corylanou
Copy link
Contributor

@otoolep I think the short fix is just to investigate what type of IP address it is, and if it's localhost, set it to that instead of the host name? I've always thought we should do that anyway as the host name is usually not what you would expect right?

@neonstalwart
Copy link
Contributor Author

also, on a slightly related note, i can't get tests to run locally because the test config keeps wanting to bind to os.Hostname() which doesn't resolve to anything for me so i want it to bind to localhost.

  1. why does the code even try to bind to os.Hostname() at all when you could do influxd -hostname hostname`` and achieve the same thing? why not just make 'localhost' the default value?
  2. i'm developing on a mac, i assume maybe some of you also use macs for development, do you update /etc/hosts so that the hostname resolves to 127.0.0.1 or what do you do to get the tests running locally?

@neonstalwart
Copy link
Contributor Author

the host name is usually not what you would expect right?

+1

@neonstalwart
Copy link
Contributor Author

...os.Hostname() which doesn't resolve to anything for me...

to clarify, os.Hostname() returns the hostname but that name doesn't resolve to an IP address for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants