Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11373 closed Bug Report - Crash (Invalid)

Host IP address not update in config.xml when changing master backends

Reported by: spleavin0@… Owned by: danielk
Priority: minor Milestone: unknown
Component: MythTV - Mythtv-setup Version: 0.26-fixes
Severity: medium Keywords: config.xml
Cc: Ticket locked: yes


I changed the ip address of my masterbackend and made the correct changes in the masterbackend setup and my secondary backend set up. The backends would fail to run and there was an error message in the mythbackend.log files indicating that the backends were trying to contact the database on the old backend address. I found config.xml files in the /home/myth/.mythtv directory of the master and secondaary computers that refered to the old ip address. When I manually edit these files every thing worked fine.

Jan 23 09:56:53 Basement mythlogserver: mythbackend[3696]: I CoreContext? mythcontext.cpp:682 (TestDBconnection) Testing network connectivity to '' Jan 23 09:56:53 Basement mythlogserver: mythbackend[3696]: E CoreContext? mythdbcon.cpp:217 (OpenDatabase?) Driver error was [1/2003]:#012QMYSQL: Unable to connect#012Database error was:#012Can't connect to MySQL server on '' (111)

Change History (3)

comment:1 Changed 8 years ago by Raymond Wagner

Priority: majorminor
Resolution: Invalid
Severity: highmedium
Status: newclosed

The master backend IP address is not stored in the config.xml.

comment:2 in reply to:  1 Changed 8 years ago by spleavin0@…

Replying to wagnerrp:

The master backend IP address is not stored in the config.xml.

I should have used the term database not master backend. My database and master backend are on the same computer. Either way changing the ip address in the master backend was not updating all the files it should have.

comment:3 Changed 8 years ago by Raymond Wagner

Ticket locked: set

Either way, no. MythTV does not require the database and master backend exist on the same machine. The only thing changing the IP address for the master backend in mythtv-setup will do is change the entry in the database indicating the location of the master backend.

As to "all the files", there is only ever the one file, located at either ${MYTHCONFDIR}/config.xml or ${HOME}/.mythtv/config.xml. If you start any MythTV application interactively, and it cannot connect to the database with the existing information, or discover the database on its own using UPnP, it will ask you where the database is, and subsequently update that file with the revised information. It is unreasonable to expect MythTV to search through the HOME folders of different users on the system, or access other systems on your network, to update other copies of that file, and any sentient user should be aghast at such capability and all the security measures MythTV would need to circumvent in order to accomplish that.

Note: See TracTickets for help on using tickets.