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

Server with multiple network interfaces: Cronicle might not work depending on IP auto-selected #21

Closed
hoogenm opened this issue Apr 15, 2017 · 2 comments

Comments

@hoogenm
Copy link

hoogenm commented Apr 15, 2017

If a server has multiple network interfaces, and (the first) one happens to be assigned a 169.254.-number, the Cronicle web UI would not start up (stayed blank). I found out that this is caused by Cronicle auto-selecting the first IP-number, which might not work in some situations. An option to (manually) overrule the IP-number selected by Cronicle, might be helpful in such a situation. My work-around was to disable the (first) interface, then run setup again on a fresh installation. A suggestion to make the already nice Cronicle code more robust might be to create a socket programmatically during setup/startup, and obtain the assigned IP-number from it (then an internet connection might be needed though).

@jhuckaby
Copy link
Owner

What a strange issue. I've never heard of that before. I am filtering out all "internal" IPs on startup, using os.networkInterfaces().

`internal` <boolean> true if the network interface is a loopback or similar interface that is not remotely accessible; otherwise false

I guess somehow your 169.254.- isn't marked as internal somehow, and is getting added as the primary interface.

I don't know how in the world to reproduce this, but I will try to come up with something. The problem is, someone actually may want the primary IP to be 169.254.-, for example if someone is testing Cronicle on a LAN with two machines connected directly via Ethernet cable. So I guess I have to only skip over 169.254.- if there are other non-internal IPv4 options available in the list.

@ckt114
Copy link

ckt114 commented Feb 26, 2019

Is it possible to tell Cronicle which non-loopback interface to use? I’m testing in VMs and using vagrant so eth0 on all VMs has IP 10.0.2.15 and cronicle wont allow more than one slaves with that same IP although the hostname on each VM is different. Thanks.

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

No branches or pull requests

3 participants