[mythtv-users] New installation errors

Dick Steffens dick at dicksteffens.com
Mon Sep 25 00:13:11 UTC 2017


On 09/23/2017 09:37 PM, Bill Meek wrote:
> On 09/23/2017 07:55 PM, Dick Steffens wrote:
>> I have time to work on this again. I'm using ssh -X to log on to the 
>> MythTV machine named Jetway. Here's what I get when I try to run 
>> mythtv-setup:
>>
>> rsteff at Jetway:~$ mythtv-setup
>> mysql: [Warning] Using a password on the command line interface can 
>> be insecure.
>> ERROR 1045 (28000): Access denied for user 'mythtv'@'localhost' 
>> (using password: YES)
>> /usr/bin/mythtv-setup: 42: /usr/bin/mythtv-setup: status: not found
>> libGL error: No matching fbConfigs or visuals found
>> libGL error: failed to load driver: swrast
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> rsteff at Jetway:~$ mythtv-setup mythtv
>> mysql: [Warning] Using a password on the command line interface can 
>> be insecure.
>> ERROR 1045 (28000): Access denied for user 'mythtv'@'localhost' 
>> (using password: YES)
>> /usr/bin/mythtv-setup: 42: /usr/bin/mythtv-setup: status: not found
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> GNOME_SUDO_PASS
>> sudo: 1 incorrect password attempt
>> [ ok ] Starting mythtv-backend (via systemctl): mythtv-backend.service.
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> rsteff at Jetway:~$
>>
>> Assuming I need to supply a password I tried:
>>
>> rsteff at Jetway:~$ mythtv-setup mythtv
>> mysql: [Warning] Using a password on the command line interface can 
>> be insecure.
>> ERROR 1045 (28000): Access denied for user 'mythtv'@'localhost' 
>> (using password: YES)
>> /usr/bin/mythtv-setup: 42: /usr/bin/mythtv-setup: status: not found
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> Gtk-Message: GtkDialog mapped without a transient parent. This is 
>> discouraged.
>> rsteff at Jetway:~$
>>
>> A dialog box popped up asking if I wanted to start the mythtv 
>> backend? I said no.
>> A dialog box popped up asking if I wanted to run mythfilldatabase? I 
>> said no.
>>
>> Using the mysql monitor I looked at the user table. Should there be a 
>> user mythtv?
>
> Yes, but not in that DB. It's in the mysql DB. As your root mysql
> user:
>
> USE mysql;
> SELECT Host,User,Password FROM user WHERE User='mythtv' ORDER BY 
> Host,User;
>
>> mysql> select username from users;
>> +----------+
>> | username |
>> +----------+
>> | admin    |
>> +----------+
>> 1 row in set (0.00 sec)
>>
>> mysql>
>>
>> I'm at a loss, here. What do I do next?
>
> If the backend updated 'til one DBSchemaVer, then failed, you know
> that it was able to connect to the DB ok. Be sure the user running
> mythtv-setup has the same credentials e.g. config.xml. 

Contents of config.xml:

<Configuration>
<LocalHostName>my-unique-identifier-goes-here</LocalHostName>
   <Database>
     <PingHost>1</PingHost>
     <Host>localhost</Host>
     <UserName>mythtv</UserName>
     <Password>mythtv</Password>
     <DatabaseName>mythconverg</DatabaseName>
     <Port>3306</Port>
   </Database>
   <WakeOnLAN>
     <Enabled>0</Enabled>
     <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
     <SQLConnectRetry>5</SQLConnectRetry>
     <Command>echo 'WOLsqlServerCommand not set'</Command>
   </WakeOnLAN>
   <UPnP>
     <UDN>
<MediaRenderer>c4e751a3-c6c8-48a9-b385-f962b05a87ce</MediaRenderer>
     </UDN>
   </UPnP>
</Configuration>
config.xml (END)


> It appears
> as if the user in the above was mythtv, but I don't know that it
> was using the proper $HOME. A full mythtv-setup log will tell you.
>
> Just look for a line containing:  Using configuration directory =

Sep 24 15:26:19 Jetway mythtv-setup.real: mythtv-setup[8360]: N 
thread_unknown mythdirs.cpp:194 (InitializeMythDirs) Using configuration 
directory = /home/rsteff/.mythtv

> You can also try running mythtv-setup.real . That should bypass
> some of the Gtk messages above.

Yes, much easier to read.

So I figured out that I hadn't set up a recordings Storage Group. I 
assumed this would happen automagically based on transferring a backup 
database to the new machine. Once I set up the recordings Storage Group 
the error messages stopped.



On to the next level. (Kind of like a video game.)

When I exited mythtv-setup it asked if I wanted to start the backend. I 
said yes. It asked if I wanted to run mythfilldatabase. I said yes. When 
it was all done, I tried going to http://localhost:6544, and 
http?//192.168.0.106:6544. Firefox reports that it is unable to 
establish an connection to localhost:6544, or 192.168.0.106:6544.

I tried running the frontend and looking at the Program Guide. I get a 
popup error message:

--------------------------------------------------------------------------------------
Could not connect to master ...

Mythcontext

Could not connect to the master backend server.
Is it running? Is the IP address set for it in mythtv
-setup correct?
--------------------------------------------------------------------------------------

However, I was able to look at the Program Guide and found a current 
schedule.

I ran mythtv-setup again, exited, and answered yes when it asked if I 
wanted to start the backend. Most times I would give my login password 
for this. On the chance that I was supposed to provide "mythtv" I tried 
that. I got a wrong password error message and went back to using my 
login password.

I answered no when it asked if I wanted to run mythfilldatabase.

I ran ps ax | grep myth and only had the line related to running pa ax. 
So it appears that the backend is not running.

Here's the output of mythtv-setup.real:

rsteff at Jetway:/var/log/mythtv$ mythtv-setup.real
2017-09-24 17:01:50.550756 I  Setup Interrupt handler
2017-09-24 17:01:50.550832 I  Setup Terminated handler
2017-09-24 17:01:50.550871 I  Setup Segmentation fault handler
2017-09-24 17:01:50.550896 I  Setup Aborted handler
2017-09-24 17:01:50.550926 I  Setup Bus error handler
2017-09-24 17:01:50.550952 I  Setup Floating point exception handler
2017-09-24 17:01:50.550981 I  Setup Illegal instruction handler
2017-09-24 17:01:50.551010 I  Setup Real-time signal 0 handler
2017-09-24 17:01:50.551046 I  Setup Hangup handler
2017-09-24 17:01:50.551277 C  mythtv-setup version: fixes/0.28 
[v0.28.1-46-g373a3c7] www.mythtv.org
2017-09-24 17:01:50.551306 C  Qt version: compile: 5.5.1, runtime: 5.5.1
2017-09-24 17:01:50.551317 N  Enabled verbose msgs:  general
2017-09-24 17:01:50.551363 N  Setting Log Level to LOG_INFO
2017-09-24 17:01:50.562733 I  Added logging to the console
2017-09-24 17:01:50.762580 N  Using runtime prefix = /usr
2017-09-24 17:01:50.762598 N  Using configuration directory = 
/home/rsteff/.mythtv
2017-09-24 17:01:50.762786 I  Assumed character encoding: en_US.UTF-8
2017-09-24 17:01:50.763731 N  Empty LocalHostName.
2017-09-24 17:01:50.763753 I  Using localhost value of Jetway
2017-09-24 17:01:50.790639 N  Setting QT default locale to en_US
2017-09-24 17:01:50.790669 I  Current locale en_US
2017-09-24 17:01:50.790813 N  Reading locale defaults from 
/usr/share/mythtv//locales/en_us.xml
2017-09-24 17:01:50.850478 I  Starting process manager
2017-09-24 17:01:50.850693 I  Starting process signal handler
2017-09-24 17:01:50.853459 I  Starting IO manager (write)
2017-09-24 17:01:50.854239 I  Starting IO manager (read)
2017-09-24 17:01:50.915580 I  ScreenSaverX11Private: DPMS is active.
2017-09-24 17:01:51.084508 N  Desktop video mode: 3200x1080 59.934 Hz
libcec.so.3: cannot open shared object file: No such file or directory
2017-09-24 17:01:51.324662 W  MythUIHelper: No theme dir: 
'/usr/share/mythtv/themes/Mythbuntu'
2017-09-24 17:01:51.324697 W  MythUIHelper: No default theme dir: 
'/usr/share/mythtv/themes/Mythbuntu'
2017-09-24 17:01:51.324839 E  MythUIHelper: Could not find theme: 
Mythbuntu - Switching to Terra
2017-09-24 17:01:51.347491 I  Loading en_us translation for module 
mythfrontend
2017-09-24 17:01:51.349146 E  LIRC: Failed to connect to Unix socket 
'/var/run/lirc/lircd'
             eno: No such file or directory (2)
2017-09-24 17:01:51.349242 I  No joystick configuration found, not 
enabling joystick control
2017-09-24 17:01:51.364891 E  CECAdapter: Failed to load libcec.
2017-09-24 17:01:51.364984 I  UDPListener: Enabling
2017-09-24 17:01:51.370061 I  Binding to UDP 127.0.0.1:6948
2017-09-24 17:01:51.370191 I  Binding to UDP 192.168.0.106:6948
2017-09-24 17:01:51.370293 I  Binding to UDP [::1]:6948
2017-09-24 17:01:51.370596 I  Binding to UDP 
[fe80::27e5:7f7b:ea23:2e48%enp2s0]:6948
2017-09-24 17:01:51.370739 I  Binding to UDP 192.168.0.255:6948
2017-09-24 17:01:51.451668 I  Using Frameless Window
2017-09-24 17:01:51.451685 I  Using Full Screen Window
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
2017-09-24 17:01:51.711123 I  UI Screen Resolution: 1280 x 1024
2017-09-24 17:01:51.737603 I  Using the Qt painter
2017-09-24 17:01:52.690554 I  MythUIWebBrowser: Loading css from - 
file:///usr/share/mythtv/themes/default/htmls/mythbrowser.css
2017-09-24 17:01:52.701571 I  MythUIWebBrowser: enabling plugins
2017-09-24 17:01:52.853866 I  Current MythTV Schema Version 
(DBSchemaVer): 1344
rsteff at Jetway:

While I see a few errors in there, they don't seem to be critical ones. 
(But what do I know?)

Any ideas on what to do next?

Thanks.

-- 
Regards,

Dick Steffens



More information about the mythtv-users mailing list