[mythtv-users] Trying to get schedules direct working
Nick Morrott
knowledgejunkie at gmail.com
Sun May 17 17:42:31 UTC 2026
On Sun, 17 May 2026 at 17:54, Douglas Peale via mythtv-users
<mythtv-users at mythtv.org> wrote:
<snip>
> 2026-05-17 09:34:11.168185 I Updating source #4 (North) with grabber tv_grab_zz_sdjson
> 2026-05-17 09:34:11.168827 I Found 119 channels for source 4 which use grabber
> 2026-05-17 09:34:11.479339 I Grabber has capabilities: baseline manualconfig preferredmethod
> 2026-05-17 09:34:11.779742 I Grabber prefers method: allatonce
> 2026-05-17 09:34:11.780181 I XMLTV config file is: /home/mythtv/.mythtv/North.xmltv
> 2026-05-17 09:34:12.080645 E XMLTV grabber returned error code 13
> 2026-05-17 09:34:12.080909 E Malformed XML file, missing </tv> element, at line 1, Premature end of document.
<snip>
> So I don't know why it works as me, but not as mythtv
>
> Perhaps it is this line: cache=/home/dpeale/.xmltv/tv_grab_zz_sdjson.cache in the xmltv files. I will change that.
>
> That worked. Would have been nice if there had been an error message like "unable to open cache
> /home/dpeale/.xmltv/tv_grab_zz_sdjson.cashe" in that list of messages above. "Error 13" does not mean much to me.
I Googled "XMLTV grabber returned error code 13" and it returned a
thread from 2020 with you having the exact same problem, and arriving
at the same solution:
https://lists.mythtv.org/pipermail/mythtv-users/2020-September/404892.html
> Thanks for the help. I will update my notes for next time, and I hope next time I have to re-install my system it does not
> require a week of debugging to get working again.
One should always ensure (and this applies to anyone sharing config
files) that any data/cache directories specified during configuration
have the correct permissions/ownership when the config file is
created. Similar "Here Be Dragons" warnings apply when creating a
config under one user account to be used exclusively by another user.
When sharing between multiple users one might prefer to use /tmp or
/var for the purpose of shared cache dirs, over a path under /home,
and use group ownership to control access.
I am relieved to see that you are back up and running. I will dig into
the error message that gets inserted into the backend log - "error
code 13" is clearly not very useful to end-users.
Cheers,
Nick
More information about the mythtv-users
mailing list