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

Lost bridge when changed port #244

Closed
stas1000 opened this issue Nov 15, 2016 · 9 comments
Closed

Lost bridge when changed port #244

stas1000 opened this issue Nov 15, 2016 · 9 comments
Assignees
Labels

Comments

@stas1000
Copy link

stas1000 commented Nov 15, 2016

I changed the bridge port through the web interface to 80 but not i cannot access it anymore when tupying the web address in the browser using the original 8080 or 80. not sure if there is a way i can search for where it has gone?

On the bridge terminal it says listening on 0.0.0.0:80

@bwssytems bwssytems self-assigned this Nov 15, 2016
@bwssytems
Copy link
Owner

How is your system setup on what type of device and what is the ip of that device?

@stas1000
Copy link
Author

stas1000 commented Nov 15, 2016

The ip is 192.168.0.12 and it is setup up on a qnap nas running on ubuntu through terminal

@bwssytems
Copy link
Owner

Still not sure what is wrong as the bridge says it is listening on all interfaces. This sounds like os setup issues and I'm not familiar with this setup.

@stas1000
Copy link
Author

stas1000 commented Nov 16, 2016

i used to login by going to 192.168.0.99:8080. i then changed web server port under bridge control from 8080 to 80 and hit save.

now and i can no longer get to the web interface using 192.168.0.99:8080 or 192.168.0.99:80

i will post what terminial shows below but have noticed this:
[Thread-0] ERROR spark.webserver.JettySparkServer - ignite failed

would the best bet be to refresh ubuntu and re-install everything from fresh?

@stas1000
Copy link
Author

stas1000 commented Nov 16, 2016

dmin@ubuntu_1604:$ java -jar ha-bridge-3.2.2.jar
2016-11-16 18:34:24,970 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge (v3.2.2) starting....
2016-11-16 18:34:25,011 [main] INFO com.bwssystems.HABridge.BridgeSettings - reading from config file: data/habridge.config
2016-11-16 18:34:25,214 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge initializing....
2016-11-16 18:34:25,262 [main] INFO com.bwssystems.HABridge.SystemControl - System control service started....
2016-11-16 18:34:25.580:INFO::Thread-0: Logging initialized @1595ms
2016-11-16 18:34:25,873 [Thread-0] INFO spark.webserver.JettySparkServer - == Spark has ignited ...
2016-11-16 18:34:25,879 [Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:80
2016-11-16 18:34:25.887:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2016-11-16 18:34:26,015 [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)
admin@ubuntu_1604:
$ java -jar ha-bridge-3.2.2.jar
2016-11-16 18:34:24,970 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge (v3.2.2) starting....
2016-11-16 18:34:25,011 [main] INFO com.bwssystems.HABridge.BridgeSettings - reading from config file: data/habridge.config
2016-11-16 18:34:25,214 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridge initializing....
2016-11-16 18:34:25,262 [main] INFO com.bwssystems.HABridge.SystemControl - System control service started....
2016-11-16 18:34:25.580:INFO::Thread-0: Logging initialized @1595ms
2016-11-16 18:34:25,873 [Thread-0] INFO spark.webserver.JettySparkServer - == Spark has ignited ...
2016-11-16 18:34:25,879 [Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:80
2016-11-16 18:34:25.887:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2016-11-16 18:34:26,015 [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)

@bwssytems
Copy link
Owner

Well this says it all:

2016-11-16 18:34:25,879 [Thread-0] INFO spark.webserver.JettySparkServer - >> Listening on 0.0.0.0:80
2016-11-16 18:34:25.887:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT
2016-11-16 18:34:26,015 [Thread-0] ERROR spark.webserver.JettySparkServer - ignite failed
java.net.SocketException: Permission denied

You either have some other webserver running on port 80 or you do not have access to port 80. Google this to help you on QNAP as this has been discussed before.

@fauna5
Copy link

fauna5 commented Nov 16, 2016

I suspect you are running this as a user. Ports under 1000 are only allowed to be opened by root. Either change the port to something like 8081 or run the program as root

@stas1000
Copy link
Author

stas1000 commented Nov 17, 2016

Is there a guide on how to do this? As i am unable to acces the web interface

Cheers

@fauna5
Copy link

fauna5 commented Nov 17, 2016

To run as root: start the program with sudo. E.g. "sudo ./starthabridge.sh"

To change the port, add a command line flag. It is detailed in the README.
On Thu, 17 Nov 2016 at 00:30, stas1000 notifications@github.com wrote:

Is there a guide on how to do this? As i am unable to acces the web
interface

Cheers

On Thu, Nov 17, 2016 at 10:01am, Rich Chamberlain <
notifications@github.commailto:notifications@github.com> wrote:

I suspect you are running this as a user. Ports under 1000 are only
allowed to be opened by root. Either change the port to something like 8081
or run the program as root


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<
https://github.com/bwssytems/ha-bridge/issues/244#issuecomment-261107001>,
or mute the thread<
https://github.com/notifications/unsubscribe-auth/AVB3T6BZK035ARsFWfDw49_eqeKHHwIxks5q-5JXgaJpZM4KyeCm>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#244 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0HhXj-NRG3l-z0lIS1Qgvn2lSdMYSYks5q-6A-gaJpZM4KyeCm
.

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

No branches or pull requests

3 participants