[Bug] MediaPortal 1.3 beta Failed to update database (2 Viewers)

Mouch.net

Portal Pro
July 6, 2007
163
12
La Calamine
Home Country
Belgium Belgium
I'm having the exact same error as MaxMan23 after upgarding from 1.3.0 Alpha (no custom build here)
What makes you so sure it is exactly the same. Please provide log files so we can check!

I'm seeing the same SQL error:
Code:
2012-12-17 15:47:36.654477 [SetupTv(1)]: ---- SetupTv v1.2.200.0 is starting up on Windows 7 ( Service Pack 1 ) [6.1.7601.65536]
2012-12-17 15:47:36.757483 [SetupTv(1)]: ---- check connection with database ----
2012-12-17 15:47:37.560529 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - MySQL
2012-12-17 15:47:37.644534 [SetupTv(1)]: ---- check if database needs to be updated/created ----
2012-12-17 15:47:37.737539 [SetupTv(1)]: ---- upgrade database schema ----
2012-12-17 15:47:37.850546 [SetupTv(1)]:  Exec SQL: USE MpTvDb;ALTER TABLE `Channel` ADD COLUMN `channelNumber` int(11) NOT NULL DEFAULT 10000;UPDATE Channel c set c.channelNumber = (SELECT t.channelNumber FROM TuningDetail t WHERE t.idChannel = c.idChannel ORDER BY t.idTuning limit 1);UPDATE Version SET versionNumber=61;
2012-12-17 15:47:37.941551 [SetupTv(1)]:  ********* SQL statement failed! *********
2012-12-17 15:47:38.003554 [SetupTv(1)]:  ********* Error reason: Duplicate column name 'channelNumber'
2012-12-17 15:47:38.084559 [SetupTv(1)]:  ********* Error code: 1060 *********

I removed the column per SQL console successfully and it was then created again without error:
Code:
2012-12-17 15:56:04.310514 [SetupTv(1)]: ---- SetupTv v1.2.200.0 is starting up on Windows 7 ( Service Pack 1 ) [6.1.7601.65536]
2012-12-17 15:56:04.386518 [SetupTv(1)]: ---- check connection with database ----
2012-12-17 15:56:04.541527 [TvClient-TvHome: HeartBeat transmitter thread(88)]: TCP connect took : 12
2012-12-17 15:56:04.607531 [TvClient-TvHome: HeartBeat transmitter thread(88)]: RemoteControl - Connected
2012-12-17 15:56:04.952550 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - MySQL
2012-12-17 15:56:05.034555 [SetupTv(1)]: ---- check if database needs to be updated/created ----
2012-12-17 15:56:05.118560 [SetupTv(1)]: ---- upgrade database schema ----
2012-12-17 15:56:05.204565 [SetupTv(1)]:  Exec SQL: USE MpTvDb;ALTER TABLE `Channel` ADD COLUMN `channelNumber` int(11) NOT NULL DEFAULT 10000;UPDATE Channel c set c.channelNumber = (SELECT t.channelNumber FROM TuningDetail t WHERE t.idChannel = c.idChannel ORDER BY t.idTuning limit 1);UPDATE Version SET versionNumber=61;

SetupTV stopped with an error again though, which is probably the same that happened while upgrading:
Code:
2012-12-17 15:56:35.373290 [SetupTv(1)]:  ********* SQL statement failed! *********
2012-12-17 15:56:35.435294 [SetupTv(1)]:  ********* Error reason: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
2012-12-17 15:56:35.498297 [SetupTv(1)]:  ********* Error code: 0 *********
 
Last edited:

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks Mouch.net

    That timeout error is possibly the issue. How many channels do you have in your DB?

    mm
     

    Mouch.net

    Portal Pro
    July 6, 2007
    163
    12
    La Calamine
    Home Country
    Belgium Belgium
    Thanks Mouch.net

    That timeout error is possibly the issue. How many channels do you have in your DB?

    mm

    Not sure about the amount of used channels (I would say about 30), but the channel table has 3476 lines...

    I tried to increase the Timeout in Gentle.config from 30 to something higher, but it doesn't seem to have any effect.

    So I executed all the SQL commands in the console... The update of the channelNumber took about 70seconds. Everything seem to work fine now :)
     
    Last edited:

    benrom

    Portal Member
    January 27, 2011
    6
    0
    Hello !
    I have the same problem : I tried to update from 1.2.3 to 1.3 beta, it failed, then I uninstalled, cleaned my PC, but now still there are no traces of MP nor MySQl, every attempt to install MP 1.2.3 fails, when the tv server tries to start and I get this message (see picture).
    I'm on Win8 64bits

    Can anyone help me?
    Ben.
     

    Attachments

    • erreur.jpg
      erreur.jpg
      177.6 KB
    Last edited:

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Hi mm1352000,
    I just upgraded my TV-Server to 1.3beta and had an issue with the upgrade script, using MSSQL:
    Code:
    ´╗┐2012-12-27 04:18:56.169816 [SetupTv(1)]: ---- started in Deploy mode ----
    2012-12-27 04:18:56.263567 [SetupTv(1)]: ---- SetupTv v1.2.200.0 is starting up on Windows XP ( Service Pack 3 ) [5.1.2600.196608]
    2012-12-27 04:18:56.263567 [SetupTv(1)]: ---- check connection with database ----
    2012-12-27 04:19:25.889136 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - SQLBrowser
    2012-12-27 04:19:26.232893 [SetupTv(1)]: ---- SetupDatabaseForm: server = xtv-gmi-01, local = True
    2012-12-27 04:19:26.764153 [SetupTv(1)]: ---- check if database needs to be updated/created ----
    2012-12-27 04:19:27.686046 [SetupTv(1)]: ---- upgrade database schema ----
    2012-12-27 04:19:28.826693 [SetupTv(1)]:  Exec SQL: USE MpTvDb;
    2012-12-27 04:19:28.920444 [SetupTv(1)]:  Exec SQL: ALTER TABLE Channel ADD channelNumber INT NOT NULL CONSTRAINT [DF_Channel_ChannelNumber] DEFAULT 10000
    2012-12-27 04:19:30.373597 [SetupTv(1)]:  Exec SQL: UPDATE Channel SET channelNumber = (SELECT TOP 1 t.channelNumber FROM TuningDetail AS t WHERE t.idChannel = channel.idChannel ORDER BY t.idTuning)
    2012-12-27 04:19:33.608034 [SetupTv(1)]:  ********* SQL statement failed! *********
    2012-12-27 04:19:33.608034 [SetupTv(1)]:  ********* Error reason: Cannot insert the value NULL into column 'channelNumber', table 'MpTvDb.dbo.Channel'; column does not allow nulls. UPDATE fails.
    The statement has been terminated.
    2012-12-27 04:19:33.608034 [SetupTv(1)]:  ********* Error code: 515, Line: 1 *********
    2012-12-27 04:19:33.608034 [SetupTv(1)]:  Exec SQL: UPDATE Version SET versionNumber=61
    The current 61 script tries:
    Code:
    UPDATE Channel SET channelNumber = (SELECT TOP 1 t.channelNumber FROM TuningDetail AS t WHERE t.idChannel = channel.idChannel ORDER BY t.idTuning)
    which is imho wrong. If I understand right, we want to duplicate the TuningDetails.channelNumber into the new Channel.channelNumber, right?
    I think we should do something like:
    Code:
    UPDATE Channel
    SET channelNumber = (SELECT TOP 1 t.channelNumber ORDER BY t.idTuning)
    FROM TuningDetail as t INNER JOIN Channel as c
    ON t.idChannel = c.idChannel
    Does that make sense for you?
     

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    52
    Vienna
    Home Country
    Austria Austria
    So - what is the solution for this - just did the Upgrade (or tried to do it) from 1.3.alpha and got also teh error:

    2013-01-17 12:40:23.005926 [SetupTv(1)]: ---- started in Deploy mode ----
    2013-01-17 12:40:23.011926 [SetupTv(1)]: ---- SetupTv v1.2.200.0 is starting up on Windows 7 ( Service Pack 1 ) [6.1.7601.65536]
    2013-01-17 12:40:23.017927 [SetupTv(1)]: ---- check connection with database ----
    2013-01-17 12:40:23.160935 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - MySQL
    2013-01-17 12:40:23.165935 [SetupTv(1)]: ---- SetupDatabaseForm: server = Mediacenter, local = True
    2013-01-17 12:40:23.168935 [SetupTv(1)]: ---- check if database needs to be updated/created ----
    2013-01-17 12:40:23.175936 [SetupTv(1)]: ---- upgrade database schema ----
    2013-01-17 12:40:23.183936 [SetupTv(1)]: Exec SQL: USE MpTvDb;ALTER TABLE `Channel` ADD COLUMN `channelNumber` int(11) NOT NULL DEFAULT 10000;UPDATE Channel c set c.channelNumber = (SELECT t.channelNumber FROM TuningDetail t WHERE t.idChannel = c.idChannel ORDER BY t.idTuning limit 1);UPDATE Version SET versionNumber=61;
    2013-01-17 12:40:23.186936 [SetupTv(1)]: ********* SQL statement failed! *********
    2013-01-17 12:40:23.188936 [SetupTv(1)]: ********* Error reason: Duplicate column name 'channelNumber'
    2013-01-17 12:40:23.190937 [SetupTv(1)]: ********* Error code: 1060 *********
    2013-01-17 12:40:29.165278 [SetupTv(1)]: ---- SetupTv v1.2.200.0 is starting up on Windows 7 ( Service Pack 1 ) [6.1.7601.65536]
    2013-01-17 12:40:29.171279 [SetupTv(1)]: ---- check connection with database ----
    2013-01-17 12:40:29.316287 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - MySQL
    2013-01-17 12:40:29.319287 [SetupTv(1)]: ---- check if database needs to be updated/created ----
    2013-01-17 12:40:29.328288 [SetupTv(1)]: ---- upgrade database schema ----
    2013-01-17 12:40:29.337288 [SetupTv(1)]: Exec SQL: USE MpTvDb;ALTER TABLE `Channel` ADD COLUMN `channelNumber` int(11) NOT NULL DEFAULT 10000;UPDATE Channel c set c.channelNumber = (SELECT t.channelNumber FROM TuningDetail t WHERE t.idChannel = c.idChannel ORDER BY t.idTuning limit 1);UPDATE Version SET versionNumber=61;
    2013-01-17 12:40:29.340288 [SetupTv(1)]: ********* SQL statement failed! *********
    2013-01-17 12:40:29.342288 [SetupTv(1)]: ********* Error reason: Duplicate column name 'channelNumber'
    2013-01-17 12:40:29.344289 [SetupTv(1)]: ********* Error code: 1060 *********
     

    pur_berger

    Super User
  • Team MediaPortal
  • Super User
  • May 14, 2007
    1,679
    309
    52
    Vienna
    Home Country
    Austria Austria
    Last edited:

    Users who are viewing this thread

    Similar threads

    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the stations but if I rescan it on the same card it just keeps updating the 1 channel. My brain is melting.........
    It's getting weirder..... If I remove all the IP cards in the TVServer setup and then add them back I can scan the M3u and tune the...
    Having great fun with this still. I have a fairly good PC setup, Ryzen 5 8500g, Msi Pro 650M-P with 32GB of RAM with a TBS 6281 and...
    Replies
    2
    Views
    128
    Ok, so perhaps a solution, but not the "right" solution. On the client, within media portal configuration, under TV settings, advanced options, I switched to UNC paths instead of the default RSS, and it's working very well. Sure I had to figure out the paths, but no big deal. Maybe helpful for someone in the future. Thanks for the...
    Ok, so perhaps a solution, but not the "right" solution. On the client, within media portal configuration, under TV settings...
    Hi folks. I have an issue with a new install/integration into my mediaportal system. I have a “mediaportal server” which has the TV...
    Replies
    5
    Views
    496
    I eventually came across the TwinHan driver CD that was included with the original product. The CD contains numerous drivers for the different TwinHan tuner models, but the drivers are for Win 2K (32-bit only) and Win XP (32-bit and 64-bit). The drivers install directly on Vista, and the drivers can be installed on Win 7 and Win 10...
    I eventually came across the TwinHan driver CD that was included with the original product. The CD contains numerous drivers for...
    Hi, went from a 1.29 install (working, reinstalled for other reasons) on a fairly fresh and fully updated Windows 10 system for a...
    Replies
    24
    Views
    2K
    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    479
    Hi, you can try the new installer from this post if you like.
    Hi, you can try the new installer from this post if you like.
    Hello, I came from MediaPortal 1.30 and wanted to Update on 1.32 x64 Edition. I cleanly uninstalled 1.30 first and then installed...
    Replies
    7
    Views
    1K
    Top Bottom