Cache not updating from custom web UI on Debian
Hi Guys,

I'm having this issue too. The cache used to update automatically as part of the search, now I have to run get_iplayer --refresh before I can search for programs. I have tried rebuilding the cache and also have renamed the old cache files but it makes no difference. Is there a way to put this functionality back?

For reference my outputs are below:

get_iplayer v3.06, Copyright (C) 2008-2010 Phil Lewis
 This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
 This is free software, and you are welcome to redistribute it under certain
 conditions; use --conditions for details.

root@raspberry01:~# perl -MIO::Socket::SSL -e 'print "$IO::Socket::SSL::VERSION\n";'
root@raspberry01:~# perl -MMojolicious -e 'print "$Mojolicious::VERSION\n";'

Why do you think it isn't updating? Remember that it only updates every 4 hours by default, unless you use --refresh or --expiry. Post the output from these commands:
get_iplayer --show-cache-age
get_iplayer --list=channel
get_iplayer --since=72 breakfast
The age of the cache was listed as 17418 seconds (nearly 5 hours). However the next two commands then refreshed the cache. The search method doesn't seem to be doing this. I will now need to wait a few hours before I can re-test this.

I have my own Web UI and when you search it calls the search method. However, since I upgraded it was not including the programmes from the previous evening. I had to refresh the cache from the command line and after that the programmes were visible. I will post my results in the next few hours.

You don't explain what you mean by "the search method", but you've just proved that get_iplayer works just fine and refreshes its cache when searching. That points the finger at your application. Unless you can demonstrate beyond doubt that something is wrong with get_iplayer itself, I won't respond further.
Splitting into separate thread.
The search method as in the command:

get_iplayer news

to search for any programmes with 'news' in the title. I am finding that this is not running the cache update (if required), when previously it did so. You can ignore my application being the problem as all this does is run the command above. For simplicity, I have found that running this on the command line directly does not update the cache when it is over 4 hours old. There was never an issue with refreshing the cache itself, just that it isn't doing this automatically when I run this command. I'm not suggesting anything wrong with get_iplayer, but perhaps something with my setup somewhere, or a config option I'm missing - hence my asking for help.

Anyway, as I said I will wait until the cache is due to update and then I will post the output from the command. Hopefully it will jolt back into life and update the cache.

As I said, you've already demonstrated the opposite. Use --expiry to expire your cache earlier. No need to wait.
And post the output from get_iplayer --prefs-show
Right, just tried again and it seems to be working. So hopefully it was just a glitch.


I had this issue and this solution worked for me but only for the root user. I run the get_iplayer command as sudo from another user, e.g. 'sudo get_iplayer...'. I am finding that the following command is still give me the ssl errors described above.

sudo get_iplayer --refresh

It seems that although the script is run as sudo Mojolicious is still using the wrong libs. Is there a workaround to fix this? I tried installing Mojolicious as the other user but it says I need to be root.

Thanks in advance.
Ok so the issue I'm having is because of the Mojolicious updates. I am running get_iplayer from the web user using sudo and this seems to be using the old libs for some reason. EDIT: link removed

Any help appreciated.
I moved your earlier post back to this thread and removed the link in your last post. I don't want users to get even an inkling that running as root is in any way related to the underlying issue. That's an invitation for people to screw up their installation, so please keep that out of other threads. There should be no reason to run get_iplayer as root unless you are logged in as root. But since you do it anyway, then of course you'll see the old modules. If you create a local module library, it has to be available in the environment of every user who needs it. Presumably you've only configured it for your non-root user according to the instructions in the install docs. You need to set PERL5LIB in the sudo environment the same as in yours.
Ok. I've found the easiest way to get it working is to run the script as the web user. With a few tweaks this seems to be working now. Thanks for your help.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Cache not updating on Debian jlc 11 5,385 31-10-2017, 02:56 PM
Last Post: jlc
  Cannot download schedule pages to update cache on Debian Wheezy pippolippi 3 3,503 26-10-2017, 05:03 PM
Last Post: xiatian
  Mojolicious dependencies not installed with cpan utility on Debian wheezy xiatian 4 3,049 02-10-2017, 05:11 PM
Last Post: xiatian
  Debian Stretch crashes while running get_iplayer with NFS adhawkins 8 3,650 06-08-2017, 08:07 PM
Last Post: adhawkins