Address already in use running multiple instances
Posted: Fri Feb 05, 2016 3:36 pm
In previous versions, I have been able to run two instances of UMS. One for the kids and one for the adults. I updated to 6.0.0 today and this is no longer the case.
One is run as my normal user and one as root user from different locations on the hdd. "Only run an single instance of UMS" is unchecked in both copies. Both server and web ports have been changed in the root copy so it shouldn't interfere with the other and the web interfaces have been turned off, but I still get the error.
From the log file:
ERROR 2016-02-04 21:32:10.512 [main] A serious error occurred during Universal Media Server initialization: Address already in use
TRACE 2016-02-04 21:32:10.555 [main]
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_71]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.ServerImpl.<init>(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) ~[na:1.8.0_71]
at com.sun.net.httpserver.HttpServer.create(Unknown Source) ~[na:1.8.0_71]
at net.pms.remote.RemoteWeb.<init>(RemoteWeb.java:90) ~[ums.jar:6.0.0]
at net.pms.PMS.init(PMS.java:583) [ums.jar:6.0.0]
at net.pms.PMS.createInstance(PMS.java:1062) [ums.jar:6.0.0]
at net.pms.PMS.main(PMS.java:1220) [ums.jar:6.0.0]
I have attached logs for both instances. In this case, I ran the copy for my user first and then attempted to run as root, which received the error. It does not matter which one starts first, the second copy receives the error.
I appreciate any help you can provide.
Sincerely,
Chris
One is run as my normal user and one as root user from different locations on the hdd. "Only run an single instance of UMS" is unchecked in both copies. Both server and web ports have been changed in the root copy so it shouldn't interfere with the other and the web interfaces have been turned off, but I still get the error.
From the log file:
ERROR 2016-02-04 21:32:10.512 [main] A serious error occurred during Universal Media Server initialization: Address already in use
TRACE 2016-02-04 21:32:10.555 [main]
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_71]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.Net.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) ~[na:1.8.0_71]
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.ServerImpl.<init>(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.HttpServerImpl.<init>(Unknown Source) ~[na:1.8.0_71]
at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(Unknown Source) ~[na:1.8.0_71]
at com.sun.net.httpserver.HttpServer.create(Unknown Source) ~[na:1.8.0_71]
at net.pms.remote.RemoteWeb.<init>(RemoteWeb.java:90) ~[ums.jar:6.0.0]
at net.pms.PMS.init(PMS.java:583) [ums.jar:6.0.0]
at net.pms.PMS.createInstance(PMS.java:1062) [ums.jar:6.0.0]
at net.pms.PMS.main(PMS.java:1220) [ums.jar:6.0.0]
I have attached logs for both instances. In this case, I ran the copy for my user first and then attempted to run as root, which received the error. It does not matter which one starts first, the second copy receives the error.
I appreciate any help you can provide.
Sincerely,
Chris