News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

[SOLVED] MythTv FAILED: xmltv returned error code 256

Started by RayBe, July 19, 2011, 01:17:57 PM

Previous topic - Next topic

RayBe

i am using  tv_grab_nl_py-r104 as my grabber,
whenever i run mythfilldatabase, mythweb backend status shows:
Last mythfilldatabase run started on 2011-07-19 06:54 and ended on 2011-07-19 07:03. FAILED: xmltv returned error code 256.
There's guide data until 2011-07-25 09:55 (6 days).

any thoughts on how to solve this?

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

purps

Permissions problem?

Apparently running...

mythfilldatabase --graboptions "--debug"

...might give you more info, BUT I HAVE NO IDEA WHETHER THIS IS SAFE OR NOT!

Why do you not use EIT if you don't mind me asking?

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

RayBe

Hi Matt,
thanks for the reply,

QuoteWhy do you not use EIT if you don't mind me asking?
i am using a analog tuner (EIT seems for dvb only), the dvb-c provider in my area requires a CI+ decoder (sadly :() and to my knowledge there is no way to use that in MythTv with a pci-(e)-dvb-tuner.

mythfilldatabase --graboptions "--debug"
since you don't know if its safe to run
i will wait till someone knows its safe ;) (and investigate further myself ;))

QuotePermissions problem?
do you know how to check and how to change it? in some other forum i found similar but no solution.

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

purps

Sorry, I just meant run "sudo mythfilldatabase".

Sounds like you've had this working before - have you just done a new install or something?

Cheers,
Matt.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

Bazza

Hi RayBe

Dont know if this is any help or not but when mythfilldatabase has thrown up errors for me ive checked /var/log/mythtv/mythbackend.log which usually tells me where the problem is, as Purps said it usually turned out to be a permissions problem, so I change permissions and it runs fine afterwards

RayBe

Hi Bazza,

My /var/log/mythtv/mythfilldatabase.log shows at the end:


2011-07-20 08:20:11.303 New DB connection, total: 3
2011-07-20 08:20:11.319 Connected to database 'mythconverg' at host: localhost
2011-07-20 08:20:11.321 XMLTV config file is: /root/.mythtv/LMCE-Default.xmltv
2011-07-20 08:20:11.321 New DB connection, total: 4
2011-07-20 08:20:11.322 Connected to database 'mythconverg' at host: localhost
Cannot remove /root/.xmltv/program_cache, check permissionsTraceback (most recent call last):
  File "/usr/bin/tv_grab_nl_py", line 1416, in <module>
    main()
  File "/usr/bin/tv_grab_nl_py", line 1397, in main
    program_cache.dump(program_cache_file)
  File "/usr/bin/tv_grab_nl_py", line 299, in dump
    pickle.dump(self.pdict, open(filename+'.tmp', 'w'))
IOError: [Errno 13] Permission denied: '/root/.xmltv/program_cache.tmp'
2011-07-20 08:28:41.136 FillData, Error: xmltv returned error code 256
2011-07-20 08:28:41.152 Error in 625:1: unexpected end of file
2011-07-20 08:28:41.178 IconData: Updating icons for sourceid: 1
2011-07-20 08:28:41.179 New DB connection, total: 5
2011-07-20 08:28:41.180 Connected to database 'mythconverg' at host: localhost
2011-07-20 08:28:41.183 No programs found in data.
2011-07-20 08:28:41.259 Failed to fetch some program info
2011-07-20 08:28:41.259 Adjusting program database end times.
2011-07-20 08:28:41.534     0 replacements made
2011-07-20 08:28:41.534 Marking generic episodes.
2011-07-20 08:28:41.672     Found 0
2011-07-20 08:28:41.673 Fudging non-unique programids with multiple parts.
2011-07-20 08:28:41.775     Found 0
2011-07-20 08:28:41.775 Marking repeats.
2011-07-20 08:28:41.934     Found 0
2011-07-20 08:28:41.934 Unmarking new episode rebroadcast repeats.
2011-07-20 08:28:41.935     Found 0
2011-07-20 08:28:42.378 Marking episode first showings.
2011-07-20 08:28:59.716     Found 5467
2011-07-20 08:28:59.717 Marking episode last showings.
2011-07-20 08:29:12.007     Found 5467
2011-07-20 08:29:12.011
===============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2011-07-20 08:29:12.028 MythContext: Connecting to backend server: 192.168.80.1:6543 (try 1 of 1)
2011-07-20 08:29:12.033 Using protocol version 56
2011-07-20 08:29:12.060 Received a remote 'Clear Cache' request
2011-07-20 08:29:13.065 mythfilldatabase run complete.
2011-07-20 08:29:13.066 DataDirect: Deleting temporary files


Somewhere it says "IOError: [Errno 13] Permission denied: '/root/.xmltv/program_cache.tmp'" but i don't know how to fix that,
any help would be much appreciated,

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

coley

did you run the mythfilldatabase script as super user as purps suggested?

It looks as if the script was once run under sudo and as a result the cache folder is owned by root.

-Coley.
~ 12.04 Alpha: [url="http://linuxmce.iptp.org/snapshots"]http://linuxmce.iptp.org/snapshots[/url]
~ 10.04 Final: [url="http://linuxmce.iptp.org/release/LinuxMCE-1004-final.iso"]http://linuxmce.iptp.org/release/LinuxMCE-1004-final.iso[/url]
~ My setup: [url="http://wiki.linuxmce.org/index.php/User:Coley"]http://wiki.linuxmce.org/index.php/User:Coley[/url]

RayBe

Coley, hi,

Yes iirc i did run mythfilldatabase under sudo,
if i understand correctly i have to change te permissions on the cache folder, how do i do that?

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

purps

If it were me I would do a...

sudo chmod 777 /root/.xmltv

...but again *covers arse* I accept no responsibility for blah blah blah :)
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]

Bazza

Hi RayBe

I changed the permissions of just the file which gave me the error and mythfilldatabase has been updating every night for the past few months without any more errors.

sudo chmod 777 /root/.xmltv/program_cache.tmp

Bazza

RayBe

Hi Bazza,
I did try to give sudo chmod 777 /root/.xmltv/program_cache.tmp
it complains it can't get acces to `/root/.xmltv/program_cache.tmp': file or folder does not exists
so i tried
sudo chmod 777 /root/.xmltv/program_cache
wich seems to work but when i open dolphin and goto the file it still says owner root and is the only one with read and right access.

br,
Raymond

When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

Bazza

Hi RayBe

I've looked back through my logs and the error I got was.

Failed to write to /root/.xmltv/cache/1fb4ec9170c25a9b69bb9bd7efee0b90.tmp30530

So what I did was,

sudo chmod a+rwx /root/.xmltv/cache
sudo chmod a+rwx /root/.xmltv/cache/*

What folders do you have in /root/,xmltv/

Baz

RayBe

#12
Hi Bazza,
Thanks for helping me,

When i do ls in /root/.xmltv/ i see:
program_cache supplement

program_cache doesn't seem te be a folder,
supplement is a folder

EDIT: could it be that its something about program_cache does NOT have a .tmp at the end?
can/should i add that?

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

RayBe

chmod -R 777 /root/.xmltv
Did the trick, thanks all for helping,

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

purps

Quote from: RayBe on July 25, 2011, 01:56:04 PM
chmod -R 777 /root/.xmltv
Did the trick, thanks all for helping,

br,
Raymond

I thought that applying the chmod to the whole folder would be best, but completely forgot about the need for the "-R", sorry about that.
1004 RC :: looking good :: upgraded 01/04/2013
my setup :: [url="http://wiki.linuxmce.org/index.php/User:Purps"]http://wiki.linuxmce.org/index.php/User:Purps[/url]