This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Database statistics version too new for this version of Amarok [SOLVED]

Tags: None
(comma "," separated)
imported-audience
Registered Member
Posts
20
Karma
0
Hi,
after upgrading to amarok 1.4.2 I get this error:
[CollectionDB] [ERROR!] Database statistics version too new for this version of Amarok. Quitting...

Here is everything I get when starting amarok
user@home:~/amarok-1.4.2$ amarok
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
Amarok: [Loader] Starting amarokapp..
Amarok: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
amarok: BEGIN: App::App()
amarok: BEGIN: void App::fixHyperThreading()
amarok:     Workaround not enabled
amarok: END__: void App::fixHyperThreading() - Took 0.001s
amarok: END__: App::App() - Took 0.0094s
amarok: BEGIN: void App::continueInit()
amarok: BEGIN: EngineBase* EngineController::loadEngine(const QString&)
amarok:     [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] != 'void-engine' and [X-KDE-Amarok-rank] > 0
amarok:     [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] == 'void-engine' and [X-KDE-Amarok-rank] > 0
amarok:     [PluginManager] Trying to load: libamarok_void-engine_plugin
amarok:
amarok:     PluginManager Service Info:
amarok:     ---------------------------
amarok:     name                          : Keine Audio-Ausgabe
amarok:     library                       : libamarok_void-engine_plugin
amarok:     desktopEntryPath              : amarok_void-engine_plugin.desktop
amarok:     X-KDE-Amarok-plugintype       : engine
amarok:     X-KDE-Amarok-name             : void-engine
amarok:     X-KDE-Amarok-authors          : (Max Howell,Mark Kretschmann)
amarok:     X-KDE-Amarok-rank             : 1
amarok:     X-KDE-Amarok-version          : 1
amarok:     X-KDE-Amarok-framework-version: 26
amarok:
amarok: END__: EngineBase* EngineController::loadEngine(const QString&) - Took 0.018s
amarok: BEGIN: CollectionDB::CollectionDB()
amarok: BEGIN: void CollectionDB::initialize()
amarok:       [ThreadWeaver] Creating pthread key, exit value is 0
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:         [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:         [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.015s
amarok:       [CollectionDB] Updating DEVICES table
amarok: END__: void CollectionDB::initialize() - Took 0.025s
amarok:     [CollectionDB] INotify not available, using QTimer!
amarok: END__: CollectionDB::CollectionDB() - Took 0.34s
amarok: BEGIN: void CollectionDB::checkDatabase()
amarok:     [CollectionDB] Beginning database update
amarok:     [CollectionDB] Different database stats version detected! Stats table will be updated or rebuilt.
amarok:     [CollectionDB] [ERROR!] Database statistics version too new for this version of Amarok. Quitting...
amarok: BEGIN: virtual CollectionDB::~CollectionDB()
amarok: END__: virtual CollectionDB::~CollectionDB() - Took 0.00022s
amarok:     [virtual EngineController::~EngineController()]

I just get this error on one machine. the upgrade on my laptop did well. Where is the problem?

Last edited by Anonymous on Sun Aug 27, 2006 6:51 pm, edited 1 time in total.
Martin Aumueller
KDE Developer
Posts
219
Karma
0
From which version of Amarok did you upgrade to 1.4.2?
imported-audience
Registered Member
Posts
20
Karma
0
imported-audience
Registered Member
Posts
20
Karma
0
I reinstalled amarok 1.4.2 and 1.4.1 a couple of times and also reinstalled the mysql-client. Now i can start amarok and it loads my music-collection. But it does not get the statistics. on my laptop i get this and of course the stats are in the mysql database on my server.
here is the output i get when starting amarok 1.4.2:
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
Amarok: [Loader] Starting amarokapp..
Amarok: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
  Major opcode:  147
  Minor opcode:  3
  Resource id:  0x0
Failed to open device
amarok: BEGIN: App::App()
amarok: BEGIN: void App::fixHyperThreading()
amarok:    Workaround not enabled
amarok: END__: void App::fixHyperThreading() - Took 0.001s
amarok: END__: App::App() - Took 0.0096s
amarok: BEGIN: void App::continueInit()
amarok: BEGIN: EngineBase* EngineController::loadEngine(const QString&)
amarok:    [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] != 'void-engine' and [X-KDE-Amarok-rank] > 0
amarok:    [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] == 'void-engine' and [X-KDE-Amarok-rank] > 0
amarok:    [PluginManager] Trying to load: libamarok_void-engine_plugin
amarok:
amarok: END__: EngineBase* EngineController::loadEngine(const QString&) - Took 0.017s
amarok: BEGIN: CollectionDB::CollectionDB()
amarok: BEGIN: void CollectionDB::initialize()
amarok:      [ThreadWeaver] Creating pthread key, exit value is 0
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:        [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:        [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.0077s
amarok: END__: void CollectionDB::initialize() - Took 0.014s
amarok:    [CollectionDB] INotify not available, using QTimer!
amarok: END__: CollectionDB::CollectionDB() - Took 0.027s
amarok: BEGIN: void CollectionDB::checkDatabase()
amarok:    [CollectionDB] INotify not available, using QTimer!
amarok: END__: void CollectionDB::checkDatabase() - Took 0.015s
amarok: BEGIN: MediaDeviceManager::MediaDeviceManager()
amarok: BEGIN: DeviceManager::DeviceManager()
amarok: BEGIN: Medium* DeviceManager::getDevice(QString)
amarok:        DeviceManager: getDevice called with name argument = init
amarok: BEGIN: QStringList DeviceManager::getDeviceStringList()
amarok: END__: QStringList DeviceManager::getDeviceStringList() - Took 0.0009s
amarok: END__: Medium* DeviceManager::getDevice(QString) - Took 0.0018s
amarok:      DeviceManager:  connectDCOPSignal returned successfully!
QLayout "unnamed" added to QVBox "unnamed", which already has a layout
amarok: BEGIN: void MountPointManager::init()
amarok:      [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'device' and [X-KDE-Amarok-rank] > 0
amarok:      [MountPointManager] Received [3] device plugin offers
amarok:      [PluginManager] Trying to load: libamarok_smb-device
amarok:
amarok:
amarok:      PluginManager Service Info:
amarok:      ---------------------------
amarok:      name                          : Wechsellaufwerk
amarok:      library                      : libamarok_massstorage-device
amarok:      desktopEntryPath              : amarok_massstorage-device.desktop
amarok:      X-KDE-Amarok-plugintype      : device
amarok:      X-KDE-Amarok-name            : massstorage-device
amarok:      X-KDE-Amarok-authors          : (Maximilian Kossick)
amarok:      X-KDE-Amarok-rank            : 100
amarok:      X-KDE-Amarok-version          : 1
amarok:      X-KDE-Amarok-framework-version: 26
amarok:
amarok:      [PluginManager] Trying to load: libamarok_nfs-device
amarok:
amarok:      PluginManager Service Info:
amarok:      ---------------------------
amarok:      name                          : NFS-Gerät
amarok:      library                      : libamarok_nfs-device
amarok:      desktopEntryPath              : amarok_nfs-device.desktop
amarok:      X-KDE-Amarok-plugintype      : device
amarok:      X-KDE-Amarok-name            : nfs-device
amarok:      X-KDE-Amarok-authors          : (Maximilian Kossick)
amarok:      X-KDE-Amarok-rank            : 100
amarok:      X-KDE-Amarok-version          : 1
amarok:      X-KDE-Amarok-framework-version: 26
amarok:
amarok: BEGIN: QStringList DeviceManager::getDeviceStringList()
amarok: END__: QStringList DeviceManager::getDeviceStringList() - Took 0.0011s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/freedesktop/Hal/devices/volume_uuid_AEB0DBFCB0DBC8CB
amarok:        [MassStorageDeviceHandler] Found existing UUID config for ID 7 , uuid /org/freedesktop/Hal/devices/volume_uuid_AEB0DBFCB0DBC8CB
amarok:        [MountPointManager] added device 7 with mount point /media/hda1
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0038s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/freedesktop/Hal/devices/volume_uuid_46908A34908A2B0F
amarok:        [MassStorageDeviceHandler] Found existing UUID config for ID 8 , uuid /org/freedesktop/Hal/devices/volume_uuid_46908A34908A2B0F
amarok:        [MountPointManager] added device 8 with mount point /media/hda5
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0025s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/freedesktop/Hal/devices/volume_uuid_f5e7af92_9562_492f_89ca_a7004560dfe4
amarok:        [MassStorageDeviceHandler] Found existing UUID config for ID 9 , uuid /org/freedesktop/Hal/devices/volume_uuid_f5e7af92_9562_492f_89ca_a7004560dfe4
amarok:        [MountPointManager] added device 9 with mount point /media/hda6
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0024s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/freedesktop/Hal/devices/volume_uuid_9c107430_bdcd_49af_8579_1599c68215c3
amarok:        [MassStorageDeviceHandler] Found existing UUID config for ID 10 , uuid /org/freedesktop/Hal/devices/volume_uuid_9c107430_bdcd_49af_8579_1599c68215c3
amarok:        [MountPointManager] added device 10 with mount point /
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0024s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/freedesktop/Hal/devices/volume_uuid_39067b95_37dd_4fb1_9340_3717a293ac40
amarok:        [MassStorageDeviceHandler] Found existing UUID config for ID 11 , uuid /org/freedesktop/Hal/devices/volume_uuid_39067b95_37dd_4fb1_9340_3717a293ac40
amarok:        [MountPointManager] added device 11 with mount point /media/hdb5
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0065s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/kde/mediamanager/fstab/192.168.178.21:mnthda6Musicmedianfsmac-miniMusic
amarok:        Found existing NFS config for ID 3 , server 192.168.178.21 ,share /mnt/hda6/Music
amarok:        [MountPointManager] added device 3 with mount point /media/nfs/mac-mini/Music
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.003s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/kde/mediamanager/fstab/192.168.178.21:mnthda6Videomedianfsmac-miniVideo
amarok:        Found existing NFS config for ID 4 , server 192.168.178.21 ,share /mnt/hda6/Video
amarok:        [MountPointManager] added device 4 with mount point /media/nfs/mac-mini/Video
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0024s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/kde/mediamanager/fstab/192.168.178.21:mnthda6Bildermedianfsmac-miniBilder
amarok:        Found existing NFS config for ID 5 , server 192.168.178.21 ,share /mnt/hda6/Bilder
amarok:        [MountPointManager] added device 5 with mount point /media/nfs/mac-mini/Bilder
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0023s
amarok: BEGIN: void MountPointManager::mediumChanged(const Medium*)
amarok:        [MountPointManager] found handler for /org/kde/mediamanager/fstab/192.168.178.21:mnthda6Downloadsmedianfsmac-miniDownloads
amarok:        Found existing NFS config for ID 6 , server 192.168.178.21 ,share /mnt/hda6/Downloads
amarok:        [MountPointManager] added device 6 with mount point /media/nfs/mac-mini/Downloads
amarok: END__: void MountPointManager::mediumChanged(const Medium*) - Took 0.0026s
amarok: END__: void MountPointManager::init() - Took 0.057s
QLayout: Adding KToolBar/mainToolBar (child of QVBox/unnamed) to layout for PlaylistWindow/PlaylistWindow
amarok: BEGIN: Creating browsers. Please report long start times!
amarok: BEGIN: ContextBrowser
amarok: END__: ContextBrowser - Took 0.12s
amarok: BEGIN: CollectionBrowser
amarok:        [CollectionView::CollectionView(CollectionBrowser*)]
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:            [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:            current browser is not collection, aborting renderView()
amarok: END__: CollectionBrowser - Took 0.049s
amarok: BEGIN: PlaylistBrowser
amarok: BEGIN: PlaylistCategory* PlaylistBrowser::loadPodcasts()
amarok:              [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.047s
amarok: END__: PlaylistCategory* PlaylistBrowser::loadPodcasts() - Took 0.081s
amarok: END__: PlaylistBrowser - Took 0.11s
amarok: BEGIN: FileBrowser
amarok: END__: FileBrowser - Took 0.33s
amarok:        [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'mediadevice' and [X-KDE-Amarok-rank] > 0
amarok: BEGIN: MediaBrowser
amarok: END__: MediaBrowser - Took 0.009s
amarok: END__: Creating browsers. Please report long start times! - Took 0.69s
amarok: END__: void PlaylistWindow::init() - Took 0.98s
amarok:    | Stamp: 1
amarok: BEGIN: void App::applySettings(bool)
amarok:      [CollectionDB] Database engine settings changed: recreating DbConnections
amarok: BEGIN: void CollectionDB::initialize()
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:          [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:          [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.0033s
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:          [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:          [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.0019s
amarok: END__: void CollectionDB::initialize() - Took 0.5s
amarok:      current browser is not collection, aborting renderView()
amarok: BEGIN: EngineBase* EngineController::loadEngine()
amarok: BEGIN: EngineBase* EngineController::loadEngine(const QString&)
amarok:          [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] != 'xine-engine' and [X-KDE-Amarok-rank] > 0
amarok:          [PluginManager] Plugin trader constraint: [X-KDE-Amarok-framework-version] == 26 and [X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] == 'xine-engine' and [X-KDE-Amarok-rank] > 0
amarok:          [PluginManager] Trying to load: libamarok_xine-engine
amarok:          [xine-engine] hello
amarok:
amarok:          PluginManager Service Info:
amarok:          ---------------------------
amarok:          name                          : xine
amarok:          library                      : libamarok_xine-engine
amarok:          desktopEntryPath              : amarok_xine-engine.desktop
amarok:          X-KDE-Amarok-plugintype      : engine
amarok:          X-KDE-Amarok-name            : xine-engine
amarok:          X-KDE-Amarok-authors          : (Max Howell)
amarok:          X-KDE-Amarok-rank            : 255
amarok:          X-KDE-Amarok-version          : 1
amarok:          X-KDE-Amarok-framework-version: 26
amarok:
amarok: BEGIN: virtual bool XineEngine::init()
amarok:            [xine-engine] 'Bringing joy to small mexican gerbils, a few weeks at a time.'
amarok:            [xine-engine] w00t/home/user/.kde/share/apps/amarok/xine-config
amarok:            [xine-engine] gapless playback enabled.
amarok: END__: virtual bool XineEngine::init() - Took 0.78s
amarok: END__: EngineBase* EngineController::loadEngine(const QString&) - Took 0.81s
amarok: END__: EngineBase* EngineController::loadEngine() - Took 0.81s
amarok:      current browser is not collection, aborting renderView()
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 2.3s
amarok: END__: void App::applySettings(bool) - Took 1.8s
amarok:  | Stamp: 2
amarok: BEGIN: ScriptManager::ScriptManager(QWidget*, const char*)
amarok: END__: ScriptManager::ScriptManager(QWidget*, const char*) - Took 0.0039s
amarok:  | Stamp: 3
user@home:~$ amarok: BEGIN: ScanController::ScanController(CollectionDB*, bool, const QStringList&)
amarok: BEGIN: void ScanController::initIncremental()
amarok:      [ThreadWeaver] Job aborted: CurrentTrackJob. Jobs pending: 2
amarok:      [ThreadWeaver] Job aborted: CurrentTrackJob. Jobs pending: 1
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok:        [ScriptManager] Loaded: amarok_live.py
amarok:        [ScriptManager] Loaded: graphequalizer
amarok:        [ScriptManager] Loaded: Lyrc
amarok:        [ScriptManager] Loaded: playlist2html.py
amarok:        [ScriptManager] Loaded: PlaylistServer.py
amarok:        [ScriptManager] Loaded: Default
amarok:        [ScriptManager] Loaded: Impulsive
amarok:        [ScriptManager] Loaded: Web Control
amarok: END__: void ScanController::initIncremental() - Took 1.3s
amarok: END__: ScanController::ScanController(CollectionDB*, bool, const QStringList&) - Took 1.3s
amarok: END__: void App::continueInit() - Took 4.5s
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok: BEGIN: virtual bool StatisticsUpdateJob::doJob()
amarok: BEGIN: virtual void ThreadWeaver::Thread::run()
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:          [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok: BEGIN: virtual bool ScanController::doJob()
amarok:            [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.0029s
amarok: BEGIN: MySqlConnection::MySqlConnection(const MySqlConfig*)
amarok:            [CollectionDB] [MySqlConnection::MySqlConnection(const MySqlConfig*)]
amarok:            [CollectionDB] Connection Charset is now: latin1
amarok: END__: MySqlConnection::MySqlConnection(const MySqlConfig*) - Took 0.11s
amarok: END__: virtual bool ScanController::doJob() - Took 0.11s
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 0.11s
amarok:      [CollectionDB] JobFinishedEvent from Incremental ScanController received.
amarok:      [MountPointManager] Trying to update 4 statistics rows
amarok: END__: virtual bool StatisticsUpdateJob::doJob() - Took 0.41s
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 0.41s
amarok:      [ThreadWeaver] Job completed: CollectionScanner. Jobs pending: 0
amarok: BEGIN: virtual ScanController::~ScanController()
amarok: END__: virtual ScanController::~ScanController() - Took 0.00028s
amarok:  [ThreadWeaver] Job completed: StatisticsUpdateJob. Jobs pending: 0
amarok: END__: virtual void ThreadWeaver::Thread::run() - Took 1.9s
amarok:  [ThreadWeaver] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: [virtual void BrowserBar::polish()]
amarok: [WARNING!] Browser is too large, mxcl says castrate the developer: PlaylistBrowser, 259
amarok: [void ContextBrowser::tabChanged(QWidget*)]
amarok: current browser is not collection, aborting renderView()


Sorry, but i had to delete some parts of the output cause of a postlimit on the forum.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
odd. Can you try backing up and deleting ~/.kde/share/config/amarokrc and see whether you get any better results?


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
imported-audience
Registered Member
Posts
20
Karma
0
When I do this i get:
amarok: BEGIN: void CollectionDB::checkDatabase()
amarok:    [CollectionDB] Beginning database update
amarok:    [CollectionDB] Different database stats version detected! Stats table will be updated or rebuilt.
amarok:    [CollectionDB] [ERROR!] Database statistics version too new for this version of Amarok. Quitting...
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
If you've ever downgraded from 1.4.2_beta (or 1.4.2)  back to 1.4.anything, then tried to upgrade again, sorry. your database is broken.
You'll need to drop and recreate your mysql amarok db (see mysql man page for details).
Note: this goes for sqlite as well - you'll need to delete your ~/.kde/share/apps/amarok/collection.db to fix the problem.

Last edited by dangle_wtf on Fri Aug 25, 2006 8:02 am, edited 1 time in total.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
imported-audience
Registered Member
Posts
20
Karma
0
But why is amarok on my laptop running allright? It connects to the same database on my server.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0
what's the Amarok version on your laptop?

If the two versions aren't the same, this could also be causing problems. Not sure why the laptop is working - have you tried deleting the entire ~/.kde/share/apps/amarok/ directory on the desktop machine? It could be something specific there causing the problem.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
imported-audience
Registered Member
Posts
20
Karma
0
Deleting the directory does not change anything. My laptop is running amarok 1.4.2.
Something suspicious I have established: amarok on my Desktop starts a new rating etc for my songs but does not touch my db on the server. that means that entries in the db are the same after playing a song. It seams my desktop is running its own database somewhere else.
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
Sounds like the Desktop is using the SQLite backend, then.


--
Mark Kretschmann - Amarok Developer
imported-audience
Registered Member
Posts
20
Karma
0
How can I figure out if amarok is using sqlite? I set it up with the correct mysql server ... the same as the on my laptop.
imported-audience
Registered Member
Posts
20
Karma
0
O.K. seams I found the problem.
I did not had installed a MySQL-Server package, just a client and mysql-common how ubuntu it calls.
I did not thought that is a problem cause i do not use the mysql-server on my desktop - i use the mysql-server one on my network-server. and amarok said mysql is allright after "./configure --enable-mysql".
But it aint! Amarok needs having a server on the mashine running you are using amarok, even if you don't use this server. maybe it's a bug (or feature :) ).
Emitter
Registered Member
Posts
1
Karma
0
Hi, I have just read your thread and I still have the same problem.
I just installed a Kubuntu with "multiverse" and at first, amarok did start. I could even connect to my old mysql-database (Ver. 4.1) on my network server.
But after I have installed MySQL 5.0 server, client and some database tools, Amarok refuses to start.

After removing  ~/.kde/share/config/amarokrc , amarok claims:
amarok:    [CollectionDB] Beginning database update
amarok:    [CollectionDB] Different database stats version detected! Stats table will be updated or rebuilt.
amarok:    [CollectionDB] [ERROR!] Database statistics version too new for this version of Amarok. Quitting...




This might be a hint. If I use my old ~/.kde/share/config/amarokrc with the database connection to an SQL-server, amarok sais:

amarok: FAILED QUERY: SELECT value FROM admin WHERE noption = 'Database Devices Version';
amarok:      [CollectionDB] MYSQL INSERT FAILED: table 'amarok.admin' does not exist
amarok: FAILED INSERT: INSERT INTO admin (value, noption) values ( '1', 'Database Devices Version' );
...


It looks like amarok doens't realy care about the sql error but always assumes a "record not found".

amarok: END__: void CollectionDB::initialize() - Took 0.027s
amarok:    [CollectionDB] INotify not available, using QTimer!
amarok: END__: CollectionDB::CollectionDB() - Took 0.079s
amarok: BEGIN: void CollectionDB::checkDatabase()
amarok:    [CollectionDB] MYSQL QUERY FAILED: table 'amarok.podcastchannels' does not exist
amarok: FAILED QUERY: SELECT COUNT( url ) FROM podcastchannels LIMIT 1 OFFSET 0;
amarok:    [CollectionDB] MYSQL QUERY FAILED: table 'amarok.podcastepisodes' does not exist
amarok: FAILED QUERY: SELECT COUNT( url ) FROM podcastepisodes LIMIT 1 OFFSET 0;
amarok:    [CollectionDB] MYSQL QUERY FAILED: table 'amarok.admin' does not exist
amarok: FAILED QUERY: SELECT value FROM admin WHERE noption = 'Database Stats Version';
amarok:    [CollectionDB] Beginning database update
amarok:    [CollectionDB] MYSQL QUERY FAILED: table 'amarok.admin' does not exist
amarok: FAILED QUERY: SELECT value FROM admin WHERE noption = 'Database Stats Version';
amarok:    [CollectionDB] Different database stats version detected! Stats table will be updated or rebuilt.
amarok:    [CollectionDB] MYSQL QUERY FAILED: table 'amarok.admin' does not exist
amarok: FAILED QUERY: SELECT value FROM admin WHERE noption = 'Database Stats Version';
amarok:    [CollectionDB] [ERROR!] Database statistics version too new for this version of Amarok. Quitting...


The last line shows it again: The version isn't actually too high, but there was an SQL error, which is apparently treated the same way.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]