Page 1 of 1

Wrong network interface on Linux

Posted: Sat Oct 14, 2023 5:09 am
by j0rge1523
I just installed ums on Linux and I can't load the web interface on other devices. I think that it is using the wrong network interface. I want to change that, but I can't find settings. There is no "settings" item in the hamburger icon menu
Screenshot from 2023-10-13 12-16-15.png
Screenshot from 2023-10-13 12-16-15.png (5.59 KiB) Viewed 2353 times
Here is my log file
umslog.txt
(92.4 KiB) Downloaded 212 times

Re: Wrong network interface on Linux

Posted: Sat Oct 14, 2023 4:38 pm
by mik_s
The web interface is on http://localhost:9001/ and the standalone player on http://localhost:9002/

Looking at your log the web GUI is not able to start

Code: Select all

Failed to start web graphical user interface server (/0.0.0.0:9001) : Address already in use
which is causing this error

Code: Select all

INFO  2023-10-13 12:04:04.037 [Web GUI browser] Launching the graphical interface on a browser
INFO  2023-10-13 12:04:04.037 [Web GUI browser] Exception in thread "Web GUI browser" java.lang.NullPointerException: Cannot invoke "String.length()" because "this.input" is null
INFO  2023-10-13 12:04:04.037 [Web GUI browser] 	at java.base/java.net.URI$Parser.parse(Unknown Source)
INFO  2023-10-13 12:04:04.037 [Web GUI browser] 	at java.base/java.net.URI.<init>(Unknown Source)
INFO  2023-10-13 12:04:04.037 [Web GUI browser] 	at net.pms.platform.PlatformUtils.browseURI(PlatformUtils.java:147)
INFO  2023-10-13 12:04:04.037 [Web GUI browser] 	at net.pms.PMS$2.run(PMS.java:644)
but the web player is working.

Code: Select all

Web player is available at: http://172.17.0.1:9002
I don't know enough about Linux or networking to give any specific help but it must be something to do with how you have the network configured, as both web player and web GUI should be on the same IP just different ports.

UMS may also be using the wrong network interface when starting but I could not see much as your logs weren't in trace mode.
As you cannot launch the GUI to change logging modes you can add

Code: Select all

log_level =TRACE
to UMS.conf and restart it.

Re: Wrong network interface on Linux

Posted: Sun Oct 15, 2023 4:42 am
by j0rge1523
Yes, I'm already using port 9001 for something else. Is there a way to change the web GUI port?

Re: Wrong network interface on Linux

Posted: Sun Oct 15, 2023 1:19 pm
by boss
Yes, I'm already using port 9001 for something else. Is there a way to change the web GUI port?
You can edit the UMS.conf file to change that.
/Username/.config/UMS/UMS.conf

Change:
# Web gui port
# --------
# The port that the web gui can be accessed by.
# Example: 7000, which means the web gui is at localhost:7000
# Default: 9001
web_gui_port =

to a port of your choice.
EG: web_gui_port = 8001