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

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,544
    8,236
    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,544
    8,236
    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,544
    8,236
    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,544
    8,236
    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,544
    8,236
    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

    Hello, Name need to be the same as computer name. Also, logs could be useful.
    Hello, Name need to be the same as computer name. Also, logs could be useful.
    It is a bit of a long story! I successfully installed MP2 on my old PC as client/server with client on my laptop to confirm my...
    Replies
    2
    Views
    1K
    <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
    2K
    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
    2K
    • Sticky
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not relevant to the plugin itself (test, some leftover unused parts etc).
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not...
    We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
    Replies
    37
    Views
    10K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    1K
    Top Bottom