FAQ  •  Register  •  Login

Rest API forceLibraryRefresh

<<

rm3086

Serviio newbie

Posts: 10

Joined: Mon Jul 28, 2014 8:01 am

Post Mon Jun 20, 2016 10:41 am

Rest API forceLibraryRefresh

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.
Question everything
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17076

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jun 20, 2016 11:00 pm

Re: Rest API forceLibraryRefresh

That should still work. Are you doing POST?
<<

rm3086

Serviio newbie

Posts: 10

Joined: Mon Jul 28, 2014 8:01 am

Post Thu Jun 23, 2016 7:19 pm

Re: Rest API forceLibraryRefresh

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
Question everything
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17076

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jun 23, 2016 7:44 pm

Re: Rest API forceLibraryRefresh

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.
<<

rm3086

Serviio newbie

Posts: 10

Joined: Mon Jul 28, 2014 8:01 am

Post Sun Jun 26, 2016 9:29 am

Re: Rest API forceLibraryRefresh

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
Question everything
<<

rm3086

Serviio newbie

Posts: 10

Joined: Mon Jul 28, 2014 8:01 am

Post Sun Jul 24, 2016 12:49 pm

Re: Rest API forceLibraryRefresh

***Update****
I patched my server then restarted the NFS service and now everything is working.
Question everything

Return to User experiences

Who is online

Users browsing this forum: No registered users and 9 guests

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