Page 1 of 1

UMS ignores "auto_update = false" and fails updating

Posted: Wed Jul 24, 2024 5:53 pm
by Silencer
1) UMS does not care, that in ums.conf "auto_update = false" has been set. So it tried to update today.
2) As usual updating does not work, is hanging, nothing happens.
Log:
07:10:54 INFO Exception in thread "pool-1-thread-1" java.lang.NullPointerException: Cannot invoke "net.pms.configuration.UmsConfiguration.getProfileDirectory()" because "net.pms.external.update.AutoUpdater.CONFIGURATION" is null
07:10:54 INFO at net.pms.external.update.AutoUpdater.downloadUpdate(AutoUpdater.java:213)
07:10:54 INFO at net.pms.external.update.AutoUpdater.doGetUpdateFromNetwork(AutoUpdater.java:142)
07:10:54 INFO at net.pms.external.update.AutoUpdater.lambda$getUpdateFromNetwork$1(AutoUpdater.java:113)
07:10:54 INFO at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
07:10:54 INFO at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
07:10:54 INFO at java.base/java.lang.Thread.run(Unknown Source)
07:11:29 INFO Listing all users

I cannot reproduce the problem, since after a new start of ums autoupdate does not start again (I am sure it will, when next update is available.)

Re: UMS ignores "auto_update = false" and fails updating

Posted: Thu Jul 25, 2024 2:00 pm
by mik_s
Are you sure auto_update was set to false in UMS.conf before this and not left blank like "auto_update =" ?

By default unset should mean false, but checking on my computer and the "Automatically check for updates" box is ticked in the web settings when this is blank.

There may be something wrong with how UMS is handling the default setting.
I did not get those errors though and saw nothing about checking for updates in the logs, but I am running the latest build directly from Github and don't autoupdate.

Did you keep the logs when this happened? The previous logs will be saved in debug.log.prev.zip but this gets replaced each time UMS is restarted so if you have run it several times since then it will be gone.

Re: UMS ignores "auto_update = false" and fails updating

Posted: Thu Jul 25, 2024 7:05 pm
by Silencer
I had checked the ums.conf in my program directory and in appdata. I thought that was all. Today I did a search for ums.conf on the whole partition and found - surprise :roll: - another ums.conf in c:\programdata. Therein auto_update was empty.
All good, thanks

PS: Btw, I found in debug.log.prev.zip all my locally shared video titles! I don't think, that this is okay in aspect of data protection law or necessary for analysis. Most people uploading this file here will not inspect it before in detail.