Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-3055

Changing server requires to restart MediaPortal twice in order to connect to the correct DB server

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1.0 RC 2
    • 1.1.0 RC 1
    • TvPlugin
    • None

    Description

      Whenever the server changes, TVPlugin will use the correct server for remoting but the previous one for the DB connection (gentle.config is not updated as it should). You need to close MP after connecting to the new server, the restart it to work properly. This also happens if you change the DB engine (MSSQL <--> MySQL) on the same server.

      This also happens on 1st installation with MySQL because the installed gentle.config defaults to MSSQL and the change never happens. In this situation it is worse since before establishing the remoting connection TVPlugin tries to test the ports but tests the wrong ones (MSSQL instead of MySQL) so it never tries to actually connect to the server.

      h4. Additional Information
      The reason is that TvHomeNavigator.SetupDatabaseConnection() does not update gentle config until the remoting connection to the server is established but it is called before.

      The following thread is related:
      http://forum.team-mediaportal.com/mediaportal-1-1-0-rc-1-496/trying-connect-wrong-database-78088/?highlight=sql

      Attachments

        Activity

          People

            arion_p arion_p (Inactive)
            arion_p arion_p (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: