[mythtv-commits] Ticket #13077: mythconverg_backup.pl strange behavior when using IPV6 for database

MythTV noreply at mythtv.org
Thu Aug 3 11:19:39 UTC 2017


#13077: mythconverg_backup.pl strange behavior when using IPV6 for database
----------------------------------------+------------------------------
 Reporter:  pbennett                    |          Owner:  pbennett
     Type:  Bug Report - General        |         Status:  assigned
 Priority:  minor                       |      Milestone:  needs_triage
Component:  Contributed Scripts & Apps  |        Version:  v29-fixes
 Severity:  medium                      |     Resolution:
 Keywords:                              |  Ticket locked:  0
----------------------------------------+------------------------------

Comment (by mdean):

 Perl's DBD::mysql requires a bracketed IPv6 address, if specifying an IPv6
 address directly (rather than specifying a host name).

 https://metacpan.org/pod/DBD::mysql#host

 If config.xml does not allow specifying a bracketed IPv6 address, and if
 we want mythconverg_backup.pl (and mythconverg_restore.pl) to support
 specifying a MySQL IPv6 address directly, then we will have to either
 detect an IPv6-looking address and apply brackets around it or,
 alternatively, we could try a connection with the specified DB host and
 then, if it fails, attempt another connection with a bracketed version of
 the specified DB host.

 Note that all the behavior described above (not being able to get a backup
 directory automatically/requiring it to be specified and not putting a
 schema version in the file name) is standard behavior for the script when
 it is unable to connect to the database to retrieve the information.  So
 the only issue is the inability to connect using an IPv6 address as a DB
 host name.  I don't know whether config.xml allows (requires?/should
 require?) an IPv6 address to be specified in brackets, but if it is
 allowed, the current script version (1.0.12) and all previous ones should
 be able to pull the unspecified information from the database if the OP
 adds brackets to the config.xml <Host> entry, at least as a workaround
 until the script is updated to better handle non-bracketed IPv6 addresses.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13077#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list