These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

PVR list created in Web PVR launched by cron is not visible from command line

user-275

I'm running gip 2.96 on Ubuntu 16.04. After upgrading from 2.95, I got an error that get_iplayer_web_pvr was missing from /etc/default. I replaced that with:

# use 0.0.0.0 to bind to all interfaces
# LISTEN=127.0.0.1
LISTEN=0.0.0.0

# port must be more than 1024 for unprivileged users
PORT=1935


Web_PVR now launches correctly (using cron from reboot) but when I add new programs using the Web_PVR client, they don't show up in ./get_iplayer/pvr. They are on the Web_PVR list, but those choices are not picked up by my get_iplayer --pvr cron job. 

I'm sure there is something amazingly obvious that I am missing, but I seem to be unable to figure out what is wrong.

Any help much appreciated.

Chris

user-2

(21-08-2016, 09:13 PM)After upgrading from 2.95, I got an error that get_iplayer_web_pvr was missing from /etc/default.
That file isn't deleted unless you purge the package or delete it yourself. If you think there is an installation problem, take it upstream to the get_iplayer PPA. I don't provide the Ubuntu package, so it is not supported here.
(21-08-2016, 09:13 PM)# LISTEN=127.0.0.1
LISTEN=0.0.0.0
Obligatory warning: Don't do that if your machine is exposed to any public network.
(21-08-2016, 09:13 PM)Web_PVR now launches correctly (using cron from reboot) but when I add new programs using the Web_PVR client, they don't show up in ./get_iplayer/pvr. They are on the Web_PVR list, but those choices are not picked up by my get_iplayer --pvr cron job. 
You should never declare your profile directory as "." - you will spatter your settings across whatever directories you happen to be working in. I suspect you haven't actually done that, but a warning is necessary just in case.

My guess is that your cron job is running with a different effective UID, e.g., you put it in the root crontab instead of your own. That means the profile directory containing pvr jobs is in the home directory of that other user, probably root.

user-275

Thanks Dinky!

You were exactly correct. 

A) Should have used purge rather than cleaning up by hand. Purge restored the status quo
B) I am using the full path rather than ./get_iplayer/pvr - just a lazy typist
C) I must have been sleep typing. I've no idea why or how I put my cron jobs under the root UID. 

Everything working beautifully now. Thanks for the help and the workaround for the current audio synch problems.

Chris

These forums are archived

See this post for further info