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,114
    115
    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

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,114
    115
    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,114
    115
    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

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,114
    115
    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

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,114
    115
    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
    OP Title Forum Replies Date
    T [solved] WMA support General 22
    M Native Unicable Support Newcomers Forum 4
    R MP Support of Transparent Thumbs General Support 1
    J no TV support on 1.25 download Installation, configuration support 1
    horned_reaper [solved] HID commands are not processed when multiple applications with HID support are open General Support 16
    horned_reaper [solved] Add support for Bluetooth events Improvement Suggestions 2
    CyberSimian Support for control.isvisible() in expressions MediaPortal 1 8
    morpheus_xx [WiP] OnlineVideos: New browser based playback support using WebDriver, new Amazon siteutil MediaPortal 2 14
    M 2nd (Touch-)Display Support on MediaPortal 2 such MPDisplay++? General 5
    J Support waipu TV TV-Server 2
    doskabouter WebDAV support OnlineVideos 0
    K Multichannel audio and subtitles for TV not properly supported General Support 4
    CyberSimian Support pack for Ortek VRC-1100 and Hama 00052451 Remotes 6
    cbr954rr [Finished] [MP2-801] Support for tag image extraction Archive 7
    catavolt [solved] FanartHandler - Skin - Holiday and Spotlight support Fanart Handler 51
    C Drive Type is not supported by system Allgemeines Support- und Diskussionsforum 3
    raffe [solved] Export tool and import support from MP-TVSeries & Moving Pictures to MP2 General 25
    morpheus_xx General Testing TVE 3.5 Sat>IP support (MP2 only) TV Engine 47
    E M3U Playlist and EPG Support/Configuration Installation, configuration support 1
    G Mediaportal2 supported formats General 1
    M [solved] Stub Support General 11
    morpheus_xx [Finished] Adding 64 bit support to MP2-Client MediaPortal 2 31
    rsbrux MP 1.26 fails to connect to SQL Server Installation, configuration support 13
    G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
    B 'Successful' install of MP2.2.2 on W8.1 - but can't connect to sql db General 1

    Similar threads

    Top Bottom