Mysql upgrade problems

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
grote002 Offline
Member
Posts: 94
Joined: Jan 2004
Reputation: 0
Post: #1
I am having problems upgrading from xbmc_video61 to xbmc_video64 on the latest xbmc.

I compile the latest xbmc and then run it, there is a new database xbmc_video64 made with 1 table in it, just actorlinkepisode with all the rows that the xbmc_video61 database had and xbmc fails to load.

So i tried to find a fix, i had to drop the actorlinkepisode, actorlinktvshow and actorlinkmovie tables to get the database to upgrade, but then Xbmc loads and when i get into tvshows/movies, xbmc starts using all the cpu-power.

The xbmc_video61 layout for these tables is:

Code:
mysql> select count(*) from actorlinkepisode;
+----------+
| count(*) |
+----------+
|    70110 |
+----------+
1 row in set (0.00 sec)

mysql> select count(*) from actorlinktvshow;
+----------+
| count(*) |
+----------+
|     2335 |
+----------+
1 row in set (0.00 sec)

mysql> select count(*) from actorlinkmovie;
+----------+
| count(*) |
+----------+
|     5466 |
+----------+
1 row in set (0.00 sec)

mysql> desc actorlinkepisode;
+-----------+---------+------+-----+---------+-------+
| Field     | Type    | Null | Key | Default | Extra |
+-----------+---------+------+-----+---------+-------+
| idActor   | int(11) | YES  | MUL | NULL    |       |
| idEpisode | int(11) | YES  | MUL | NULL    |       |
| strRole   | text    | YES  |     | NULL    |       |
| iOrder    | int(11) | YES  |     | NULL    |       |
+-----------+---------+------+-----+---------+-------+
4 rows in set (0.00 sec)

mysql> desc actorlinktvshow;
+---------+---------+------+-----+---------+-------+
| Field   | Type    | Null | Key | Default | Extra |
+---------+---------+------+-----+---------+-------+
| idActor | int(11) | YES  | MUL | NULL    |       |
| idShow  | int(11) | YES  | MUL | NULL    |       |
| strRole | text    | YES  |     | NULL    |       |
| iOrder  | int(11) | YES  |     | NULL    |       |
+---------+---------+------+-----+---------+-------+
4 rows in set (0.00 sec)

mysql> desc actorlinkmovie;
+---------+---------+------+-----+---------+-------+
| Field   | Type    | Null | Key | Default | Extra |
+---------+---------+------+-----+---------+-------+
| idActor | int(11) | YES  | MUL | NULL    |       |
| idMovie | int(11) | YES  | MUL | NULL    |       |
| strRole | text    | YES  |     | NULL    |       |
| iOrder  | int(11) | YES  |     | NULL    |       |
+---------+---------+------+-----+---------+-------+
4 rows in set (0.00 sec)

After that i made a mysqldump of all databases, dropped all xbmc_video databases from the mysql-server and restarted xbmc. Now xbmc works fine, no more 100% cpu usage.
I go to the dir that holds all my series, set content to 'Tvshows' -> 'TheTVDB' and afterwards i try to get into the dir with all the series and it wont let me, when i check the xbmc-log it says:

Code:
23:14:19 T:3016521536   ERROR: SQL: The table does not exist
                                            Query: select count(1) from episodeview where strPath = 'smb://nas/series/' limit 1
23:14:19 T:3016521536   ERROR: exception in CApplication::FrameMove()
23:14:24 T:3016521536   ERROR: SQL: The table does not exist
                                            Query: select strPath,noUpdate from path where ( strContent = 'tvshows'       or idPath in (select idPath from tvshowlinkpath)) and strPath NOT like 'multipath://%' order by strPath
23:14:24 T:3016521536   ERROR: GetPaths failed

Something is going wrong with the latest version and mysql-support it seems.

Intel Core2Quad 3,2Ghz, 2Gb RAM, Nvidia GTS450 on Ubuntu 10.10, Denon AVR-2311, Denon POA4400A
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #2
The debug log would have shown you the issue right at the start - you've posted stuff from far down.

In either case, it's almost certainly been fixed in master.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
loekf Offline
Junior Member
Posts: 41
Joined: Apr 2012
Reputation: 0
Location: Netherlands
Post: #3
(2012-05-11 00:47)jmarshall Wrote:  The debug log would have shown you the issue right at the start - you've posted stuff from far down.

In either case, it's almost certainly been fixed in master.

I see a similar (?) issue with the latest nighty.

When you do a clean install, XBMC crashes on SQL errors. The new databases are created though (_64 format).

If you install on top of an older version, the databases are updated and all is fine.

HTPC: MS-Tech MC-1200 | Asus F1A75-M | AMD A6 3650 | OCZ Agility3 120GB | Corsair Vengeance 2x4GB DDR3| LiteOn iHOS104 BDR | Win7 x64 (Catalyst 12.4) | XBMC 12.0-ALPHA2 Git:20120512-694a759
Home AV: Philips 37PFL5603 | UPC Mediabox | Philips BDP7600/12 | Onkyo TX-NR609 | Sony PS3 Slim | Logitech Harmony One | Sonos audio | Apple TV | 5.1 speakers (TMA, Phonar)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,570
Joined: Oct 2003
Reputation: 138
Post: #4
The crashes in win32 are unrelated to this.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
grote002 Offline
Member
Posts: 94
Joined: Jan 2004
Reputation: 0
Post: #5
There is something wrong with the latest version and mysql.

I just compiled the latest version from git and started xbmc with the xbmc_video61 dir, the database is migrated to xbmc_video64, i can go into Movies/Music/Videos, but as soon as i go into TV-Shows or a folder where the content is tvseries, it freezes.

After that I dropped any xbmc_video databases. I set content for the tvseries-folder to TVDB-scraper and ran a library update which added 213 tvshows with 14379 episodes, 31709 actors, 2262 actorlinktvshow and 61553 actorlinkepisode. The Library Update finishes correctly. After that I tried to enter the tvseries-folder and the dir loads and then xbmc starts using 100% cpu again and the screen freezes.

I reset my htpc and after reboot tried to enter the 'TV-Shows'-section of xbmc and it freezes again.
xbmc.log of the latest startup can be found here

Intel Core2Quad 3,2Ghz, 2Gb RAM, Nvidia GTS450 on Ubuntu 10.10, Denon AVR-2311, Denon POA4400A
find quote
Aenima99x Offline
Member+
Posts: 1,036
Joined: Aug 2007
Reputation: 7
Location: California
Post: #6
Looks like you need to take <name>xbmc_video</name> and <name>xbmc_music</name> out of your advancedsettings.xml
find quote
grote002 Offline
Member
Posts: 94
Joined: Jan 2004
Reputation: 0
Post: #7
(2012-05-18 16:55)Aenima99x Wrote:  Looks like you need to take <name>xbmc_video</name> and <name>xbmc_music</name> out of your advancedsettings.xml

I added the xml 'name' tags according to http://wiki.xbmc.org/index.php?title=Use...tings.xml.

Intel Core2Quad 3,2Ghz, 2Gb RAM, Nvidia GTS450 on Ubuntu 10.10, Denon AVR-2311, Denon POA4400A
find quote
Aenima99x Offline
Member+
Posts: 1,036
Joined: Aug 2007
Reputation: 7
Location: California
Post: #8
I'm not sure if they're still needed, I don't have them in my advancedsettings.xml and MySQL works fine for me. Maybe try removing them, deleting your databases and see how it goes. I had a similar problem and deleted all of the MySQL db's and the Sqlite db's and let xbmc recreate them.
find quote
BLKMGK Offline
Member+
Posts: 1,634
Joined: Jul 2006
Reputation: 3
Location: USA Virginia
Post: #9
I'm having similar issues and have been since the Ae merge. My database has a myvideos64 database created, there is some data in it, but my logs fill with errors indicating that an old datbabase has been found and that it's updating. I promptly get errors and my log fills. My current log is 500megs and most of it is filled with these errors.

SQL errors

advancedsettings.xml

If I drop the myvideos64 database it's recreated and the errors begin again. I do have two machines accessing this database but I don't think it's a contention issue, both of them exhibit the same errors. I've lost the ability to see watched shows just as the previous posted has and I suspect we're both seeing the same issue. XBMC's password and account for my server grants it full access so this shouldn't be an access issue. MySQL is running on a Win7 desktop and has been for many months with no issues prior to this.

I'm compiling to latest code pretty often ->

23:02:59 T:140447493928896 NOTICE: Starting XBMC (12.0-ALPHA2 Git:20120519-c9cfb09), Platform: Linux (Ubuntu 10.10, 2.6.35-32-generic x86_64). Built on May 19 2012

Ubuntu 10.10, MCE USB receiver, ASROCK 330 (ION), DVDs fed from unRAID cataloged by DVD Profiler. HD-DVD encoding Added DiNovo Mini KBRD w/track
find quote
Aenima99x Offline
Member+
Posts: 1,036
Joined: Aug 2007
Reputation: 7
Location: California
Post: #10
I don't think I was specific in how I fixed my issue which was similar to both of yours. I compile git nightly and haven't had any issues since I did the following.
- Deleted the MySQL and Sqlite db's
- Disabled MySQL and commented out the MYSQL settings in advancedsettings.xml
- launched XBMC and let it create the sqlite db's
- set the content & updated library
- close XBMC, re-enable MySQL & un-comment lines in advancedsettings
- launch XBMC and let it create the MySQL db's
find quote
Post Reply