1.27.0 1.26.0 Supported SQL Server version(s) / TV Service dependency on SQL Server / Wait for TV Server startup (1 Viewer)

rsbrux

Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,116
    115
    Home Country
    Switzerland Switzerland
    Country flag
    1. When installing MP1, the TV DB configuration dialog specifies SQL Server 2005 (see attached file "Setup database connection - v1.27.png"). Since MP1 TV Server has been successfully tested with versions up to and including SQL Server 2017 Express, the text "2005" should be removed from this dialog (see attached file "Setup database connection - proposed.png").
    2. The dependency created for the TV Service on installation appears to be incorrect. Instead of:
      sc config TVService depend= SQLBrowser/Netman
      it should be :
      sc config TVService depend= MSSQL$SQLEXPRESS/Netman
      for SQL Server Express. I'm not sure of the syntax for SQL Server; perhaps the use of "SQL Browser" was an attempt to be independent of whether the Express version was used. Unfortunately, this doesn't work because SQLBrowser has no dependencies, i.e., it does not wait for the DB server to be ready. Post-installation changes using "sc" do nort survive reboot. As a workaround I have changed the TVservice startup from "Automatic" to "Automatic (Delayed Start)" (see this thread), but this doesn't appear to be adequate (see 3 below). I am now trying to edit the value "DependOnService" in the registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TVService" directly (see attached .reg file, renamed to "TVService.txt") and will report back.
    3. Despite the setting "Wait until TV Server has started" (autodetected and greyed out in my installation) under "General" - "Startup/Resume Settings" in MP Configuration, it appears that MP will still start before TV Server is available (see attached MediaPortal.log around 5 AM this morning).
     

    Attachments

    • Setup database connection - proposed.png
      Setup database connection - proposed.png
      24.8 KB · Views: 0
    • Setup database connection - v1.27.png
      Setup database connection - v1.27.png
      24.9 KB · Views: 0
    • MPlogs.zip
      220.5 KB · Views: 0
    • TVlogs.zip
      1 MB · Views: 0
    • TVService.txt
      2.1 KB · Views: 0

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,116
    115
    Home Country
    Switzerland Switzerland
    Country flag
    It looks as though TV Server itself is responsible for resetting the service dependencies. Procmon found no attempts to set the key value during boot, but the value had already been reset to the installation values when it was read to start the service. Procmon shows that SetupTV resets the service dependencies each time it is started. The dependency values do not change when I start or stop the TVService from services.msc. Reviewing the screenshots I posted above, I see that I could have changed the database dependency during installation. It would be nice if there were a way to change it without requiring a fresh install.
     
    Last edited:

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,116
    115
    Home Country
    Switzerland Switzerland
    Country flag
    Meanwhile I have found that I can change the dependency from "SQLBrowser" to " MSSQL$SQLEXPRESS" by running:
    "%ProgramFiles(x86)%\Team MediaPortal\MediaPortal TV Server\SetupTV" /configure-db
    as described in this wiki article.
    This change survives reboot and start and stop of the TV Service, as long as the TV Service is not started by SetupTV.
    However, it does not appear adequate to solve the problems reported:
    1. MediaPortal still starts before the TV Service is ready.
    2. SetupTV still resets the dependency to SQLBrowser when run normally (even when exiting with "Cancel", not "OK")
    Logs attached.
     

    Attachments

    • TVlogs.zip
      2.8 MB · Views: 0
    • MPlogs.zip
      205.7 KB · Views: 0

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,116
    115
    Home Country
    Switzerland Switzerland
    Country flag
    Meanwhile I have performed a "Fresh install" of MP 1.27, in which I changed the DB service dependency from "SQLBrowser" to "MSSQL$SQLEXPRESS" (see screenshot). The TV service was then installed with the correct dependency. However, when I ran the TV configuration (TVsetup.exe), the TV service dependency was again set to "SQLBrowser". It looks to me like a bug in TVsetup.exe.
     

    Attachments

    • Setup database connection - v1.27.png
      Setup database connection - v1.27.png
      25 KB · Views: 0
    • MPlogs.zip
      620.5 KB · Views: 1
    • TVlogs.zip
      1 MB · Views: 1

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,116
    115
    Home Country
    Switzerland Switzerland
    Country flag
    FWIW, please see SQL Server 2017 Express for a workaround.
    Adding the scheduled task on startup seems to resolve the problem, at least in my installation.
     

    Users who are viewing this thread

    Similar threads

    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5081] - WatchDog...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    433
    • Sticky
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch Mediaportal log to Debug level [MP1-5082] - Error when MP restart [MP1-5086] - XMLTV Import error - An item with the same key has already been added. Since Pre-Release : [MP1-5089] - MpurlSourceSplitter...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    We have just released MediaPortal 1.29 The Phantom Menace Highlights of this release Bugfixes: [MP1-5081] - WatchDog not switch...
    Replies
    0
    Views
    183
    Just for your information: couldn't find the ns*.tmp file...
    Just for your information: couldn't find the ns*.tmp file...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    39
    Views
    2K
    Hallo, Since the update to MP1 27 pre, the refresh rate display no longer works correctly. The font is too small and illegible. The display can be reached with "Shift, 1". Andreas
    Hallo, Since the update to MP1 27 pre, the refresh rate display no longer works correctly. The font is too small and illegible. The...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    2
    Views
    992
    I thinks this is the first time I've installed MP on all my machines without a single IO error 32. Good work guys, thanks!
    I thinks this is the first time I've installed MP on all my machines without a single IO error 32. Good work guys, thanks!
    We have just released MediaPortal 1.26 - Winter is coming... Highlights of this release Bugfixes: [MP1-5031] - Fix Invalid File...
    Replies
    1
    Views
    1K
    Top Bottom