Page 4 of 4

Re: Scan media

PostPosted: Sat Jan 23, 2016 10:48 am
by zip

Re: Scan media

PostPosted: Sat Jan 23, 2016 5:07 pm
by mklim
zip wrote:Did you try the forced poller? http://wiki.serviio.org/doku.php?id=lib ... er_scanner



Yes I did. This is how my ServiioService.exe.vmoptions looks:

-Xmx512m
-Dserviio.libraryPollerFrequency=15
-Dserviio.forceLibraryPoller=true

Re: Scan media

PostPosted: Sat Jan 23, 2016 7:45 pm
by zip
Does the Serviio service user have access to the NAS?

Re: Scan media

PostPosted: Sun Mar 12, 2017 8:21 pm
by Martijn085
Since version 1.8 i have this same issue that new media doesn't renew.

My file looks like this:

-Xmx512m
-Dserviio.libraryPollerFrequency=15
-Dserviio.forceLibraryPoller=true

Re: Scan media

PostPosted: Sun Mar 12, 2017 9:57 pm
by DenyAll
In version 1.8 you set the use of the Poller in Serviio Console, against each share you want to poll, rather than using the
-Dserviio.forceLibraryPoller=true switch (which did all shares - you had no way of only doing selected shares).

So, removed the forceLibraryPoller switch, and then select the Use Poller option for each share in Serviio Console and you should be fine.

Re: Scan media

PostPosted: Mon Mar 13, 2017 10:24 pm
by Martijn085
Nice! Thanks, works great again.

Re: Scan media

PostPosted: Tue Jan 21, 2020 9:26 am
by Paddynski
Hi

I have Serviio 2.0 running on Windows 10 and I have the same problem where any new files I add to my shared folders are not detected. I go to the logs to find-out what is going on but I am confused by the following.

Each time I manually rescan my library, I get the following in the log implying that the scam is being interrupted. Any ideas what could be the reason for that?

  Code:
2020-01-21 09:16:50,736 INFO  [LocalLibraryManager] Starting manual library scan
2020-01-21 09:16:50,737 INFO  [LibraryOneTimeScanner] Interrupting library scan


Can I force a rescan on a regular basis?

Regards

Patrick

Re: Scan media

PostPosted: Wed Jan 22, 2020 12:19 pm
by Paddynski
Hi

DenyAll wrote:In version 1.8 you set the use of the Poller in Serviio Console, against each share you want to poll, rather than using the
-Dserviio.forceLibraryPoller=true switch (which did all shares - you had no way of only doing selected shares).

So, removed the forceLibraryPoller switch, and then select the Use Poller option for each share in Serviio Console and you should be fine.


I double and triple checked and I can confirm that the poller switch is on for all my shares. Still my new files are not appearing in Serviio. Any ideas?

I checked the shared folder outside Serviio and new files are definitively there!

Regards

Patrick

Re: Scan media

PostPosted: Thu Jan 30, 2020 1:47 pm
by mrkrbsn
I'm having a similar problem with the library not updating.

I see in the log that the new file that is added is detected and added to the delta queue. However after that the file is not indexed.
If I force refresh not a lot happens.

If I stop the server AND stop the windows Serviio service, then restart both again files begin to appear. But soon stops again.

Looking further it seems like the point it goes wrong is when the 'LibraryHelper' kicks in and tries to lock a file. e.g. see example below.
Once this happens it somewhat falls through all other folders and doesn't try to check or add files.
My guess is an error occurs during this file check, which then stuffs up the file adding.
Note: This seems to be something that started happening only recently.

I looked at the particular file it stopped at and interestingly the check box on the advanced attributes of the file had the 'Encrypt contents to escure data' flag set. I removed this and that file added to the library.

My guess is that this flag is preventing Serviio from reading the file, then serviio stops looking anymore. Hope this helps.


This may help identify what is going wrong here.

DEBUG [MediaItemDAOImpl] Looking up a media item for file path: H:\Family Files\Pictures\2014\January\Trip\IMG_2743.JPG, ignore case: true
DEBUG [MediaItemDAOImpl] Media item H:\Family Files\Pictures\2014\January\Trip\IMG_2743.JPG doesn't exist in DB yet
DEBUG [MediaFileIndexer] File not in Library, will add it
DEBUG [LibraryHelper] Checking if the file is complete using file lock
DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: H:\Family Files\Pictures\2015\June
DEBUG [LibraryOneTimeScanner] Looking for files to share in folder: H:\Family Files\Pictures\2015\June

Re: Scan media

PostPosted: Thu Jan 30, 2020 1:55 pm
by mrkrbsn
Just an update. After searching for any files that had the encrypted status set (search using encryptionstatus:encrypted) this has unblocked the library indexing. I'm now watching lots of files appear in the library. :)

I never set this flag - so wondering if this was serviio(?) or perhaps something else that has just been a lurking setting. i.e. when I added those files to the library this messed up the indexer.

Re: Scan media

PostPosted: Thu Jan 30, 2020 4:17 pm
by atc98092
mrkrbsn wrote:Just an update. After searching for any files that had the encrypted status set (search using encryptionstatus:encrypted) this has unblocked the library indexing. I'm now watching lots of files appear in the library. :)

I never set this flag - so wondering if this was Serviio(?) or perhaps something else that has just been a lurking setting. i.e. when I added those files to the library this messed up the indexer.


Doubt it's Serviio doing it. All the years and different versions I've installed I've never encountered an encrypted file. I didn't even know Windows supported file encryption like that. Never saw that search command before. Glad you figured it out.