Bug? Files kept open

For help and support with Universal Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
galmok
Posts: 13
Joined: Wed Mar 26, 2014 10:31 pm

Bug? Files kept open

Post by galmok » Sun Nov 12, 2017 10:14 pm

I am sometimes using UMS to watch videos that I later want to move or delete. But UMS keeps the files open, preventing the deletion. Quitting UMS releases the files and I can do as I want.

Has anyone else experienced this?

Using UMS 6.7.4.

galmok
Posts: 13
Joined: Wed Mar 26, 2014 10:31 pm

Re: Bug? Files kept open

Post by galmok » Thu Nov 16, 2017 1:45 am

I want to add that UMS only locks the files I have been watching.

If I later want to delete them, the delete appears to have worked in that it doesn't error (the first time), but the files remain where they are. Quitting UMS at this point apparently makes the delete continue and the files are removed.

I have verified with Process Hacker that it is indeed UMS that is keep the files open (and hence locked).

User avatar
Sami32
Posts: 793
Joined: Mon Apr 11, 2016 5:09 am

Re: Bug? Files kept open

Post by Sami32 » Thu Nov 16, 2017 2:20 am

In our Wiki, it is write that in the "Navigation/Share Settings" tab, using "Fully played action" -> Move file to recycle/trash bin, will do the job. You've plenty of others options as explained in our Wiki.

The media are kept locked when video resuming is enabled, and perhaps also when monitoring is enabled. Options that you choose from the "Navigation/Share Settings" tab.
Into our Wiki and UMS.conf you will find more informations how to change the minimal value to be considered as a media fully played.

User avatar
Nadahar
Developer
Posts: 914
Joined: Tue Jun 09, 2015 5:57 pm

Re: Bug? Files kept open

Post by Nadahar » Thu Nov 16, 2017 2:25 am

@Sami32 I'm not so sure they are supposed to be kept open; in fact I'm quite sure they shouldn't. A filesystem can only have so many files open, so it will lead to a failure to open new files eventually. It's probably a bug, but tracking it down and fixing it seems like something I'm not up for at the moment.

It would be interesting to know if this is always the case, or if it's only the case either when transcoding or not transcoding.

User avatar
Sami32
Posts: 793
Joined: Mon Apr 11, 2016 5:09 am

Re: Bug? Files kept open

Post by Sami32 » Thu Nov 16, 2017 2:36 am

@Nadahar I don't use resuming so let's presume that it is not a bug ;)
But knowing as buggy is the resume code...
Last edited by Sami32 on Thu Nov 16, 2017 3:51 am, edited 1 time in total.

galmok
Posts: 13
Joined: Wed Mar 26, 2014 10:31 pm

Re: Bug? Files kept open

Post by galmok » Thu Nov 16, 2017 2:44 am

Well, IMHO it doesn't seem like good practice to keep files open in case the user might want to access it again later. The file can easily be reopened, and if gone at that time, cancel any operation related to it. The files are kept locked for days on end.

User avatar
Sami32
Posts: 793
Joined: Mon Apr 11, 2016 5:09 am

Re: Bug? Files kept open

Post by Sami32 » Thu Nov 16, 2017 3:50 am

@galmok Can you confirm that it doesn't happen if you disable "Resume" and/or don't monitor the folders ? Thanks.

Post Reply