[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,578
    8,228
    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,578
    8,228
    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,578
    8,228
    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,578
    8,228
    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,578
    8,228
    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

    <MariaDB10> <URL>https://install.team-mediaportal.com/MariaDB_10</URL> <FILE>mariadb-10.11.8-winx64.msi</FILE> <TYPE>Automatic</TYPE> </MariaDB10> Maria DB 10.11.8, base version 10.0, in the log file (a piece of which is above) it is displayed - MariaDB 10.11 (x64) - MariaDB 10.0 Property(S)...
    <MariaDB10> <URL>https://install.team-mediaportal.com/MariaDB_10</URL> <FILE>mariadb-10.11.8-winx64.msi</FILE>...
    See the attached screenshot. This problem ocurred when I attempted an update install from MP 1.36 x64, which had previously been...
    Replies
    8
    Views
    696
    If you use a VPN connection to your home network, you should be able to use the MP client to connect to your server natively instead of using MPExtended.
    If you use a VPN connection to your home network, you should be able to use the MP client to connect to your server natively...
    I am another (almost) new user with a problem. About 18 months ago I managed to instal client and server of MP2 on my 32bit PC in...
    Replies
    5
    Views
    543
    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
    660
    • Sticky
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    MP 1.37 Final (Willow) Bugfix II released, download links updated...
    We have just released MediaPortal 1.37 - Willow x86 and x64 version. Highlights of this release Bugfixes: [MP1-5232] - GPU...
    Replies
    4
    Views
    920
    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
    1K
    Top Bottom