Basically I've never managed to get mythfilldatabase and xmltv to work properly.

If I execute mythfilldatabase manually it runs fine, however every time I let it run automatically I get error code 13 and no EPG data (very common I know).

I've symlinked /home/media/.mythtv/usb.xmltv and /home/mythtv/.mythtv/usb.xmltv - again this didn't help. The first file is the one mythfilldatabase is using.

I tried setting a cron job to run mythfilldatabase manually but this fails with error code 13 as well.

After a lot of googling I'm getting a bit stuck - have I missed anything obvious?

System:
Mythbuntu 12.04
Mythtv 0.26
Nanostick 290e