Page 1 of 1

Deleted folders still appear

PostPosted: Tue Oct 06, 2015 10:32 pm
by gbswales
I recently re-organised my media folders into series eg \program series 1 \program series 2 etc rather than have the files in one folder for a whole series. When I had done this I deleted the old folders from the hard drive and forced a refresh. The new files appear in the right folders in media browser and my Samsung TV but in both places I still see the deleted folders. I have refreshed several times over a couple of days but they are still there. These are all sub folders of the main media directory, I don't understand how it can still be showing folders I have deleted from the drive

Re: Deleted folders still appear

PostPosted: Wed Oct 07, 2015 1:42 am
by DenyAll
These are all sub folders of the main media directory
Was the main shared folder (as appears in Serviio Console, Library tab) also deleted? Is "Search for updates of currently shared files" ticked? Have you restarted the Serviio server?

Re: Deleted folders still appear

PostPosted: Wed Oct 07, 2015 4:04 am
by gbswales
No the top level folder was not deleted
Yes I do have the auto update ticked (which works fine as I add things)
I had not tried stopping the server but I stopped it just now and then restarted it.
but serviio is still displaying the deleted folders. The attached image shows a simplified structure of the problem. The folders were deleted after I moved the video files to the new ones.

One strange thing is that today I deleted another folder and this one is no longer displaying - the only difference was that I deleted the folder while the video files were still in it. - forget this the folder is still showing in servioo!

Re: Deleted folders still appear

PostPosted: Wed Oct 07, 2015 11:20 am
by DenyAll
Strange. What OS are you on?

I am on Win7 and couldn't emulate your issue. I created a folder with two video files in it - folder appeared in Media Browser as did the files. As soon as I deleted the two files, it removed the folder from Mediabrowser ie. I didn't have to delete the folder itself, as soon as it is empty of valid media files it is removed from the Serviio library.

I wonder of what would happen if you recreate the folder "Title\Series1", move a media file to their (check that the file appears) and then move it back - will that make the folder disappear?

Re: Deleted folders still appear

PostPosted: Wed Oct 07, 2015 12:49 pm
by gbswales
I am running Windows 8.1 and from what I can tell now - ANY deleted folder (with or without media) is still displayed in media browser.

I have also tried restarting computer and refreshing serviio but they are still showing its as if syncing removes links to media that is deleted or moved but not the link to a folder that gets deleted

Re: Deleted folders still appear

PostPosted: Thu Oct 08, 2015 4:18 pm
by dates74
I run Windows 7 Professional on my Home Media Server and i use Serviio to provide content to my DLNA devices. I too am having a problem with these deleted folders showing up in my Serviio selections. If I open Serviio on my Panasonic Viera TC-P65VT30 or my Sony XBR-70X850B, and i select videos, then i select folders, then i select a folder that i titled Kids movies, or HD movies. When i open the folder I see folders that I already deleted that once contained content. I deleted the folder off of the HDD but it still shows up in Serviio and i cannot figure out how to remove it. I like serviio and i have used it for years now. I have never had these problems before. I seems like it started happening after a recent update.

Can anyone help? I'd really like to keep using serviio, but as these delete folder continue to accumulate, it has become a practically unusable.

Re: Deleted folders still appear

PostPosted: Thu Oct 08, 2015 6:05 pm
by atc98092
One possibility. When something is deleted from Windows, it isn't really gone. It's moved into a hidden folder at the root of the drive. That's where things in the Recycle Bin actually reside. I've had times that deleted videos are still listed, and I have to remove them from the hidden folder.

Two things you can try. First, don't have any of your folders directly at the root of the drive. That way the hidden trash folder isn't in the Serviio search path. for example, on one of my drives with TV episodes, my folder structure is as follows: I:\Series1\Each Series Folder\. The folder location set in the Serviio console is I:\Series1, NOT I:\.

You can also just manually go to the hidden folder and delete the files/folders from within. You have to enable Viewing Hidden System files in Windows Explorer. I've done it this way, but since you have to do it every time, the first method is preferable.

Re: Deleted folders still appear

PostPosted: Thu Oct 08, 2015 10:55 pm
by gbswales
I understand the theory of what you are suggesting however I already have explorer set to display hidden files and folders but my media partition only shows the three folders I created also serviio points to three specific folders individually rather than the partition. The deleted folders displaying in Serviio were all in the one I have highlighted
folder structure.jpg
folder structure.jpg (55.03 KiB) Viewed 16565 times


With media files and folders I generally use shift + delete so they should not get stored in recycle bin anyway.

Re: Deleted folders still appear

PostPosted: Fri Oct 09, 2015 12:11 am
by atc98092
To see the folder I am referring to, you have to uncheck "Hide protected operating system files (Recommended)". It is considered a system folder, and just showing "hidden" folders won't show it. It should be labeled "$RECYCLE.BIN".

That's why my second suggestion is the easier. Just don't set Serviio to see the root of the hard drive, and these deleted things should go away. Although doing the SHIFT-DELETE should bypass the hidden folder.

Re: Deleted folders still appear

PostPosted: Mon Oct 12, 2015 12:41 am
by dates74
dates74 wrote:I run Windows 7 Professional on my Home Media Server and i use Serviio to provide content to my DLNA devices. I too am having a problem with these deleted folders showing up in my Serviio selections. If I open Serviio on my Panasonic Viera TC-P65VT30 or my Sony XBR-70X850B, and i select videos, then i select folders, then i select a folder that i titled Kids movies, or HD movies. When i open the folder I see folders that I already deleted that once contained content. I deleted the folder off of the HDD but it still shows up in Serviio and i cannot figure out how to remove it. I like serviio and i have used it for years now. I have never had these problems before. I seems like it started happening after a recent update.

Can anyone help? I'd really like to keep using serviio, but as these delete folder continue to accumulate, it has become a practically unusable.



Update: Problem solved: I totally deinstalled Serviio. I reinstalled it, but changed the name of the folder to Serviio 152, just to be certain I had a fresh install. Everything loaded fine and is working perfectly.

try it

Re: Deleted folders still appear

PostPosted: Mon Oct 12, 2015 4:05 am
by gbswales
I had guessed that uninstalling re-installing might get rid of the current problem but I wonder if the problem will return the next time I delete sub -folders.

Re: Deleted folders still appear

PostPosted: Tue Dec 01, 2015 4:16 pm
by MikeH
This drove me mad - Eventually I deleted the folder from Serviio - Library - Folder - and hit Save
Waited a while and added folder in again - all nice and neat - don't know if it will last but it was a fix for me that took little effort !

Re: Deleted folders still appear

PostPosted: Wed Apr 06, 2016 8:51 pm
by falk
This thread shows up first in a Google search, so let me append to it ...

I am having the exact same problem and it is driving me nuts. Serviio 1.6 and MacOSX 10.10.

Deleting and adding the library path, or reinstalling Serviio is no option for me. Because a full fresh Serviio scan takes several days to complete because of the extremely slow code which creates thumbnails for very large images.

Any new insight about this bug in the Serviio delta scanner? It should be a simple piece of Java code. I don't get why it doesn't work as advertized.

Kind regards,
Falk

Re: Deleted folders still appear

PostPosted: Wed Apr 06, 2016 9:14 pm
by zip
It's OS dependent really. OSX though doesn't use the OS events, so it basically monitors a folder state vs what is in memory as a last state of the folder. You can enable detailed log, delete a file / folder and post the log here with details of what you removed.

Re: Deleted folders still appear

PostPosted: Tue Nov 08, 2016 2:26 pm
by keithyv
I have same issue.

I think I renamed some folders but now on remote clients the old folders still show up and an error is thrown when you try to play one of the non-existent files.

V1.7.1.1 (upgraded from earlier version but problem remained)

I've re-created the folders that Serviio thinks at still there , refreshed library but errors remain...
Error:

2016-11-08 22:22:12,752 DEBUG [VideoDAOImpl] Retrieving list of videos for folder 362 (from=0, count=30) [No_Restriction]
2016-11-08 22:22:12,798 ERROR [ContainerNode] Cannot retrieve results of action command: Cannot execute library command for list: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:160)
at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.executeListAction(ContainerNode.java:256)
at org.serviio.upnp.service.contentdirectory.definition.ActionNode.retrieveContainerItems(ActionNode.java:142)
at org.serviio.upnp.service.contentdirectory.ContentDirectoryEngine.browse(ContentDirectoryEngine.java:102)
at org.serviio.upnp.service.contentdirectory.ContentDirectory.Browse(ContentDirectory.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeOperation(ServiceInvoker.java:253)
at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:93)
at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:65)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:66)
at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)
Caused by: java.lang.IllegalArgumentException: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
at java.lang.Enum.valueOf(Enum.java:238)
at org.serviio.library.local.OnlineDBIdentifier.valueOf(OnlineDBIdentifier.java:16)
at org.serviio.library.local.OnlineDBIdentifier$1.enumValue(OnlineDBIdentifier.java:23)
at org.serviio.library.local.OnlineDBIdentifier$1.enumValue(OnlineDBIdentifier.java:20)
at org.serviio.library.local.EnumMapConverter.convert(EnumMapConverter.java:29)
at org.serviio.library.local.OnlineDBIdentifier.parseFromString(OnlineDBIdentifier.java:28)
at org.serviio.library.dao.VideoDAOImpl.initVideo(VideoDAOImpl.java:1558)
at org.serviio.library.dao.VideoDAOImpl.mapResultSet(VideoDAOImpl.java:1482)
at org.serviio.library.dao.VideoDAOImpl.retrieveVideosForFolder(VideoDAOImpl.java:354)
at org.serviio.library.local.service.VideoService.getListOfVideosForFolder(VideoService.java:358)
at org.serviio.upnp.service.contentdirectory.command.AbstractListObjectsByFSHierarchyCommand.getItemsForMediaType(AbstractListObjectsByFSHierarchyCommand.java:256)
at org.serviio.upnp.service.contentdirectory.command.AbstractListObjectsByFSHierarchyCommand.retrieveList(AbstractListObjectsByFSHierarchyCommand.java:124)
at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:154)
... 16 more
2016-11-08 22:22:12,802 WARN [ContentDirectory] Browse for object id V_F^FOL*R1$F274$F362 failed with exception: org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
java.lang.RuntimeException: org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.executeListAction(ContainerNode.java:259)
at org.serviio.upnp.service.contentdirectory.definition.ActionNode.retrieveContainerItems(ActionNode.java:142)
at org.serviio.upnp.service.contentdirectory.ContentDirectoryEngine.browse(ContentDirectoryEngine.java:102)
at org.serviio.upnp.service.contentdirectory.ContentDirectory.Browse(ContentDirectory.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeOperation(ServiceInvoker.java:253)
at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:93)
at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:65)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:66)
at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)
Caused by: org.serviio.upnp.service.contentdirectory.command.CommandExecutionException: Cannot execute library command for list: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:160)
at org.serviio.upnp.service.contentdirectory.definition.ContainerNode.executeListAction(ContainerNode.java:256)
... 15 more
Caused by: java.lang.IllegalArgumentException: No enum constant org.serviio.library.local.OnlineDBIdentifier.5
at java.lang.Enum.valueOf(Enum.java:238)
at org.serviio.library.local.OnlineDBIdentifier.valueOf(OnlineDBIdentifier.java:16)
at org.serviio.library.local.OnlineDBIdentifier$1.enumValue(OnlineDBIdentifier.java:23)
at org.serviio.library.local.OnlineDBIdentifier$1.enumValue(OnlineDBIdentifier.java:20)
at org.serviio.library.local.EnumMapConverter.convert(EnumMapConverter.java:29)
at org.serviio.library.local.OnlineDBIdentifier.parseFromString(OnlineDBIdentifier.java:28)
at org.serviio.library.dao.VideoDAOImpl.initVideo(VideoDAOImpl.java:1558)
at org.serviio.library.dao.VideoDAOImpl.mapResultSet(VideoDAOImpl.java:1482)
at org.serviio.library.dao.VideoDAOImpl.retrieveVideosForFolder(VideoDAOImpl.java:354)
at org.serviio.library.local.service.VideoService.getListOfVideosForFolder(VideoService.java:358)
at org.serviio.upnp.service.contentdirectory.command.AbstractListObjectsByFSHierarchyCommand.getItemsForMediaType(AbstractListObjectsByFSHierarchyCommand.java:256)
at org.serviio.upnp.service.contentdirectory.command.AbstractListObjectsByFSHierarchyCommand.retrieveList(AbstractListObjectsByFSHierarchyCommand.java:124)
at org.serviio.upnp.service.contentdirectory.command.AbstractCommand.retrieveItemList(AbstractCommand.java:154)
... 16 more

Re: Deleted folders still appear

PostPosted: Thu Nov 10, 2016 8:50 am
by zip
I will look at this error. Looks like corrupted DB might be the case but let me double check.

Re: Deleted folders still appear

PostPosted: Tue Sep 05, 2017 7:10 am
by MegaMike
I've experienced this problem too, with deleted files and folders lingering for a long time. I've found that rebooting my computer sometimes helps clear these deleted folders and files.