FAQ  •  Register  •  Login

Problem refresh

<<

sam561

Serviio newbie

Posts: 19

Joined: Mon Sep 08, 2014 4:55 pm

Post Mon Sep 08, 2014 4:58 pm

Problem refresh

Hi guys and thanks for the good work with serviio !
I have a problem with the last version 1.4.1.2 the refresh don't work automatically. I must click force refresh and it works, but if i delete a file, the file stay on my tv..
If i update a file it is works automatically, but not when i delete....
Can you help me ? thanks a lot !
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Mon Sep 08, 2014 9:33 pm

Re: Problem refresh

Hi Sam!

I confirm that refresh doesn't work the way is supposed to.

Can you tell us what is happening if you rename a file??

Does your TV shows both of them (old and renamed one) or just the new one?

In my occasion renamed file is still shown as two entries (old and new) both on TV and MediaBrowser.

Force refresh doesn't help in my case!


Best
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Tue Sep 09, 2014 8:33 am

Re: Problem refresh

What is the setting on your "Search for Updates to currently shared files" in the Library, Shared Folders section in Serviio console? Also check the last box on the right is set for each library.

Are you sure your expectations are correct? Automatic means that it will be refreshed every xx minutes (the Refresh interval is set in Serviio Console - by default 5 minutes) - not that it happens instantaneously. See viewtopic.php?f=5&t=10284 - second page is probably more relevant.

In my occasion renamed file is still shown as two entries (old and new) both on TV and MediaBrowser
Interesting - never seen that and I frequently rename files. Weird - does the phantom file appear under the "Folders" category or just the "Movies"/"Series" category. If you still have the phantom file appearing try:

  • create a copy of the file and rename it to whatever the phantom file name was;
  • Force refresh Serviio and make sure its finished refreshing;
  • Delete the File and Force Refresh again
  • Is it gone?
If not repeat, but this time with detailed logging on - it may shed some light on what's happening. Post log here.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Tue Sep 09, 2014 9:43 am

Re: Problem refresh

DenyAll wrote:Are you sure your expectations are correct? Automatic means that it will be refreshed every xx minutes (the Refresh interval is set in Serviio Console - by default 5 minutes) - not that it happens instantaneously. See viewtopic.php?f=5&t=10284 - second page is probably more relevant.

Interesting - never seen that and I frequently rename files. Weird - does the phantom file appear under the "Folders" category or just the "Movies"/"Series" category.



The file appears even now that are days after the original rename action was performed and I have forced refresh the server at least 3 or 4 times after that.

Yes! It is shown under the Folders category! I have disabled all other categories plus I have metadata disabled.

The weirdest thing is that no matter which file I select (original / renamed) all of them are playing. I have now 3 copies of the same video file with 3 different names and all 3 are played correctly (with the exception of the subtitles that only work with the file that has the same name as the subtitle file which is expected). I must mention here that the rename was just to change small letters to capital ones and vice versa if that makes any difference and not rename totally the file itself.

I will perform some new tests and post the results here.

Ahhh btw I am on Mac OS X 10.9.4 if that makes any difference.

Regards
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Tue Sep 09, 2014 11:08 am

Re: Problem refresh

Tested on Windows and it works. Interestingly, if I rename a file say from "Thor (2011).mkv" to say "thOr (2011).mkv" the file, while only appearing once, appears as the original name (ie. as "Thor (2011).mkv").

This makes sense if my understanding of what Serviio does is correct: Serviio checks to see whether the filename "thOr (2011).mkv" is in its library database. For Windows the check is not case sensitive so it finds it (as "Thor (2011).mkv") and takes no action - ie. it doesn't modify its database. As such the database still refers to "Thor (2011).mkv" - but it doesn't matter - the file plays fine, because a file open/play command in Windows also isn't case sensitive.

In your case (if confirmed by other MAC users) we may have a bug. I am guessing that the check for new files on the MAC is case sensitive - when you rename the file it sees it as a new entry and adds it to the database. When it scans the database though for deletions, I am guessing once again that this time it's not case sensitive - it finds the file (albeit as a "case incorrect" name) but treats it as a "confirmed file" and therefore doesn't remove it from the database. They all play because they all point to a filename that is still valid (although case is different).

So one of two things needs to happen - it goes the Windows method and ignores case when matching for new files, or it stays case sensitive but has to also do that when scanning for deletions. Either way will work.

First things first though - we need another MAC user to confirm they get the same result when changing only the case of the letters in the filename.
Also, can you test what happens if its more than just a case change (if you add an XX to the file name, if what I suspect is true it should delete all phantoms after refreshing - you can then rename it back and refresh again).

<Edit> I looked in my debug log and I get statements like this:
2014-09-09 20:44:38,194 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: F:\Video\Movies\Paul.avi, ignore case: true
Do you get similar (particularly the bit in red)
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Tue Sep 09, 2014 12:06 pm

Re: Problem refresh

I renamed the file "Movie-2hd.mp4" into "Movie-2HD.mp4" and the debug log showed this:

2014-09-09 14:48:55,878 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 14:48:56,428 INFO [LibraryAdditionsCheckerThread] Added file 'Movie-2HD.mp4' (title: Movie-2HD) to Library
2014-09-09 14:50:12,763 INFO [LibraryAdditionsCheckerThread] Finished looking for newly added files

Afterwards I renamed it back to "Movie-2hd.mp4" forced recheck a few times but always without any result except the following:

2014-09-09 14:50:13,096 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-09 14:50:13,096 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 14:50:36,768 INFO [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-09 14:50:36,938 INFO [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2014-09-09 14:50:37,113 INFO [LibraryAdditionsCheckerThread] Started looking for newly added files
2014-09-09 14:50:37,113 INFO [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2014-09-09 14:50:37,633 INFO [LibraryAdditionsCheckerThread] Finished looking for newly added files
2014-09-09 14:50:37,805 INFO [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files



The second test was to rename it completely from "Movie-2hd.mp4" into "A.mp4"

Suddenly all the phantom files disappeared and I can only see the A.mp4.

The log is full with rows of "Removing item....from Library"

Moved back "A.mp4" into "Movie-2hd.mp4" forced recheck and everything seems fine!



Did the same procedure for two more files and the results were consistent with my first findings.


Best
<<

sam561

Serviio newbie

Posts: 19

Joined: Mon Sep 08, 2014 4:55 pm

Post Tue Sep 09, 2014 2:32 pm

Re: Problem refresh

the problem is just happen when i delete a file.. but if i read correctly, i must wait one hour for the file doesn't appear in my Library ?
thanks a lot
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Tue Sep 09, 2014 4:05 pm

Re: Problem refresh

sam561 wrote:the problem is just happen when i delete a file.. but if i read correctly, i must wait one hour for the file doesn't appear in my Library ?
thanks a lot


Sam,

you can force e refresh of your server and see if it works directly, as soon as it finishes.

Best,
<<

sam561

Serviio newbie

Posts: 19

Joined: Mon Sep 08, 2014 4:55 pm

Post Tue Sep 09, 2014 7:49 pm

Re: Problem refresh

Its work if i force a refresh after i deleted a file..but i think it was automatic..like other dlna software.. I must wait an hour if i m not force ?
Thanks
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Wed Sep 10, 2014 11:01 am

Re: Problem refresh

As DenyAll mentioned earlier in this post there is a default Refresh interval...

DenyAll wrote:Automatic means that it will be refreshed every xx minutes (the Refresh interval is set in Serviio Console - by default 5 minutes) - not that it happens instantaneously.



Best,
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Sep 10, 2014 11:56 am

Re: Problem refresh

Automatic refreshing is on the radar for a future development (maybe next release) but in the mean time if you want it, and are a Windows user, you can use my WinHelper tool: viewtopic.php?f=17&t=12136.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Wed Sep 10, 2014 12:00 pm

Re: Problem refresh

OffTopic:

"DenyAll", should I open a new topic regarding the refresh problem @ Macintosh when a rename is taking place with just changing capital <-> small or can we continue here?

Is it proper to post a bug directly?
<<

sam561

Serviio newbie

Posts: 19

Joined: Mon Sep 08, 2014 4:55 pm

Post Wed Sep 10, 2014 12:21 pm

Re: Problem refresh

DenyAll wrote:Automatic refreshing is on the radar for a future development (maybe next release) but in the mean time if you want it, and are a Windows user, you can use my WinHelper tool: viewtopic.php?f=17&t=12136.


yes, i try, i use it for stop the pc sleep.. it's a very good software !
I try for refreshing, after 30 second, the file is deleted on my Library (not instantaneously) but it is far better !
thanks
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Wed Sep 10, 2014 2:21 pm

Re: Problem refresh

@sam561: yes, the delay is intentional.
It was designed to cater for long file operations (eg. copying a large file, or deleting lots of files). In these cases lots of file changes events are triggered by the OS - if we didn't delay, Serviio would respond to each one and I'd tie the system up constantly refreshing. So the way I designed it was to wait until it received no further file change notifications for one minute, then trigger the refresh.

@irdet2: perhaps best to start a new topic. We need another MAC user to confirm that it occurs for them (and that it's not something local on your system). Once that is done we can raise a bit bucket request if zip doesn't pick it up directly - if it is a bug I suspect it's an easy one to address.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

irdet2

Streaming enthusiast

Posts: 21

Joined: Sat Sep 06, 2014 1:22 pm

Post Wed Sep 10, 2014 7:00 pm

Re: Problem refresh

OffTopic: Can some forum admin merge the revelant to this topic viewtopic.php?f=5&t=17561 posts in that one?

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 38 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.