error in 6.0.0
Posted: Sat Jan 30, 2016 9:20 pm
just updated to version 6.0.0 release, and found what seems to be a bug. I didn't have this problem in earlier builds.
If the address/port used by the RemoteWeb interface encounters a bind error, none of the configuration changes made through the UI will save, and the MediaServer won't work.
I also get a javaw.exe still running and holding the port bound, and the only way to kill the instance is a full restart. The port used by the MediaServer not being released has happened with every version of UMS I've run, but previously you could just update the port, quit, restart and all would be good (using "restart server" just hung after showing the "sending BYEBYE" message). This time, it seems like the RemoteWeb interface does this.
I used Python to bind some sockets to the port's I'd set in UMS, and found that the port that is already bound (hanging around from the last run) was the RemoteWeb port (9001). If this binding error happened, the MediaServer port did not get bound.
I don't need the RemoteWeb interface so I just disabled that in conf and UMS seems to be running fine - albeit never releasing any previously used ports. But at least the UI works, and the "Restart" now works without hanging.
Is there a fix for the ports not being released? I'm on the latest version of java (version 8 update 71 build 1.8.0_71-b15) on Win2k12.
the error in the logs is:
If the address/port used by the RemoteWeb interface encounters a bind error, none of the configuration changes made through the UI will save, and the MediaServer won't work.
I also get a javaw.exe still running and holding the port bound, and the only way to kill the instance is a full restart. The port used by the MediaServer not being released has happened with every version of UMS I've run, but previously you could just update the port, quit, restart and all would be good (using "restart server" just hung after showing the "sending BYEBYE" message). This time, it seems like the RemoteWeb interface does this.
I used Python to bind some sockets to the port's I'd set in UMS, and found that the port that is already bound (hanging around from the last run) was the RemoteWeb port (9001). If this binding error happened, the MediaServer port did not get bound.
I don't need the RemoteWeb interface so I just disabled that in conf and UMS seems to be running fine - albeit never releasing any previously used ports. But at least the UI works, and the "Restart" now works without hanging.
Is there a fix for the ports not being released? I'm on the latest version of java (version 8 update 71 build 1.8.0_71-b15) on Win2k12.
the error in the logs is:
Code: Select all
java.net.BindException: Address already in use: bind
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:586) [ums.jar:6.0.0]
at net.pms.PMS.createInstance(PMS.java:1068) [ums.jar:6.0.0]
at net.pms.PMS.main(PMS.java:1226) [ums.jar:6.0.0]