Page 1 of 1

[UMS 9.1] Not working because of Java Runtime Environment

Posted: Wed Jan 08, 2020 5:00 am
by Mirkissimo92
Hi, I have recently had the following issue. I turn on the computer and launch UMS 9.1 (latest version), but it is stuck on the loading screen (the one with the logo). The only way to make it work is to unistall it, restart the computer and then install it again. I cannot do that without restarting because Java is running and it prevents me from going on. I Have Windows 10 and here is the log file info:

DEBUG 2020-01-07 17:37:13.200 [main] Default logfile folder set to: C:\ProgramData\UMS
WARN 2020-01-07 17:37:13.247 [main] Could not rename "C:\ProgramData\UMS\debug.log" to "C:\ProgramData\UMS\debug.log.prev"
DEBUG 2020-01-07 17:37:13.403 [main] LogBack started with configuration file: C:\Program Files (x86)\Universal Media Server\logback.xml
DEBUG 2020-01-07 17:37:13.434 [main] Starting services
DEBUG 2020-01-07 17:37:13.434 [main] Starting ProcessManager
DEBUG 2020-01-07 17:37:13.434 [Process Terminator] ProcessTerminator is starting
DEBUG 2020-01-07 17:37:13.434 [main] Starting SleepManager
DEBUG 2020-01-07 17:37:13.450 [main] Tue Jan 07 17:37:13 CET 2020
DEBUG 2020-01-07 17:37:13.450 [main] Reading cred.path: "C:\ProgramData\UMS\UMS.cred" (default: "")
DEBUG 2020-01-07 17:37:13.872 [main] Writing PID: 6516
DEBUG 2020-01-07 17:37:14.044 [main]
INFO 2020-01-07 17:37:14.044 [main] Starting Universal Media Server 9.1.0
INFO 2020-01-07 17:37:14.044 [main] Based on PS3 Media Server by shagrath, copyright 2008-2014
INFO 2020-01-07 17:37:14.044 [main] https://www.universalmediaserver.com
INFO 2020-01-07 17:37:14.044 [main]
INFO 2020-01-07 17:37:14.044 [main] Build: 9aab5ac44 (2019-11-01)
INFO 2020-01-07 17:37:14.044 [main] Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0_231 (64-bit) by Oracle Corporation
INFO 2020-01-07 17:37:14.044 [main] OS: Windows 10 64-bit 10.0
INFO 2020-01-07 17:37:14.075 [main] Maximum JVM Memory: 1.1 GiB
INFO 2020-01-07 17:37:14.075 [main] Language: Italian
INFO 2020-01-07 17:37:14.075 [main] Encoding: UTF-8
INFO 2020-01-07 17:37:14.075 [main]
INFO 2020-01-07 17:37:14.075 [main] Working directory: C:\Program Files (x86)\Universal Media Server
INFO 2020-01-07 17:37:14.090 [main] Temporary directory: C:\Users\Amministratore\AppData\Local\Temp\UMS
INFO 2020-01-07 17:37:14.090 [main] Logging configuration file: C:\Program Files (x86)\Universal Media Server\logback.xml
INFO 2020-01-07 17:37:14.090 [main] Logfile: C:\ProgramData\UMS\debug.log
INFO 2020-01-07 17:37:14.090 [main]
INFO 2020-01-07 17:37:14.090 [main] Profile directory: C:\ProgramData\UMS
INFO 2020-01-07 17:37:14.090 [main] Profile directory permissions: drwx
INFO 2020-01-07 17:37:14.090 [main] Profile configuration file: C:\ProgramData\UMS\UMS.conf
INFO 2020-01-07 17:37:14.090 [main] Profile configuration file permissions: -rwx
INFO 2020-01-07 17:37:14.106 [main] Profile name: MIRKO
INFO 2020-01-07 17:37:14.106 [main]
DEBUG 2020-01-07 17:37:14.106 [main] Reading web_conf: "C:\ProgramData\UMS\WEB.conf" (previous: null, default: "C:\ProgramData\UMS\WEB.conf")
INFO 2020-01-07 17:37:14.106 [main] Web configuration file: C:\ProgramData\UMS\WEB.conf
WARN 2020-01-07 17:37:14.106 [main] Web configuration file not found: File "C:\ProgramData\UMS\WEB.conf" not found
INFO 2020-01-07 17:37:14.106 [main]
DEBUG 2020-01-07 17:37:14.122 [main] Using database URL: jdbc:h2:C:\ProgramData\UMS\database\medias
INFO 2020-01-07 17:37:14.122 [main] Using database located at: "C:\ProgramData\UMS\database"
DEBUG 2020-01-07 17:37:14.122 [main] Database logging is disabled
ERROR 2020-01-07 17:37:14.262 [main] Database connection error: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-199]

Can anyone help me?
Thanks

Re: [UMS 9.1] Stuck on system startup because of Java?

Posted: Wed Jan 08, 2020 4:48 pm
by atamariya
Looks like some contention on database file is preventing proper startup. You can try two things:
- Delete C:\ProgramData\UMS\database . You might have to kill any running java process first.
- If that doesn't work, can you try a previous version?

Re: [UMS 9.1] Stuck on system startup because of Java?

Posted: Thu Jan 09, 2020 9:20 am
by SubJunk
Yes it seems that the database port is already being used. That could indicate that you have UMS starting as a service already, which means this is trying to start a second instance?

Re: [UMS 9.1] Stuck on system startup because of Java?

Posted: Sun Jan 12, 2020 2:16 am
by Mirkissimo92
I have searched for the problem and that's what I discovered.
UMS is working only if I unistall JRE, but of course if I don't have JRE I can't run all the applications that need it.
When I install UMS for the first time it works and that's the log

DEBUG 2020-01-12 16:57:30.674 [main] Default logfile folder set to: C:\ProgramData\UMS
DEBUG 2020-01-12 16:57:30.837 [main] LogBack started with configuration file: C:\Program Files (x86)\Universal Media Server\logback.xml
DEBUG 2020-01-12 16:57:30.865 [main] Starting services
DEBUG 2020-01-12 16:57:30.866 [main] Starting ProcessManager
DEBUG 2020-01-12 16:57:30.870 [Process Terminator] ProcessTerminator is starting
DEBUG 2020-01-12 16:57:30.873 [main] Starting SleepManager
DEBUG 2020-01-12 16:57:30.877 [main] Sun Jan 12 16:57:30 CET 2020
DEBUG 2020-01-12 16:57:30.877 [main] Reading cred.path: "C:\ProgramData\UMS\UMS.cred" (default: "")
DEBUG 2020-01-12 16:57:31.925 [main] Writing PID: 12840
DEBUG 2020-01-12 16:57:32.510 [main]
INFO 2020-01-12 16:57:32.510 [main] Starting Universal Media Server 9.1.0
INFO 2020-01-12 16:57:32.512 [main] Based on PS3 Media Server by shagrath, copyright 2008-2014
INFO 2020-01-12 16:57:32.512 [main] https://www.universalmediaserver.com
INFO 2020-01-12 16:57:32.513 [main]
INFO 2020-01-12 16:57:32.513 [main] Build: 9aab5ac44 (2019-11-01)
INFO 2020-01-12 16:57:32.513 [main] Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0_231 (64-bit) by Oracle Corporation
INFO 2020-01-12 16:57:32.514 [main] OS: Windows 10 64-bit 10.0
INFO 2020-01-12 16:57:32.518 [main] Maximum JVM Memory: 1.1 GiB
INFO 2020-01-12 16:57:32.526 [main] Language: Italian
INFO 2020-01-12 16:57:32.526 [main] Encoding: UTF-8
INFO 2020-01-12 16:57:32.526 [main]
INFO 2020-01-12 16:57:32.527 [main] Working directory: C:\Program Files (x86)\Universal Media Server
INFO 2020-01-12 16:57:32.536 [main] Temporary directory: C:\Users\Amministratore\AppData\Local\Temp\UMS
INFO 2020-01-12 16:57:32.538 [main] Logging configuration file: C:\Program Files (x86)\Universal Media Server\logback.xml
INFO 2020-01-12 16:57:32.538 [main] Logfile: C:\ProgramData\UMS\debug.log
INFO 2020-01-12 16:57:32.538 [main]
INFO 2020-01-12 16:57:32.538 [main] Profile directory: C:\ProgramData\UMS
INFO 2020-01-12 16:57:32.538 [main] Profile directory permissions: drwx
INFO 2020-01-12 16:57:32.538 [main] Profile configuration file: C:\ProgramData\UMS\UMS.conf
INFO 2020-01-12 16:57:32.538 [main] Profile configuration file permissions: -rwx
INFO 2020-01-12 16:57:32.538 [main] Profile name: MIRKO
INFO 2020-01-12 16:57:32.538 [main]
DEBUG 2020-01-12 16:57:32.538 [main] Reading web_conf: "C:\ProgramData\UMS\WEB.conf" (previous: null, default: "C:\ProgramData\UMS\WEB.conf")
INFO 2020-01-12 16:57:32.538 [main] Web configuration file: C:\ProgramData\UMS\WEB.conf
INFO 2020-01-12 16:57:32.538 [main] Web configuration file permissions: -rwx
INFO 2020-01-12 16:57:32.538 [main]
DEBUG 2020-01-12 16:57:32.553 [main] Using database URL: jdbc:h2:C:\ProgramData\UMS\database\medias
INFO 2020-01-12 16:57:32.553 [main] Using database located at: "C:\ProgramData\UMS\database"
DEBUG 2020-01-12 16:57:32.553 [main] Database logging is disabled
DEBUG 2020-01-12 16:57:33.021 [main] Database file count: 0
DEBUG 2020-01-12 16:57:33.021 [main] Database version: 22
DEBUG 2020-01-12 16:57:33.021 [main] Starting check of database tables
DEBUG 2020-01-12 16:57:33.036 [main] Reading run_wizard: false (default: true)
DEBUG 2020-01-12 16:57:33.130 [main] Reading hide_advanced_options: false (default: true)
DEBUG 2020-01-12 16:57:33.130 [pool-1-thread-1] Reading auto_update: true (default: false)
DEBUG 2020-01-12 16:57:34.123 [main] Reading minimized: true (default: false)
DEBUG 2020-01-12 16:57:35.909 [main] Reading maximum_bitrate: "30" (default: "90")
DEBUG 2020-01-12 16:57:35.960 [main] Reading show_transcode_folder: false (default: true)
DEBUG 2020-01-12 16:57:35.961 [main] Reading show_media_library_folder: false (default: true)
DEBUG 2020-01-12 16:57:35.964 [main] Reading use_cache: false (default: true)
DEBUG 2020-01-12 16:57:35.992 [main] Reading resume: false (default: true)
DEBUG 2020-01-12 16:57:35.994 [main] Reading show_recently_played_folder: false (default: true)
INFO 2020-01-12 16:57:36.097 [main] Checking shared folder: "C:\Users\Mirko\Desktop\Incoming"
DEBUG 2020-01-12 16:57:36.677 [main] Reading mpeg2_main_settings: "Automatic (Wireless)" (default: "Automatic (Wired)")
DEBUG 2020-01-12 16:57:36.687 [main] Reading x264_constant_rate_factor: "Automatic (Wireless)" (default: "Automatic (Wired)")
DEBUG 2020-01-12 16:57:39.483 [main] Checking dbgpack property in UMS.conf
DEBUG 2020-01-12 16:57:39.509 [main] Reading uuid: "473c69e2-3fc5-48f1-904d-f23e092b4ada" (default: null)
INFO 2020-01-12 16:57:39.509 [main] Using the following UUID configured in UMS.conf: 473c69e2-3fc5-48f1-904d-f23e092b4ada
DEBUG 2020-01-12 16:57:39.515 [main] adding C:\ProgramData\UMS\WEB.conf
DEBUG 2020-01-12 16:57:39.516 [main] adding C:\ProgramData\UMS\UMS.conf
DEBUG 2020-01-12 16:57:39.516 [main] adding C:\ProgramData\UMS\debug.log.prev
DEBUG 2020-01-12 16:57:39.516 [main] adding C:\ProgramData\UMS\debug.log
DEBUG 2020-01-12 16:57:39.614 [main] Added file watch at C:\ProgramData\UMS: C:\\ProgramData\\UMS\\UMS.cred
INFO 2020-01-12 16:57:39.625 [main] Loading MediaInfo library
INFO 2020-01-12 16:57:39.909 [main] Loaded MediaInfoLib - v18.12
DEBUG 2020-01-12 16:57:39.909 [main] Setting MediaInfo library characterset to UTF-8
INFO 2020-01-12 16:57:39.909 [main] Loading renderer configurations from C:\Program Files (x86)\Universal Media Server\renderers
DEBUG 2020-01-12 16:57:39.955 [main] Added file watch at renderers: renderers\\AnyCast.conf

Follows in the nex post

Re: [UMS 9.1] Not working because of Java Runtime Environment

Posted: Mon Jan 13, 2020 5:48 am
by Mirkissimo92
Then if I restart (or turn off and then on) the pc and start UMS it won't work and that's the log with the related error:

INFO 2020-01-12 18:29:27.645 [main] Starting Universal Media Server 9.1.0
INFO 2020-01-12 18:29:27.645 [main] Based on PS3 Media Server by shagrath, copyright 2008-2014
INFO 2020-01-12 18:29:27.645 [main] https://www.universalmediaserver.com
INFO 2020-01-12 18:29:27.645 [main]
INFO 2020-01-12 18:29:27.645 [main] Build: 9aab5ac44 (2019-11-01)
INFO 2020-01-12 18:29:27.645 [main] Java: Java HotSpot(TM) 64-Bit Server VM 1.8.0_231 (64-bit) by Oracle Corporation
INFO 2020-01-12 18:29:27.660 [main] OS: Windows 10 64-bit 10.0
INFO 2020-01-12 18:29:27.707 [main] Maximum JVM Memory: 1.1 GiB
INFO 2020-01-12 18:29:27.785 [main] Language: Italian
INFO 2020-01-12 18:29:27.785 [main] Encoding: UTF-8
INFO 2020-01-12 18:29:27.785 [main]
INFO 2020-01-12 18:29:27.785 [main] Working directory: C:\Program Files (x86)\Universal Media Server
INFO 2020-01-12 18:29:27.817 [main] Temporary directory: C:\Users\Amministratore\AppData\Local\Temp\UMS
INFO 2020-01-12 18:29:27.817 [main] Logging configuration file: C:\Program Files (x86)\Universal Media Server\logback.xml
INFO 2020-01-12 18:29:27.817 [main] Logfile: C:\ProgramData\UMS\debug.log
INFO 2020-01-12 18:29:27.817 [main]
INFO 2020-01-12 18:29:27.817 [main] Profile directory: C:\ProgramData\UMS
INFO 2020-01-12 18:29:27.817 [main] Profile directory permissions: drwx
INFO 2020-01-12 18:29:27.832 [main] Profile configuration file: C:\ProgramData\UMS\UMS.conf
INFO 2020-01-12 18:29:27.832 [main] Profile configuration file permissions: -rwx
INFO 2020-01-12 18:29:27.832 [main] Profile name: MIRKO
INFO 2020-01-12 18:29:27.832 [main]
DEBUG 2020-01-12 18:29:27.832 [main] Reading web_conf: "C:\ProgramData\UMS\WEB.conf" (previous: null, default: "C:\ProgramData\UMS\WEB.conf")
INFO 2020-01-12 18:29:27.832 [main] Web configuration file: C:\ProgramData\UMS\WEB.conf
INFO 2020-01-12 18:29:27.848 [main] Web configuration file permissions: -rwx
INFO 2020-01-12 18:29:27.848 [main]
DEBUG 2020-01-12 18:29:27.879 [main] Using database URL: jdbc:h2:C:\ProgramData\UMS\database\medias
INFO 2020-01-12 18:29:27.879 [main] Using database located at: "C:\ProgramData\UMS\database"
DEBUG 2020-01-12 18:29:27.879 [main] Database logging is disabled
ERROR 2020-01-12 18:29:28.191 [main] Database connection error: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-199]

also noticed that in the task manager there are 2 running instances of JRE but I can't figure out why,
Any ideas?
Thanks

Re: [UMS 9.1] Not working because of Java Runtime Environment

Posted: Mon Jan 13, 2020 6:57 pm
by SubJunk
Maybe UMS is already running when the computer starts? Have you tried browsing it on a device?