[mythtvnz] Help-can't get grabber and mythfilldatabase to work right

Tim Westbrook iondiode at gmail.com
Mon Apr 22 10:38:34 BST 2013


On 22 April 2013 21:08, Chris Bannister <cbannister at slingshot.co.nz> wrote:
> On Mon, Apr 22, 2013 at 07:05:15PM +1200, Tim Westbrook wrote:
>> No worries, just as an example, I have a wonky vpn configured. For
>> some reason some stuff works , but epg.org.nz does not want to work on
>> it. If I run the mythfill database script with no options while my vpn
>> is enabled I get
>>
>> iondiode at iondiode-Dell-DM051:~$ mythfilldatabase
>> <snip>
>> 2013-04-22 18:52:13.775230 I  Loading en_us translation for module mythfrontend
>> 2013-04-22 18:52:13.778125 I  Current MythTV Schema Version (DBSchemaVer): 1299
>> 2013-04-22 18:52:13.821656 I  Updating source #1 (hd0) with grabber
>> tv_grab_nz-py
>> 2013-04-22 18:52:13.822127 I  Found 13 channels for source 1 which use grabber
>> 2013-04-22 18:52:13.822532 I  Starting process manager
>> 2013-04-22 18:52:13.822624 I  Starting process signal handler
>> 2013-04-22 18:52:13.822834 I  Starting IO manager (write)
>> 2013-04-22 18:52:13.838326 I  Starting IO manager (read)
>> 2013-04-22 18:52:14.073280 I  Grabber has capabilities: baseline
>> manualconfig preferredmethod cache
>> 2013-04-22 18:52:14.225313 I  Grabber prefers method: allatonce
>> 2013-04-22 18:52:14.226055 I  XMLTV config file is:
>> /home/iondiode/.mythtv/hd0.xmltv
>> 2013-04-22 18:52:54.681924 E  FillData: xmltv returned error code 1
>> 2013-04-22 18:52:54.682838 E  Error in 1:1: unexpected end of file
>
>> While if I run it with vpn down
>>
>> iondiode at iondiode-Dell-DM051:~$ mythfilldatabase
>> <snip>
>> 2013-04-22 18:44:36.322850 I  Current MythTV Schema Version (DBSchemaVer): 1299
>> 2013-04-22 18:44:36.365834 I  Updating source #1 (hd0) with grabber
>> tv_grab_nz-py
>> 2013-04-22 18:44:36.366328 I  Found 13 channels for source 1 which use grabber
>> 2013-04-22 18:44:36.366839 I  Starting process manager
>> 2013-04-22 18:44:36.367034 I  Starting IO manager (read)
>> 2013-04-22 18:44:36.370244 I  Starting process signal handler
>> 2013-04-22 18:44:36.370593 I  Starting IO manager (write)
>> 2013-04-22 18:44:36.570823 I  Grabber has capabilities: baseline
>> manualconfig preferredmethod cache
>> 2013-04-22 18:44:36.771883 I  Grabber prefers method: allatonce
>> 2013-04-22 18:44:36.772678 I  XMLTV config file is:
>> /home/iondiode/.mythtv/hd0.xmltv
>> 2013-04-22 18:44:39.088384 I  IconData: Updating icons for sourceid: 1
>> 2013-04-22 18:44:39.610918 N  Unknown xmltv channel identifier:
>> choice.freeviewnz.tv - Skipping channel.
>> 2013-04-22 18:44:40.634126 N  Unknown xmltv channel identifier:
>> parliament.freeviewnz.tv - Skipping channel.
>
> It would be interesting to see what the "Unknown xmltv channel
> identifier" is. Whatever it is, vpn "doesn't seem" to like it.
>
> I'm guessing the "Unknown xmltv channel identifier" is seen by vpn as
> EOF ?
>
> Of course, it could be a red herring. :(
>
> --
> "If you're not careful, the newspapers will have you hating the people
> who are being oppressed, and loving the people who are doing the
> oppressing." --- Malcolm X
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

Not sure, something weird with my name server or something, not really
important that I run vpn all the time anyway.

If I run the script by itself, while the vpn is enabled I get the
following error after about a minute ( which seems to be the same
delay from the log)

INFO - Downloading data from epg.org.nz...
Traceback (most recent call last):
  File "/usr/local/bin/tv_grab_nz-py", line 254, in <module>
    text = getListings(cache=options.cache)
  File "/usr/local/bin/tv_grab_nz-py", line 84, in getListings
    res = doDownload(source)
  File "/usr/local/bin/tv_grab_nz-py", line 61, in doDownload
    h.request('GET', url, headers=headers)
  File "/usr/lib/python2.7/httplib.py", line 958, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 992, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 814, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 776, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 757, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 553, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known

I guess my point is more that a network problem (or a crashing script)
can cause the error Paul was initially seeing

Cheers,
Tim



More information about the mythtvnz mailing list