tv_grab_sd_json stalls retrieving programs

Post Reply
KrazyKitten
Posts: 3
Joined: Sun May 22, 2016 2:45 am

tv_grab_sd_json stalls retrieving programs

Post by KrazyKitten »

I am running the following command:

/usr/bin/perl -w /usr/bin/tv_grab_sd_json --config-file tv_grab_sd_json.conf --output tv_grab_sd_json.out

which produces the following output (with the colons removed from the URLs to get around the forum's silly limitations) and then stalls until killed:

Initializing...
** POST https//json.schedulesdirect.org/20141201/token ==> 200 OK (1s)
** GET https//json.schedulesdirect.org/20141201/status ==> 200 OK
Updating lineups...
** GET https//json.schedulesdirect.org/20141201/lineups/GBR-1000014-DEFAULT ==> 200 OK (1s)
Indexing channels...
Updating schedules...
** POST https//json.schedulesdirect.org/20141201/schedules/md5 ==> 200 OK
** POST https//json.schedulesdirect.org/20141201/schedules ==> 200 OK (2s)
Updating programs...
** POST https//json.schedulesdirect.org/20141201/programs ==> \

Any ideas?

gtb
Posts: 107
Joined: Thu Oct 02, 2014 2:07 pm

Re: tv_grab_sd_json stalls retrieving programs

Post by gtb »

KrazyKitten wrote:
Sat Jul 25, 2020 10:36 am
Any ideas?
While I doubt it is the issue (because that grabber has not seen many updates in the past few years), tv_grab_sd_json is a rather old version of the XMLTV grabber (which was renamed by the XMLTV project sometime in 2017). You should consider updating your XMLTV version to something more recent (although, as I recall, that project was discussing a new release real soon so maybe wait another few weeks?).

As to the hang, I do not see that, but the service does seem to be currently responding somewhat slowly (but I have seen that in the past when the service is updating from its own upstream). The grabber attempts to cache previous results, but if you have not performed a grab in a while, it may end up needing to download a lot of data, and you may need to wait for a somewhat long period of time. Out of curiosity, how long did you wait?

KrazyKitten
Posts: 3
Joined: Sun May 22, 2016 2:45 am

Re: tv_grab_sd_json stalls retrieving programs

Post by KrazyKitten »

Thanks. The overnight run worked (with an 8-second response time for the program retrieval step).

As for the grabber version: the machine running the grabber is still on Ubuntu 16.04.

# apt-cache policy xmltv
xmltv:
Installed: 0.5.67-1+r5152p198~ubuntu16.04.1
Candidate: 0.5.67-1+r5152p198~ubuntu16.04.1
Version table:
*** 0.5.67-1+r5152p198~ubuntu16.04.1 500
500 http//ppa.launchpad.net/mythbuntu/xmltv/ubuntu xenial/main amd64 Packages
500 http//ppa.launchpad.net/mythbuntu/xmltv/ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
0.5.67-0.1 500
500 http//be.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http//be.archive.ubuntu.com/ubuntu xenial/universe i386 Packages

Post Reply