Installation failure on TV Server when doing single seat installation (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    13,893
    8,441
    Kyiv
    Home Country
    Ukraine Ukraine
    Country flag
    Here are the logs.
    Code:
    [2021-03-08 18:52:35,932] [Log    ] [TVService] [ERROR] - Controller: sorry, master/slave server setups are not supported. Since there is already another server in the db, we exit here.
    [2021-03-08 18:52:35,941] [Log    ] [TVService] [ERROR] - TvController: Deinit failed - Object reference not set to an instance of an object.
    I think this is problem: Since there is already another server in the db, we exit here.
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    319
    50
    Home Country
    United Kingdom United Kingdom
    Country flag
    I can't read German but it looks like I'm not alone in having this problem.

    I think I have proven that it is a 1.27 issue since 1.26 installed okay.

    Let's hope the cause is found...

    Tony
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    I think this is problem: Since there is already another server in the db, we exit here.
    In the six years that I have been using MP, I have not once uninstalled MP, so I have no experience of how uninstall works (or, indeed, whether it works :eek: ). However, the error text quote by @ajs suggests that the error is caused by trying to install MP whilst there is already a version of TV Server installed.

    When trying to uninstall, I would:
    • Stop the TV Server service.
    • Run the uninstall procedure.
    • Reboot.
    • Manually delete the folders in "Program Files" and "ProgramData" that have "Team MediaPortal" in the name.
    Now, a further complicating factor is MP2, which uses the same TV Server code as MP1. Therefore, another possible cause of this error is trying to install MP1 whilst MP2 is installed.

    One might have expected that the MP2 developers would have tweaked the TV Server code so that it used different database names, or located the databases in a different folder, but if the developers did not do this, the MP2 version of TV Server will try to access exactly the same databases as the MP1 version of TV Server, which would (I think) give rise to the error message shown above if both TV servers are active.

    You can stop the TV Server service in "TV Server Config" or by using the Windows "Services" panel, but the service will start again the next time that you boot. The only definitive way to stop the service running is to uninstall it.

    -- from CyberSimian in the UK
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    319
    50
    Home Country
    United Kingdom United Kingdom
    Country flag
    Code:
    [2021-03-08 18:52:35,932] [Log    ] [TVService] [ERROR] - Controller: sorry, master/slave server setups are not supported. Since there is already another server in the db, we exit here.
    [2021-03-08 18:52:35,941] [Log    ] [TVService] [ERROR] - TvController: Deinit failed - Object reference not set to an instance of an object.
    I think this is problem: Since there is already another server in the db, we exit here.

    That's true, but, weirdly, when I did a complete uninstall and deleted the MpTvDb database and then did a reinstall, with a reboot in-between, the installation still failed. I recognize the difficulty in getting to the bottom of this so I think we will need to wait to see whether other users start to report this problem.

    Thanks again.

    Tony
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    319
    50
    Home Country
    United Kingdom United Kingdom
    Country flag
    In the six years that I have been using MP, I have not once uninstalled MP, so I have no experience of how uninstall works (or, indeed, whether it works :eek: ). However, the error text quote by @ajs suggests that the error is caused by trying to install MP whilst there is already a version of TV Server installed.

    When trying to uninstall, I would:
    • Stop the TV Server service.
    • Run the uninstall procedure.
    • Reboot.
    • Manually delete the folders in "Program Files" and "ProgramData" that have "Team MediaPortal" in the name.
    Now, a further complicating factor is MP2, which uses the same TV Server code as MP1. Therefore, another possible cause of this error is trying to install MP1 whilst MP2 is installed.

    One might have expected that the MP2 developers would have tweaked the TV Server code so that it used different database names, or located the databases in a different folder, but if the developers did not do this, the MP2 version of TV Server will try to access exactly the same databases as the MP1 version of TV Server, which would (I think) give rise to the error message shown above if both TV servers are active.

    You can stop the TV Server service in "TV Server Config" or by using the Windows "Services" panel, but the service will start again the next time that you boot. The only definitive way to stop the service running is to uninstall it.

    -- from CyberSimian in the UK

    Hi CyberSimian

    It was part of my job, as a Windows developer, to uninstall and reinstall products - hundreds and hundreds of times. I have found MP1 to be very reliable when performing an uninstall. I checked the Registry as well as making sure that MP files on the hard drive were also deleted.

    My conclusion from all of this is that something is happening in 1.27 that didn't occur in previous versions. The fact that 1.26 installed without any issues, to me, strongly indicates this and, I think, the most important clue as to what is going on. Having said that, I would start by seeing how the setup program handles existing versions to see whether anything has changed there.

    I did try MP2 out a while ago, but not on this machine. I would have been interested in MP2 but found it lacked the flexibility, from a user's point of view, of MP1, and abandoned all thought of using it.

    But I think you make a good point about possible conflicts where users install both products on the same machine.

    Tony
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    319
    50
    Home Country
    United Kingdom United Kingdom
    Country flag
    Hi ajs

    Well done for bringing MP up to VS 2019:). That must have been a huge job. The last time I looked at the code the version was VS 2010:(.

    Tony
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,936
    1,385
    Home Country
    Germany Germany
    Country flag
    When trying to uninstall, I would:
    • Stop the TV Server service.
    • Run the uninstall procedure.
    • Reboot.
    • Manually delete the folders in "Program Files" and "ProgramData" that have "Team MediaPortal" in the name.

    I have had situations where even doing the above is not sufficient to get a fresh install of MP1 working, I also needed to uninstall MySQL and most important delete the MySQL folders in Program Files and Program Data.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,957
    2,196
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    I think uninstalling mysql after uninstalling mediaportal would solve this issue.
    That being said, it still is strange that installing 1.26 works, but 1.27 fails.
    Something must have changed in this (or the functions called from there)
    I know it's a big amount of work with possibly a lot of data loss, but could you check the contents of the server table in mysql, then uninstall mysql+delete data, then install 1.27 and check the contents of that table again?
    If it's not too much trouble that is..
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    319
    50
    Home Country
    United Kingdom United Kingdom
    Country flag
    As it happens, I am using SQL Server for the MpTvDb database. As the machine onto which I was loading MP1to is my development machine, I had been using SQL Server, with a copy of MpTvDb on it, to test some of my code (add-ons for MP) and had forgotten that it related to tuner cards that were on my production TV Server.

    However, 1.27 wouldn't install properly even after I had removed the MpTvDb database from SQL Server, while 1.26 did install.

    To be more precise, the 1.27 installation fails right with the dialog I attached earlier at the end of the installing server section (in a server and client installation) and then again when trying to run TV Server Configuration.

    I think uninstalling mysql after uninstalling mediaportal would solve this issue.
    That being said, it still is strange that installing 1.26 works, but 1.27 fails.
    Something must have changed in this (or the functions called from there)
    I know it's a big amount of work with possibly a lot of data loss, but could you check the contents of the server table in mysql, then uninstall mysql+delete data, then install 1.27 and check the contents of that table again?
    If it's not too much trouble that is..

    To whom was the above directed?

    Tony
     

    Users who are viewing this thread

    Similar threads

    I've downloaded mpextended-service 0.6.0.4-emby-zip. Extracted it to find MPExtended-installer.Services.msi When I run the .msi file i can install it okay, and access the configuration page, but when i rightclick on the icon in the tray (to start the TV Server) I get this error "Windows cannot find C:\program files...
    I've downloaded mpextended-service 0.6.0.4-emby-zip. Extracted it to find MPExtended-installer.Services.msi When I run the .msi...
    I've downloaded mpextended-service 0.6.0.4-emby-zip. Extracted it to find MPExtended-installer.Services.msi When I run the .msi...
    Replies
    0
    Views
    357
    So after a long search and a lot of experiments I did find out the culprit: I did disable events of the Common Information Model Object Manager. As soon as they are disabled TV server will always show "port 554 is already bound". Enabling/disabling events is done by this reg key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM]...
    So after a long search and a lot of experiments I did find out the culprit: I did disable events of the Common Information Model...
    I've got a Digital Devices Cine S2 V7A Twin and a DigitalEverywhere FloppyDTV for Satellite TV. I've been running MediaPortal 1.4.0...
    Replies
    1
    Views
    191
    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.
    FWIW, please see SQL Server 2017 Express for a workaround. Adding the scheduled task on startup seems to resolve the problem, at...
    When installing MP1, the TV DB configuration dialog specifies SQL Server 2005 (see attached file "Setup database connection -...
    Replies
    4
    Views
    810
    Azzuro and doskabouter, got it working. Resetting the database worked. And after linking to the server via current IP and making a new db, I relinked to the original db and all settings were restored. Thanks again and Happy New Year to all!
    Azzuro and doskabouter, got it working. Resetting the database worked. And after linking to the server via current IP and making a...
    A couple weeks ago the TV server service stopped working. Not urgent, so waited till today to research it. Did an upgrade to 1.26...
    Replies
    4
    Views
    541
    P.S. - Strangely, the TV Server my single seat setup (1.27 on a modest machine running Windows 10 Pro x64) is working from my office machine MP client. Same exact network, firewall, Defender settings. It's a slightly older version of Win 10 though - I haven't updated to 20Hx on it yet. Maybe I shouldn't (or maybe I should image it...
    P.S. - Strangely, the TV Server my single seat setup (1.27 on a modest machine running Windows 10 Pro x64) is working from my...
    Let me start by asking if anyone has TV Server running PROPERLY on a Windows 10 machine, and if so are you using RTSP or UNC share...
    Replies
    9
    Views
    603
    Top Bottom