UMS seems to get stuck on last folder when building cache

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
chamelious
Posts: 30
Joined: Wed Mar 05, 2014 5:16 am

UMS seems to get stuck on last folder when building cache

Post by chamelious »

Doesn't seem to mention in the logs, it just remains on "scanning LASTFOLDER" indefinitely, and when UMS is closed and reopened "enable the cache" is no longer selected. Latest version of UMS on W7_64, has defo worked in the past!

Any ideas?
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: UMS seems to get stuck on last folder when building cache

Post by Nadahar »

Follow the red text above.
chamelious
Posts: 30
Joined: Wed Mar 05, 2014 5:16 am

Re: UMS seems to get stuck on last folder when building cache

Post by chamelious »

Attached.
Attachments
ums_dbg.zip
(1.34 MiB) Downloaded 424 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: UMS seems to get stuck on last folder when building cache

Post by Nadahar »

I've looked at it and been unable to replicate your results. The debug files doesn't give me enough information to be sure what is going wrong, although I can see that something is going wrong at the end.

I've built a modified version of UMS with extra logging around the place where it crashed to try to pin exactly what is going wrong. You can download it here. Please install this version, create new debug files while scanning and post them here.
chamelious
Posts: 30
Joined: Wed Mar 05, 2014 5:16 am

Re: UMS seems to get stuck on last folder when building cache

Post by chamelious »

Thanks, installed and rerun.
Attachments
ums_dbg.zip
(1.33 MiB) Downloaded 417 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: UMS seems to get stuck on last folder when building cache

Post by Nadahar »

Your cache is corrupt and disables itself during scan. Not a very good solution, but there is a log entry for it which I missed:

Code: Select all

DEBUG 2016-01-28 08:11:45.740 [AWT-EventQueue-0] net.pms.dlna.DLNAMediaDatabase Cache connection error: File corrupted while reading record: null. Possible solution: use the recovery tool [90030-191]
I don't know which recovery tool the error mentions, the easy solution is to just delete the cache file. The cache file is:

Code: Select all

<UMS profile folder>/database/medias.mv.db
UMS profile folder is by default and in your case located here:

Code: Select all

C:\ProgramData\UMS\
I'll see if I can find any way to make this a bit more clear if it happens, I didn't even spot it myself ;)
chamelious
Posts: 30
Joined: Wed Mar 05, 2014 5:16 am

Re: UMS seems to get stuck on last folder when building cache

Post by chamelious »

Many thanks that seems to have worked.
Post Reply