<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 27, 2018, at 10:27 AM, Jerry <<a href="mailto:mythtv@hambone.e4ward.com" class="">mythtv@hambone.e4ward.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 27, 2018 at 6:28 AM, Jim Abernathy<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:jfabernathy@gmail.com" target="_blank" class="">jfabernathy@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div text="#000000" bgcolor="#FFFFFF" class=""><span class=""><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="">One more thing. When you set up the initial database, the script should be running as the user which runs mythbackend, which is mythtv in my case. The files get put in the currrent user's home directory so this is important.<br class=""><br class=""></div><div class="">If you do this as a different user, you can try to copy the relevant folder (~/.xmltv) to your mythbackend user's home directory, but it's easy to make a mistake there. You can try it though. 'sudo cp -R ~/.xmltv /<mythtv_home_dir>/'. Be sure to 'chown -R mythtv:mythtv .xmltv' (or whatever user it happens to be in Ubuntu) If in doubt where that home directory is, you can check the user's entry in /etc/passwd.<br class=""><br class=""></div><div class="">This is the sort of thing that I like to try but it's really safer to do it the right way and just log in as the mythtv user. It will probably save you time in the long run. I happen to have a password for the mythtv user. I finally just set a password for the mythtv user because I have to log in as that user a lot. 'sudo passwd mythtv' will do that for you. And you may have to add a shell for him in /etc/passwd. Then you can just 'su - mythtv' and login. Again, I don't know the way that Ubuntu is set up.<br class=""><br class="">Sorry if this is too simplistic.<br class=""><br class=""></div><div class="">Running 'su - mythtv -c '/usr/bin/tv_grab_zz_sdjson_sq<wbr class="">lite' may do the trick if you don't have a password for mythtv.<br class=""></div></div></div></div><br class=""></blockquote><br class=""></span>I checked the morning and at 2AM mythfilldatabase ran automatically and FAILED. At least that is what is displayed with on a FE. I used System Information and check the Schedule Status. It FAILED with error code 1, but I can't find a log file that gives me any detail.<br class=""><br class="">If it's a permission problem I can chown mythtv:mythtv for the XMLTV related config and database files, but not sure how to figure this one out.<span class=""><br class=""><br class="">Jim A</span></div></blockquote><div class=""><br class=""></div><div class="">I think you're nearly there. You can run the script successfully.<br class=""><br class=""></div><div class="">On my Fedora system, the automatic mythfilldatabase job runs as the mythtv (mythbackend) user. So I'm pretty sure those files need to be in the mythtv user's home directory. You'll have to check /etc/passwd for the path there, but on my system it's /etc/mythtv. Just make sure they are in the right place.<br class=""><br class=""></div><div class="">As to your other thread, I also had problems until i started running mythtv-setup as the mythtv user. I just manually changed the shell for the mythtv user in /etc/passwd to /bin/bash from /bin/false or whatever it was. That alone did the trick. Then I added a password for mythtv with 'sudo passwd mythtv' and I was ready to roll.<br class=""><br class=""></div><div class="">I do the regular day to day maintenance as my regular user (not mythtv). I just do the mythtv maintenance as user mythtv. I don't log in as mythtv very often, and when I do, I type 'su mythtv' when I'm logged in as my regular user to switch accounts.<br class=""></div><div class=""><br class=""></div><div class="">I'm not sure as to the security issues involved here with giving the mythtv user a shell. Maybe someone else will chime in. For a few years, I actually just did everything on my mythtv backend as the mythtv user and I never had a problem. My backend is behind my router and it's inaccessible from outside my LAN. If there is a glaring problem with this and someone has a better alternative, I'm all ears. I'm pretty sure it's okay. Just use a good password.<br class=""><br class=""></div><div class="">So, if you want, you can try just manually copying over the files from /home/jim/.xmltv or wherever they are to /<mythtv_home>/.xmltv and change the ownership of them. Or you can go through the entire process again.<br class=""><br class=""></div><div class="">I tried to be clear (and I know I failed) but it was hard to remember exactly how I set it up over a year ago. I think you're almost done and you'll have it working very soon.<br class=""></div><div class=""><br class=""></div><div class="">Jerry<br class=""></div></div></div></div></div></blockquote><div><br class=""></div>Thanks for the help.</div><div><br class=""></div><div>I missed something by just copying over the files, so I deleted my Video Source stuff in mythtv-setup and started over, this time running it as user mythtv. That got everything created correctly again. I can run mythfilldatabase as user mythtv and it runs without error, but I get that message in System Information-> Schedule status that the fill ran but there was nothing to add. I get that if I run mythfildatabase manually when it’s already run automatically. </div><div><br class=""></div><div>So I think I have it now, but will not know for sure until it runs over night and fills the database again.</div><div><br class=""></div><div>Jim A</div><div><br class=""><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">mythtv-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:mythtv-users@mythtv.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">mythtv-users@mythtv.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://wiki.mythtv.org/Mailing_List_etiquette" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://wiki.mythtv.org/Mailing_List_etiquette</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">MythTV Forums:<span class="Apple-converted-space"> </span></span><a href="https://forum.mythtv.org/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://forum.mythtv.org</a></div></blockquote></div><br class=""></body></html>