Page 1 of 1

Rest API forceLibraryRefresh

PostPosted: Mon Jun 20, 2016 10:41 am
by rm3086
Hello,
I am currently using Serviio 1.6.1 and 1.5.2 and have notice that the rest api call to force a rescan(/usr/bin/wget -qO- http://192.168.0.100:23423/rest/action/ ... aryRefresh) no longer works. The log on the serviio server shows: WARN [ServiioStatusService] Returning error code to the REST layer: Not Found (404) - The server has not found anything matching the request URI. This is needed since my Serviio is crawling a NAS device. Serviio fails many times to detect if a file has been added or deleted in a reasonable time span (24 hrs). Since I know exactly when a file is added or been deleted it much better to call it when I needed than have a poller running in the background increasing network chatter for no reason.

Re: Rest API forceLibraryRefresh

PostPosted: Mon Jun 20, 2016 11:00 pm
by zip
That should still work. Are you doing POST?

Re: Rest API forceLibraryRefresh

PostPosted: Thu Jun 23, 2016 7:19 pm
by rm3086
Hello,
Actually I am not explicitly calling a post. Is that needed post version 1.4.x? This works on my 1.4 system. Also is there a way to query if the library is crawling the content. http://localhost:23423/rest/library-status no longer reports back that a crawl is in progress.


Thanks

Re: Rest API forceLibraryRefresh

PostPosted: Thu Jun 23, 2016 7:44 pm
by zip
no, it was always a POST. see the API docs.

The status payload probably changed, because library refresh is now mostly done by the OS events, so it does not really make sense now to have that field.

Re: Rest API forceLibraryRefresh

PostPosted: Sun Jun 26, 2016 9:29 am
by rm3086
Hello,
Thanks using the post worked. The OS events are not working to well for me. My system is using NFS automounts, maybe that is a problem. If something is deleted at best it will take 24hrs, but mainly Serviio is never updated till I run a force refresh. What is the last version of Serviio that I can get a status if there is a force refresh in progress?

Thank you

Re: Rest API forceLibraryRefresh

PostPosted: Sun Jul 24, 2016 12:49 pm
by rm3086
***Update****
I patched my server then restarted the NFS service and now everything is working.