[Bug] MediaPortal 1.3 beta Failed to update database (1 Viewer)

findftp

MP Donator
  • Premium Supporter
  • September 20, 2011
    184
    35
    Nootdorp
    Home Country
    Netherlands Netherlands
    I have a clean windows 7 x64 with a completely uninstalled 1.2.3 version.
    Upgrading gave the same error, so I did a complete uninstall with no avail.
    Now I will try to uninstall mysql too.
     

    Attachments

    • Untitled.png
      Untitled.png
      174.9 KB

    MaxMan23

    MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    Me too.
    I can watch TV, but if i try to open the tvsetup i got this message
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello

    Thank you for the reports and especially for the log files. (y)
    I've moved the thread to the MP 1.3 beta bug report section where it won't be missed.

    It looks like the issue is here:
    2012-12-15 05:42:39.193543 [SetupTv(1)]: ---- upgrade database schema ----
    2012-12-15 05:42:39.199544 [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-15 05:42:39.200544 [SetupTv(1)]: ********* SQL statement failed! *********
    2012-12-15 05:42:39.201544 [SetupTv(1)]: ********* Error reason: Duplicate column name 'channelNumber'
    2012-12-15 05:42:39.201544 [SetupTv(1)]: ********* Error code: 1060 *********

    Are you 100% sure you didn't attempt the update multiple times or install an unofficial version of the beta before it was released?

    mm
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    @findftp
    Do you also use a MySQL database?
    Could you please also provide your log files so we can check if both of you are seeing the same problem.

    Thanks,
    mm
     

    MaxMan23

    MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    ...or install an unofficial version of the beta before it was released?

    No ;)
    But you can help me anyway?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    No ;)
    But you can help me anyway?
    We do not provide support for upgrading from custom/unofficial builds because the DB state can't be guaranteed. Please keep this in mind before trying such builds in the future. It is sometimes hard to wait for the release, but it saves problems like this. ;)

    You need to run the following SQL query to revert the state of your database:
    ALTER TABLE Channel DROP COLUMN ChannelNumber;

    You can either use MySQL Workbench (or MySQL GUI Tools) or command in DOS prompt like:
    mysql -u root -p -e "ALTER TABLE Channel DROP COLUMN ChannelNumber;" mptvdb

    After that the upgrade should succeed.

    Marking the thread as "no bug".
     
    Last edited:

    MaxMan23

    MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    Sorry again. It does not work for me.. (and i will never do this again :) )
    Is your mysql version the same?

    Bild1.png
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Ah, okay.
    You're in the MySQL command prompt. That is good. You can just enter:
    use MpTvDb;
    ALTER TABLE Channel DROP COLUMN ChannelNumber;

    No need for the "mysql -u ..." stuff

    mm
     

    MaxMan23

    MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    I tried bevor, but i got another error...
    Maybe Versions conflict?

    Bild1.png
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    There are two commands. I think you got the first one wrong. It should be "use MpTvDb;". Note that the semi colon (;) is important. After you enter that command press enter. Then enter the second command and press enter.
     

    Users who are viewing this thread

    Similar threads

    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
    241
    The MP 1.34 switched MySQL installation version from 5.6 to 8.3. The new version 8.3 is INCOMPATIBLE with the current version of MP. I don't know why there was a jump to the new version. After some struggling I was finally able to get it work but it requires to switch the MP to higher NET version (tested 4.7.2) and latest...
    The MP 1.34 switched MySQL installation version from 5.6 to 8.3. The new version 8.3 is INCOMPATIBLE with the current version of...
    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
    9
    Views
    1K
    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
    • Sticky
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    1K
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    We have just released MediaPortal 1.34 - Dune x86 and x64 version. Highlights of this release Bugfixes: [MP1-5201] - Fix MPC-HC...
    Replies
    10
    Views
    4K
    Top Bottom