<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 16, 2023 at 11:46 AM Mike Perkins <<a href="mailto:mikep@randomtraveller.org.uk">mikep@randomtraveller.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16/03/2023 16:32, James Abernathy wrote:<br>
> On Thu, Mar 16, 2023 at 11:20 AM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br>
> <br>
>> On Thursday 16 March 2023 10:53:03 AM (-05:00), James Abernathy wrote:<br>
>><br>
>><br>
>><br>
>> On Thu, Mar 16, 2023 at 10:38 AM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br>
>><br>
>>><br>
>>><br>
>>> On Thursday 16 March 2023 10:14:55 AM (-05:00), James Abernathy wrote:<br>
>>><br>
>>> I think I had the process correct. But I have a question about<br>
>>> mythconverg passwords.<br>
>>><br>
>>> Does the restore process change the /etc/mythtv/config.xml password or<br>
>>> does it change the database to the password created on the new backend?<br>
>>><br>
>>> What I did was install Ubuntu 22.10 desktop on the RPI4 with the same<br>
>>> hostname as on the old failed mythtv-backend, then added the mythbuntu<br>
>>> repository for fixes/33. Next I installed mariadb-server and then mythtv.<br>
>>> Once that was completed I ran mythtv-setup and added my user 'jim' to the<br>
>>> mythtv group and then I rebooted.<br>
>>><br>
>>> At this point I copied over all the old recordings and other files, then<br>
>>> did:<br>
>>><br>
>>> <a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a><br>
>>> --drop_database --create_database --filename<br>
>>> mythconverg-?????.sql.gz<br>
>>><br>
>>><br>
>>> I ran mythtv-setup and everything looked good and then I ran<br>
>>> mythfrontend and it worked.<br>
>>><br>
>>> However, I had written down the mythconverg password on the old system<br>
>>> before doing this and the new /etc/mythtv/config.xml passwords are<br>
>>> different. I can only assume <a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> fixes all of this??<br>
>>><br>
>>> Jim A<br>
>>><br>
>>><br>
>>> <a href="http://mythconverg_restore.pl" rel="noreferrer" target="_blank">mythconverg_restore.pl</a> restores the mythconverg DB. Passwords etc. are<br>
>>> stored in the mysql DB.<br>
>>><br>
>>> l--<br>
>>> Bill<br>
>>> _______________________________________________<br>
>>><br>
>>><br>
>> So that may explain why I'm having issues now. I rebooted and now<br>
>> mythtv-setup and mythfrontend will not connect to the database. How do I<br>
>> make this work? I really don't care what the database password is. When I<br>
>> build from source I use mythtv for both user and password. I removed the<br>
>> comment from /etc/mysql/conf.d/mythtv.cnf bind statement and that's all<br>
>> except rebooting<br>
>><br>
>> Jim A<br>
>><br>
>><br>
>> I always use the commands here to adjust as required:<br>
>> <a href="https://github.com/MythTV/mythtv/blob/master/mythtv/database/mc.sql" rel="noreferrer" target="_blank">https://github.com/MythTV/mythtv/blob/master/mythtv/database/mc.sql</a><br>
>><br>
>> Done as the SQL root user. Depends on the distribution, but: sudo mysql<br>
>> mysql works for me.<br>
>><br>
>> --<br>
>> Bill<br>
>><br>
> <br>
> I just tried that and all commands worked fine in mariadb mysql but no<br>
> success. /etc/mythtv/config.xml password is set to 'mythtv', so I was<br>
> hoping this would fix it.<br>
> This is what I see in the log:<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: N<br>
> thread_unknown mythdirs.cpp:204 (InitializeMythDirs) Using configuration<br>
> directory = /home/mythtv/.mythtv<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcorecontext.cpp:261 (Init) Assumed character encoding: en_US.UTF-8<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: I LogForward<br>
> loggingserver.cpp:219 (SyslogLogger) Added syslogging<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:584 (LoadDatabaseSettings) Empty LocalHostName. This is<br>
> typical.<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:635 (LoadDatabaseSettings) Using a profile name of:<br>
> 'den-pc' (Usually the same as this host's name.)<br>
> Mar 16 11:25:51 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 0, status dbAwake, Delay: 2000<br>
> Mar 16 11:25:52 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 1, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:24 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 2, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:29 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 3, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:34 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 4, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:39 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 5, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:44 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 6, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:49 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 7, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:54 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 8, status dbAwake, Delay: 2000<br>
> Mar 16 11:26:59 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 9, status dbAwake, Delay: 2000<br>
> Mar 16 11:27:04 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:872 (TestDBconnection) Start up testing connections. DB<br>
> localhost, BE , attempt 10, status dbAwake, Delay: 2000<br>
> Mar 16 11:27:09 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:1000 (TestDBconnection) Start up failure. host localhost,<br>
> status dbAwakeFail<br>
> Mar 16 11:27:10 den-pc mythbackend[2290]: Cannot login to database<br>
> Mar 16 11:27:10 den-pc mythbackend[2290]: Would you like to configure the<br>
> database connection now? [no]<br>
> Mar 16 11:27:10 den-pc mythbackend[2290]: [console is not interactive,<br>
> using default 'no']<br>
> Mar 16 11:27:10 den-pc mythbackend[2290]: mythbackend[2290]: C CoreContext<br>
> mythbackend.cpp:134 (main) Failed to init MythContext.<br>
> Mar 16 11:27:11 den-pc mythbackend[2290]: mythbackend[2290]: I CoreContext<br>
> mythcontext.cpp:1684 (~MythContext) Exiting<br>
> Mar 16 11:27:11 den-pc systemd[1]: mythtv-backend.service: Main process<br>
> exited, code=exited, status=130/n/a<br>
> Mar 16 11:27:11 den-pc systemd[1]: mythtv-backend.service: Failed with<br>
> result 'exit-code'.<br>
> <br>
This isn't a password failure, it looks like it isn't finding the db at all.<br>
<br>
Check your mysql/mariadb configs, remembering that if you have mariadb, then the config files may <br>
have slightly different names and override the default mysql ones!<br>
<br>
-- <br>
<br>
Mike Perkins<br><br></blockquote><div><br></div><div>Thanks Mike, that was it. I restored my changes in /etc/mysql to original and the backend and frontend are working on localhost. I just need to find the changes for mariadb to allow remote frontends to work. Bonus is I now have mythtv as my password for mythconverg. I really hate all the random password issues with the Ubuntu install. It's not like my Ubuntu backend is storing nuclear launch codes. :-)</div><div><br></div><div>jim A</div><div><br></div></div></div>