UMS ignores "auto_update = false" and fails updating

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Silencer
Posts: 10
Joined: Sun Jun 21, 2015 8:47 pm

UMS ignores "auto_update = false" and fails updating

Post 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.)
User avatar
mik_s
Moderator
Posts: 1430
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

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

Post 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.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Silencer
Posts: 10
Joined: Sun Jun 21, 2015 8:47 pm

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

Post 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.
Post Reply