Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13162 closed Bug Report - General (fixed)

mythfrontend does not start when Retry used

Reported by: mike.bibbings@… Owned by: Peter Bennett
Priority: minor Milestone: 29.1
Component: MythTV - General Version: v29-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I have test system where the backend takes a long time to start due to many tuners (PCie and network). mythfrontend is set to autostart when machine boots. MythTV Startup Status screen is displayed and displays Unable to connect to master backend. This is expected as I have not changed any defaults. When I click Retry it fails again, this is not expected. Looking at the mythfrontend log, the first attempt after boot has BE and DB values for the connection test. After Retry the values of BE and DB have gone - looks like they are not being reloaded or get cleared. If I click Search backend is found via upnp and frontend start correctly. I have attached both frontend and backend logs.

Attachments (2)

mythfrontend.log.tar.bz2 (3.9 KB) - added by mike.bibibngs@… 6 years ago.
frontend log
mythbackend.log.tar.bz2 (3.3 KB) - added by mike.bibbings@… 6 years ago.
mythbackend log

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by mike.bibibngs@…

Attachment: mythfrontend.log.tar.bz2 added

frontend log

Changed 6 years ago by mike.bibbings@…

Attachment: mythbackend.log.tar.bz2 added

mythbackend log

comment:1 Changed 6 years ago by mike.bibbings@…

operating system is Debian Stretch amd64, mythtv installed via apt from deb files built from source as in https://www.mythtv.org/wiki/Installing_MythTV_on_Debian

mythtv --version MythTV Version : v29.0-48-gcf364afa84-dirty MythTV Branch : fixes/29 Network Protocol : 91 Library API : 29.20170212-1 QT Version : 5.7.1 Options compiled in:

linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2 using_libmp3lame

comment:2 Changed 6 years ago by mike.bibbings@…

config.xml contents for user running mythfrontend:

<Configuration>
  <Database>
    <PingHost>1</PingHost>
    <Host>127.0.0.1</Host>
    <UserName>mythtv</UserName>
    <Password>MacGR3B5</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>5f02e1a8-9ef5-4b60-858c-aaffb6d1e43c</MediaRenderer>
    </UDN>
  </UPnP>
  <LocalHostName></LocalHostName>
</Configuration>

config.xml file for user mythtv (/etc/mythtv/config.xml)

<Configuration>
  <Database>
    <PingHost>1</PingHost>
    <Host>localhost</Host>
    <UserName>mythtv</UserName>
    <Password>MacGR3B5</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>
</Configuration>

Note config.xml file for user running mythtv was originally sym linked to /etc/mythtv/config.xml. running mythfrontend caused this sym link to be removed and replaced with a new config.xml file.

Last edited 6 years ago by Peter Bennett (previous) (diff)

comment:3 Changed 6 years ago by Peter Bennett

Owner: set to Peter Bennett
Status: newassigned

comment:4 Changed 6 years ago by Stuart Auchterlonie

Milestone: needs_triage29.1

comment:5 Changed 6 years ago by mike.bibbings@…

Just a data point. Same issue on xubuntu 16.04 with mythtv (master) built from source.

MythTV Version : v30-Pre-293-gd6bf26d MythTV Branch : master Network Protocol : 91 Library API : 30.20171015-1 QT Version : 5.5.1 Options compiled in:

linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_dvb using_firewire using_frontend using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv using_profiletype using_bindings_perl using_bindings_python using_bindings_php using_freetype2 using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2

comment:6 Changed 6 years ago by Peter Bennett <pbennett@…>

Resolution: fixed
Status: assignedclosed

In 7d0b484c8372cda7b3166a8005f6806a0b5901f0/mythtv:

Startup: Fix failure of Retry option

Ensure that the DB host name is valued after a Retry of startup

Fixes #13162

comment:7 Changed 6 years ago by Peter Bennett <pbennett@…>

In ce2789645c69d20cce29f1dd47677bc932c6076a/mythtv:

Startup: Fix failure of Retry option

Ensure that the DB host name is valued after a Retry of startup

Fixes #13162

(cherry picked from commit 7d0b484c8372cda7b3166a8005f6806a0b5901f0)

comment:8 Changed 6 years ago by Peter Bennett

Owner: changed from Peter Bennett to Peter Bennett
Note: See TracTickets for help on using tickets.