Marked as played resets after restart

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

Re: Marked as played resets after restart

Post by mik_s »

I think this confirms another copy of UMS is running as when you quit UMS it should release the database.

I'm suspecting it could be running as a service if you find it in the registry in any section other than firewall rules, I just checked mine and this is where it shows up for UMS but javaw.exe is also used by several other programs on my system so you may find multiple entries too.

Try running Services.msc from the windows search bar and see if there is an entry there for UMS.
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.
Fredo1650
Posts: 13
Joined: Fri Mar 01, 2024 2:49 am

Re: Marked as played resets after restart

Post by Fredo1650 »

Hello, maybe related to the problem that I posted on the Updating Fully Played Thumbnails #4608
https://github.com/UniversalMediaServer ... ssues/4608

Update folder contents when thumbnail is updated #2664
https://github.com/UniversalMediaServer ... ssues/2664

Fully played media bug #4592
https://github.com/UniversalMediaServer ... ssues/4592

It would be necessary to compare the television and the UMS WEB player if they have the same information on the media marked fully played
User avatar
mik_s
Moderator
Posts: 1134
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Marked as played resets after restart

Post by mik_s »

I thought about that but in this case the database is not being used due to corruption.
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.
hego
Posts: 9
Joined: Mon Mar 14, 2022 8:26 am

Re: Marked as played resets after restart

Post by hego »

Hi all,

Here is the current status.

I uninstalled both UMS and Java, removed the shortcut from my startup folder, restarted the computer, and reinstalled UMS with the basic conf and just one share. I realized that now the old settings are very different, and have fewer options. I didn't select the option to start with Windows, but UMS is doing it anyway.

And now it doesn't mark the files as played anymore. 😣 So before I uninstalled it, it marked the files as played but the mark disappeared after the restart; now there is no marking at all. At least it seems that the ghost instance is not there anymore because every time I restart the server the web interface opens whereas before this only happened when I restarted the computer.

Any ideas?
Attachments
_ums_dbg_2024-05-01-17-56.zip
(2.05 MiB) Downloaded 2 times
hego
Posts: 9
Joined: Mon Mar 14, 2022 8:26 am

Re: Marked as played resets after restart

Post by hego »

mik_s wrote: Wed Apr 24, 2024 3:43 pm I think this confirms another copy of UMS is running as when you quit UMS it should release the database.

I'm suspecting it could be running as a service if you find it in the registry in any section other than firewall rules, I just checked mine and this is where it shows up for UMS but javaw.exe is also used by several other programs on my system so you may find multiple entries too.

Try running Services.msc from the windows search bar and see if there is an entry there for UMS.
There was nothing on services.
User avatar
mik_s
Moderator
Posts: 1134
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Marked as played resets after restart

Post by mik_s »

From these new logs everything looks normal now as far as I can tell and the database is working. The web interface opening is also a sign of some conflict before as it should open to allow you to set or turn off user accounts on first run. You can turn off the option to open the web GUI on startup.

As for marking as played I only saw one video being played but the watch time is no where near the total time so it was not marked as played.

Code: Select all

net.pms.dlna.MediaMonitor Fully Played feature logging:
net.pms.dlna.MediaMonitor    duration: 1299.426
net.pms.dlna.MediaMonitor    getLastStartPosition: 611.1915524101053
net.pms.dlna.MediaMonitor    getStartTime: 1714607444995
net.pms.dlna.MediaMonitor    getLastStartSystemTimeUser: 0
net.pms.dlna.MediaMonitor    elapsed: 214.425
net.pms.dlna.MediaMonitor    minimum play time needed: 1195.47192
...
net.pms.dlna.MediaMonitor final decision: not fully played
There may be problems with the elapsed time calculations though as when I was doing testing of V14 I would have videos marked as played (and them moved to another folder due to my settings) when only viewing a few seconds. Other times it would not mark when I had fully played.

You should be able to mark a whole folder as played in the shared folders section in the web interface. I don't know if you have tried this as I don't know what to look for in the logs if it is used.

Also as @Fredo1650 mentioned another problem could be your TV keeping a cache of the thumbnails so if it does not know the thumbnail has changed then it will not load the new one. You can check to see if the TV is a factor by looking at the web player as that will always update.

I don't know why UMS started with windows even though you did not select that option on install. Maybe something is not working right with the installer or some remnant of the previous install still exists. I suggest you try Autoruns (part of Sysinternals suite from Microsoft) as it will show every program and process that will start with windows and when, and allow you to disable them. It may have been that UMS was auto starting on each user login.
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.
Post Reply