-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
bind-address parameter issue on 0.9 #2468
Comments
Strange, I would open issue to say opposite side. I am trying to do a docker image, but If you want an image with broker and data node it little bit difficult. because broker need to announce his hostame to register, and datanode trying to register to this broker with hostname. So to fix it I need to se hostame in /etc/hosts to redirect to localhost, and give a hostname of docker machine. This is mainly for first node starting of cluster |
I am having a similar issue after changing the bind address in rc31. Changing the bind address re-binds all the daemons to the correct port, but the broker is still looking for the data node at
I re-installed influx several times to see if I was missing something and changed the bind address before first launch, but that didn't work at all. Perhaps I'm missing something in the configs as I an incomplete understanding of influx configuration options.... I'm guessing that waiting for r32 is the thing to do, but I thought I'd log this anyway. |
Is there a schedule for 0.9.2? This issue is quite ugly as there is no simple workaround (or is there?).... |
@noroute: 0.9.2 will be released on July 23rd. In the meantime, when this issue is fixed and merged into master, we have nightly builds that you can test with that can be found here: https://influxdb.com/download/index.html |
@corylanou what's the status of this issue? Are you working on a fix like Paul seems to think? |
@pauldix @toddboom it turns out @corylanou is otherwise occupied leading into the 0.9.2 code freeze. Who else do you nominate to fix this? |
@beckettsean @toddboom @pauldix I remember fixing this issue in 0.9rc some time ago. If you still agree with the solution proposed in this PR #2479 I can refloat, but please merge this time 😄 |
@marcosnils thanks for the reminder! I'm not qualified to 👍 the merge but I promise to badger the appropriate people on your behalf. There was much sadness that we didn't give you a good chance to merge it last time. |
@marcosnils if you can redo it, we'd gladly merge. Sorry about not getting it in last time. I don't think there will be another big refactor that would cause a problem. Although, looping @jwilder in to make sure his work isn't changing how server startup/binding works. |
@pauldix no problem, I'll submit a new PR tomorrow with the updated code. I took special care in trying not to break backwards compatibility in it, so i'd be great if you can confirm. |
This might interfere with my changes but not sure off-hand. Also, I'm not sure that changing the hostname would fix the original issue. I believe the original issue was that the old broker/meta-store saved the IP addresses of existing nodes and tried to reconnect to them on startup using its existing state. Changing the hostname was not supported because you would need to remove the node from the meta-store/raft and re-add it. We probably have a similar with 0.9.1 because our new raft still needs to save the raft peers and node addresses in the meta-store. I think we'd have to detect hostname changes for a node and propagate the changes through the cluster. |
ok, based on what @jwilder said I think this is going to be more involved. Probably best to hold off for now @marcosnils. We definitely have a thing where we need to be able to update the IP/hostname of the server. People running in Docker containers commonly have this problem. |
@jwilder @pauldix I thought the main issue arose when trying to start influxdb the first time with the hostname parameter set. That is what my PR actually fixes, and what the test I've included asserts. There's also what you're mentioning about changing the configuration parameter once the cluster has been initialized which involves change propagation. The solution for this last situation fixes the first one, but requires thorough testing and handling complex situations. Maybe in the meantime applying my simple fix will allow users to setup a cluster using the hostname parameter. |
@marcosnils sorry for the delayed response, If your fix is just for setting the hostname initially, I think it's worth doing it. I've created #3421 to track the issue of updating the hostname/IP of a server in a cluster. |
@marcosnils yeah, he still has some stuff in development that would probably make your code different. Don't want to have you go to the trouble of doing it and then clobber your stuff with an ugly rebase :) |
@marcosnils Sorry for the delay. If you wouldn't mind waiting for #3372 to land that would be great. Hoping to get merge that in the next day or two. |
@marcosnils #3372 has landed. If you want to rebase, we should be able to merge the fix in now. |
@beckettsean @jwilder @pauldix this is no longer an issue. Just tried it with master branch code and works. I guess this can be closed when next release is available. |
It is still an issue. when connecting to localhost:8086 I get a connection refused. Doesn't happen when I connect to it from outside. |
@sagetrey please provide more information about which influx version you're running, the specific error you're getting (log trace) and under which |
Reopening this as this is still issue. Influx when configured with bind-address = ":123" listen only on ipv6 interface and there is no way forcing it to use ipv4. |
To issue from mailing list: https://groups.google.com/d/msgid/influxdb/455762cc-9669-4aa6-83ba-3df4e331dace%40googlegroups.com
I have issue after change "bind-address" parameter from "0.0.0.0" to particular IP (not localhost).
But unfortunatelly, influxdb can't run.
I don't know why influxdb still contact localhost not IP from bind-address
Regards,
--Rizal
The text was updated successfully, but these errors were encountered: