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

Does not match any known IP's on this host. #9

Open
Ltek opened this issue Jan 25, 2017 · 1 comment
Open

Does not match any known IP's on this host. #9

Ltek opened this issue Jan 25, 2017 · 1 comment

Comments

@Ltek
Copy link

Ltek commented Jan 25, 2017

I installed Docker on Windows to run HA-Bridge. When I put in the machine's server IP I get the error "does not match any known IP's on this host" ... but it IS the IP of the machine.

And the logs show HA-Bridge running but I cant get to the GUI. Tried setting port 80 and 8080 and 8099.

To build the container I used Kitematic, and the "Create" button. It downloaded the image and built the container automatically.

There are 2 IPs (this is a must as Docker on Windows requires HyperV)... one for the PC/host OS and one virtual IP for HyperV . I tried manually set SERVERIP and SERVERPORT in Docker, and tried both IPs.

I also tried to create the container (port 80 and 8080) through command line using the docker run example provided here: https://hub.docker.com/r/aptalca/home-automation-bridge/

No matter what I try I get the same error.

here's the log...

    Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
    *** Running /etc/my_init.d/firstrun.sh...
    setting the correct local time
    Current default time zone: 'Etc/UTC'
    Local time is now: Sun Jan 15 03:58:24 UTC 2017.
    Universal Time is now: Sun Jan 15 03:58:24 UTC 2017.
    Latest version on bwssystems github repo is 3.5.1
    Installing version '3.5.1'
    --2017-01-15 03:58:30-- https://github.com/bwssytems/ha-bridge/releases/download/v3.5.1/ha-bridge-3.5.1.jar
    Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
    Connecting to github.com (github.com)|192.30.253.112|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://github-cloud.s3.amazonaws.com/releases/39848099/5bf392d4-ae62-11e6-826a-3388fce10feb.jar?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170115T035840Z&X-Amz-Expires=300&X-Amz-Signature=73ba1bde943e180081a981f3ffff3369f8075c76f4bc22c9f5dea9c84dfd3412&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dha-bridge-3.5.1.jar&response-content-type=application%2Foctet-stream [following]
    --2017-01-15 03:58:35-- https://github-cloud.s3.amazonaws.com/releases/39848099/5bf392d4-ae62-11e6-826a-3388fce10feb.jar?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20170115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170115T035840Z&X-Amz-Expires=300&X-Amz-Signature=73ba1bde943e180081a981f3ffff3369f8075c76f4bc22c9f5dea9c84dfd3412&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dha-bridge-3.5.1.jar&response-content-type=application%2Foctet-stream
    Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.49.202
    Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.49.202|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7296493 (7.0M) [application/octet-stream]
    Saving to: ‘ha-bridge-3.5.1.jar’
    0% [ ] 0 --.-K/s 1% [ ] 94,794 393KB/s 6% [=> ] 442,954 984KB/s 19% [======> ] 1,417,802 2.07MB/s 45% [================> ] 3,353,125 3.75MB/s 78% [=============================> ] 5,728,768 5.19MB/s 100%[======================================>] 7,296,493 5.87MB/s in 1.2s
    2017-01-15 03:58:37 (5.87 MB/s) - ‘ha-bridge-3.5.1.jar’ saved [7296493/7296493]
    Setting correct permissions
    Parameters used:
    Server IP : 10.0.75.1
    Server Port : 80
    Starting Home Automation Bridge
    2017-01-15 03:58:37,685 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge (v3.5.1) starting....
    2017-01-15 03:58:37,696 [main] INFO com.bwssystems.HABridge.BridgeSettings - reading from system properties
    2017-01-15 03:58:37,700 [main] WARN com.bwssystems.HABridge.BridgeSettings - The upnp config address, 10.0.75.1, does not match any known IP's on this host.
    2017-01-15 03:58:37,700 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge initializing....
    2017-01-15 03:58:37,712 [main] INFO com.bwssystems.HABridge.SystemControl - System control service started....
    2017-01-15 03:58:37.819:INFO::Thread-0: Logging initialized @388ms
    2017-01-15 03:58:37,848 [main] WARN com.bwssystems.HABridge.dao.DeviceRepository - Error reading the file: data/device.db - Does not exist or is not readable. continuing...
    2017-01-15 03:58:37,848 [main] INFO com.bwssystems.HABridge.devicemanagmeent.DeviceResource - HABridge device management service started....
    2017-01-15 03:58:37,860 [main] INFO com.bwssystems.HABridge.upnp.UpnpSettingsResource - Hue description service started....
    2017-01-15 03:58:37,863 [main] INFO com.bwssystems.util.UDPDatagramSender - Initializing UDP response Seocket...
    2017-01-15 03:58:37,866 [main] INFO com.bwssystems.util.UDPDatagramSender - UDP response Seocket initialized to: 50000
    2017-01-15 03:58:37,921 [Thread-0] INFO spark.webserver.JettySparkServer - == Spark has ignited ...
    2017-01-15 03:58:37,923 [Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:80
    2017-01-15 03:58:37.926:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
    2017-01-15 03:58:37,998 [Thread-0] ERROR spark.webserver.JettySparkServer - ignite failed
    java.net.SocketException: Permission denied
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Net.java:433)
    at sun.nio.ch.Net.bind(Net.java:425)
    at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
    at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
    at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:326)
    at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
    at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.server.Server.doStart(Server.java:384)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at spark.webserver.JettySparkServer.ignite(JettySparkServer.java:131)
    at spark.SparkInstance.lambda$init$0(SparkInstance.java:341)
    at java.lang.Thread.run(Thread.java:745)
    *** Running /etc/rc.local...
    *** Booting runit daemon...
    *** Runit started as PID 58
    Jan 15 03:58:38 c63f01b8cb44 syslog-ng[65]: syslog-ng starting up; version='3.5.3'
    *** Shutting down runit daemon (PID 58)...
    *** Killing all processes...
@BuxtonCalvin
Copy link

I solved this by adding "network_mode: host" to my docker compose file.

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