Page 2 of 4

Re: Scan media

PostPosted: Mon Mar 02, 2015 11:13 pm
by zip
how does the file look like now?

Re: Scan media

PostPosted: Tue Mar 03, 2015 10:12 am
by Martijn085
zip wrote:how does the file look like now?


The file looks like this:

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

Re: Scan media

PostPosted: Tue Mar 03, 2015 10:27 am
by Martijn085
Console is working again. Will check if this extra options are working. Will come back on this, thanks for the support, again :)

Re: Scan media

PostPosted: Wed Mar 04, 2015 7:20 pm
by Martijn085
Afther one day the POLLER scan has done nothing according the log file

This is on the first start afther change the config, afther that no new scans.

  Code:
2015-03-03 11:28:40,494 INFO  [LibraryDeltaScanner] Added repository 'share' to delta scanner (POLLER)
2015-03-03 11:28:40,510 INFO  [LibraryDeltaScanner] Added repository 'share' to delta scanner (POLLER)
2015-03-03 11:28:40,510 INFO  [LibraryDeltaScanner] Added repository 'share' to delta scanner (POLLER)
2015-03-03 11:28:40,526 INFO  [LibraryDeltaScanner] Added repository 'share' to delta scanner (POLLER)


My scan setting are every 15 minutes...

Re: Scan media

PostPosted: Thu Mar 05, 2015 12:01 am
by zip
Just to confirm, is the 'share' folder a local drive and do you have the correct access rights there for the user running the service?

Re: Scan media

PostPosted: Thu Mar 05, 2015 12:56 am
by madseason41
+1

This worked fine on 1.4.1.2 for me.

Current setup is Serviio 1.5.1 running on ubuntu 14.10 laptop. Sonarr couchpotato etc run on NAS.

I mount NAS shares on ubuntu machine via fstab.

New files that are moved and renamed by couchpotato, sickrage, or Sonarr do not automatically appear in Serviio library.

When I perform a force refresh they appear.

Let me know if this helps. I can post a log if need be.

Re: Scan media

PostPosted: Thu Mar 05, 2015 7:38 pm
by zip
madseason41 wrote:+1

This worked fine on 1.4.1.2 for me.

Current setup is Serviio 1.5.1 running on ubuntu 14.10 laptop. Sonarr couchpotato etc run on NAS.

I mount NAS shares on ubuntu machine via fstab.

New files that are moved and renamed by couchpotato, sickrage, or Sonarr do not automatically appear in Serviio library.

When I perform a force refresh they appear.

Let me know if this helps. I can post a log if need be.

Does it work when you manually move / copy a file into a shared folder on the NAS, rather than having the app do it?

Re: Scan media

PostPosted: Thu Mar 05, 2015 9:43 pm
by madseason41
From a windows computer I copied a video file into the NAS multimedia folder. The file was not recognized until I performed a force refresh.

Re: Scan media

PostPosted: Thu Mar 05, 2015 10:25 pm
by Martijn085
zip wrote:Just to confirm, is the 'share' folder a local drive and do you have the correct access rights there for the user running the service?


This is a samba share. The service is started with a user that has al the persmissions on those shared folders.

Just as @madseason41 sad, on version 1.4.1.2 there where no problems.

Re: Scan media

PostPosted: Thu Mar 05, 2015 10:42 pm
by zip
Martijn085 wrote:
zip wrote:Just to confirm, is the 'share' folder a local drive and do you have the correct access rights there for the user running the service?


This is a samba share. The service is started with a user that has al the persmissions on those shared folders.

Just as @madseason41 sad, on version 1.4.1.2 there where no problems.

Can you post detailed logging of the server starting and 30 seconds after that?

Re: Scan media

PostPosted: Fri Mar 06, 2015 4:14 am
by madseason41
let me know if this suffices. I added a test file, enabled debug logging, and performed a reboot. File was not recognized. I then performed a force refresh and the file was found.

In hind sight i guess I should have uploaded the log for when the library found the file.

let me know if you need that.

Re: Scan media

PostPosted: Sun Mar 08, 2015 5:45 pm
by zip
Thanks.

It looks that Samba shares will not be picked up by the native implementation (inotify in the case of Linux). Try to force the Poller implementation.

http://wiki.serviio.org/doku.php?id=lib ... delta_scan

Alternatively I'm not sure if Samba upgrade would help (here it says that Samba 3.0.25 supports inotify: http://superuser.com/questions/592546/w ... from-linux)

Re: Scan media

PostPosted: Sun Mar 08, 2015 9:24 pm
by Martijn085
zip wrote:Thanks.

It looks that Samba shares will not be picked up by the native implementation (inotify in the case of Linux). Try to force the Poller implementation.

http://wiki.serviio.org/doku.php?id=lib ... delta_scan

Alternatively I'm not sure if Samba upgrade would help (here it says that Samba 3.0.25 supports inotify: http://superuser.com/questions/592546/w ... from-linux)

I already tried the first solution, this one is also not working for me. The poller is set to scan every 15 minutes but there is nothing added to the library.


I'm now back on version 1.4, this one works good with scanning every 15 minutes.

Re: Scan media

PostPosted: Sun Mar 08, 2015 11:34 pm
by zip
Martijn085 wrote:
zip wrote:Thanks.

It looks that Samba shares will not be picked up by the native implementation (inotify in the case of Linux). Try to force the Poller implementation.

http://wiki.serviio.org/doku.php?id=lib ... delta_scan

Alternatively I'm not sure if Samba upgrade would help (here it says that Samba 3.0.25 supports inotify: http://superuser.com/questions/592546/w ... from-linux)

I already tried the first solution, this one is also not working for me. The poller is set to scan every 15 minutes but there is nothing added to the library.


I'm now back on version 1.4, this one works good with scanning every 15 minutes.

So to confirm, you are on Windows, you edited file ServiioService.exe.vmoptions with the 2 lines from posting.php?mode=quote&f=5&p=99038#pr98879 and restarted the service. Right? And even after this, there are no updates after 15 minutes?

I assume you run the service with a user that has access to the NAS. Does this work with local folders?

Re: Scan media

PostPosted: Wed Mar 11, 2015 9:52 am
by Martijn085
zip wrote:So to confirm, you are on Windows, you edited file ServiioService.exe.vmoptions with the 2 lines from posting.php?mode=quote&f=5&p=99038#pr98879 and restarted the service. Right? And even after this, there are no updates after 15 minutes?

I assume you run the service with a user that has access to the NAS. Does this work with local folders?


That all correct, i will test this with local folders and will come back on this one.

Re: Scan media

PostPosted: Fri Mar 13, 2015 12:26 pm
by Martijn085
Is seems that it`s working fine with local folders. With shared folders it isnt working.

Is there any way to bring back the old option from version 1.4.x? Just set a time to scan all share/local folders.

Re: Scan media

PostPosted: Fri Mar 13, 2015 8:56 pm
by zip
Ok, so when I talk about 'shared' folders, i mean the folders you share in the Serviio console, not OS shared.

As i said, try to force POLLER: http://wiki.serviio.org/doku.php?id=lib ... er_scanner

If it still doesn't work, I'll need detailed log. Without it I cannot help.

Re: Scan media

PostPosted: Sat Mar 14, 2015 3:05 am
by stoenjes
serviio.log.debug.zip
(9.88 KiB) Downloaded 249 times

Windows 8.1, shared directories on local drives.
Upgraded to 1.5.1 from 1.4: v1.4 worked fine; with 1.5.1, manually changed files are updated immediately, but recorded TV is not
- recorded TV means I record to an mgeg.TS file, then post-process with command-line Handbrake to convert to .mp4, all in the shared directories.

I saw the post about torrent files and the suggestion to not save in a shared directory, so I thought the same issue could be happening with the Handbrake conversions.

I added
-Dserviio.forceLibraryPoller=true
-Dserviio.libraryPollerFrequency=1
to ServiioService.exe.vmoptions as described in the wiki.

Now, serviio.log shows "Added repository 'D:\Videos' to delta scanner (POLLER)", but even manually added files are not being added; "Force Library Refresh" sill works.

What is going on?

Re: Scan media

PostPosted: Sat Mar 14, 2015 2:55 pm
by stoenjes
I changed back to NATIVE scanning and am trying out ForceServiioRefresh.exe in my post-process batch file.

Stan

Re: Scan media

PostPosted: Sun Mar 15, 2015 11:59 am
by DenyAll
@ stoenjes
I think your posted log file stooped a bit short of the interesting bit. Can you please search your log for something that looks like:

    WARN [MetadataExtractionCoordinator] Skipping processing metadata for an unsupported file (xxxxxxxxxxxx). Message: Unknown video file type.
while you were still in POLLER mode.

ps. Hopefully ForceServiioRefresh.exe will work for you but am trying to understand why the POLLER didn't - it should have. I am wondering if it was updating to often (maybe needed to extend timer to more than 1 minute).