These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Cache not updating from custom web UI on Debian

user-1759

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:

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

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

Thanks.

user-2

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:
Code:
get_iplayer --show-cache-age
get_iplayer --list=channel
get_iplayer --since=72 breakfast

user-1759

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.

Thanks.

user-2

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.

user-2

Splitting into separate thread.

user-1759

The search method as in the command:

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

Thanks.

user-2

As I said, you've already demonstrated the opposite. Use --expiry to expire your cache earlier. No need to wait.

user-2

And post the output from get_iplayer --prefs-show

user-1759

Right, just tried again and it seems to be working. So hopefully it was just a glitch.

Thanks.

user-1759

Hi,

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.

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

user-1759

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.

user-2

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.

user-1759

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.

These forums are archived

See this post for further info