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

Driver not alive #245

Closed
nordewal opened this issue Jan 30, 2015 · 2 comments
Closed

Driver not alive #245

nordewal opened this issue Jan 30, 2015 · 2 comments

Comments

@nordewal
Copy link

I can reach remote driver endpoints with curl without problems. But on the controller, the remote drivers are not alive. This is due to a bug in the PingDriverRunner class. The local address should be bound to "0.0.0.0" instead of "127.0.0.1", otherwise on some hosts the following exception is thrown, if the PingDriverRunner is run without a catch:

Exception in thread "main" java.net.ConnectException: Invalid argument
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at PingDriverRunner.pingDrivers(PingDriverRunner.java:31)
        at PingDriverRunner.main(PingDriverRunner.java:36)

The bug fix would be:

InetSocketAddress locAddress = new InetSocketAddress("0.0.0.0", 0);

The workaround for me is to create a SSH tunnel, so that I can specify the remote drivers a local IP address.

Thanks for fixing the bug. Btw, someone else had the same problem with Java:
http://www.dcm4che.org/jira/browse/DCM-24

Best regards
Janosch

@yllions
Copy link
Contributor

yllions commented Jan 30, 2015

Thank you for pointing out this bug, I will fix it as soon as possible

@yllions
Copy link
Contributor

yllions commented Jan 30, 2015

resolved by a9ab0c2

@yllions yllions closed this as completed Jan 30, 2015
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

2 participants