Description of problem: baloo is not indexing files. Problem is caused by a failure to load the QSQLITE driver. QSQLITE driver is not included in the available drivers (see available drivers a few lines down). Available drivers include QSQLITE3 (notice the 3). $ baloosearch test QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: QMYSQL3 QMYSQL QSQLITE3 $ balooctl restart QSqlDatabase: QSQLITE driver not loaded QSqlDatabase: available drivers: QMYSQL3 QMYSQL QSQLITE3 QSqlQuery::prepare: database not open QSqlQuery::prepare: database not open baloo_file(2541): "Driver not loaded Driver not loaded" baloo_file(2541): Cannot create fileMapping for "/home/artur" ... and many more like the last two for various directories. $ ls -l /usr/lib64/qt5/plugins/sqldrivers/ total 388 -rwxr-xr-x 1 root root 59648 Abr 23 22:37 libqsqlite.so* -rwxr-xr-x 1 root root 76544 Abr 23 22:37 libqsqlmysql.so* -rwxr-xr-x 1 root root 105344 Abr 23 22:37 libqsqlodbc.so* -rwxr-xr-x 1 root root 88976 Abr 23 22:37 libqsqlpsql.so* -rwxr-xr-x 1 root root 59496 Abr 23 22:37 libqsqltds.so* Version-Release number of selected component (if applicable): $ rpm -qa | egrep 'baloo|qtbase5-database' | sort baloo-4.14.3-1.mga5 lib64baloocore4-4.14.3-1.mga5 lib64baloofiles4-4.14.3-1.mga5 lib64baloopim4-4.14.3-1.mga5 lib64balooqueryparser4-4.14.3-1.mga5 lib64baloowidgets4-4.14.3-1.mga5 lib64balooxapian4-4.14.3-1.mga5 qtbase5-database-plugin-mysql-5.4.0-7.mga5 qtbase5-database-plugin-odbc-5.4.0-7.mga5 qtbase5-database-plugin-pgsql-5.4.0-7.mga5 qtbase5-database-plugin-sqlite-5.4.0-7.mga5 qtbase5-database-plugin-tds-5.4.0-7.mga5 How reproducible: Always. Steps to Reproduce: 1. Open terminal. 2. Run command "baloosearch test". 3. Run command "balooctl restart". 4. See error messages. Reproducible: Steps to Reproduce:
After looking at the strace output of "ballosearch test" I noticed that it is using Qt4 (and not Qt5). Listing the installed Qt4 database drivers revealed that only the MySQL driver was installed. $ rpm -qa | grep qt4-database qt4-database-plugin-mysql-4.8.6-9.mga5 I installed the qt4-database-plugin-sqlite package and after that running "baloosearch test" no longer shows any errors. $ rpm -qa | grep qt4-database qt4-database-plugin-sqlite-4.8.6-9.mga5 qt4-database-plugin-mysql-4.8.6-9.mga5 $ ls -la /usr/lib64/qt4/plugins/sqldrivers/ total 132 -rwxr-xr-x 1 root root 54792 Abr 23 22:56 libqsqlite.so* -rwxr-xr-x 1 root root 76024 Abr 23 22:56 libqsqlmysql.so* Running "balooctl restart; balooctl enable" also shows no errors and both "balooctl status" and iotop reveal that the indexing is underway. After a while, both baloosearch and dolphin's search shows the expected results. So, it seems that the problem is caused by a missing Qt4 SQLITE driver and this can probably be fixed by adding a package dependency for qt4-database-plugin-sqlite package in some (maybe baloo?) package.
Thanks for investigating. Assigning to maintainer.
CC: (none) => lmenutAssignee: bugsquad => mageiaSummary: baloo indexing and search not working (showing error QSqlDatabase: QSQLITE driver not loaded) => baloo indexing and search not working (missing dependency)Whiteboard: (none) => MGA5TOO
This problem will cause dolphin unable to seach files. Should it be noted in errata?
CC: (none) => yochenhsieh
Suggested advisory: Updated baloo packages fix a missing dependency Baloo requires the Qt4 QSQLITE driver to work properly, but this dependency was missing in packages. This update add the missing dependency on qt4-database-plugin-sqlite. Reference: https://bugs.mageia.org/show_bug.cgi?id=16083 src.rpm: baloo-4.14.3-1.1.mga5.src.rpm packages i586: baloo-4.14.3-1.1.mga5.i586.rpm libbaloocore4-4.14.3-1.1.mga5.i586.rpm libbaloo-devel-4.14.3-1.1.mga5.i586.rpm libbaloofiles4-4.14.3-1.1.mga5.i586.rpm libbaloopim4-4.14.3-1.1.mga5.i586.rpm libbalooqueryparser4-4.14.3-1.1.mga5.i586.rpm libbalooxapian4-4.14.3-1.1.mga5.i586.rpm packages x86_64: baloo-4.14.3-1.1.mga5.x86_64.rpm lib64baloocore4-4.14.3-1.1.mga5.x86_64.rpm lib64baloo-devel-4.14.3-1.1.mga5.x86_64.rpm lib64baloofiles4-4.14.3-1.1.mga5.x86_64.rpm lib64baloopim4-4.14.3-1.1.mga5.x86_64.rpm lib64balooqueryparser4-4.14.3-1.1.mga5.x86_64.rpm lib64balooxapian4-4.14.3-1.1.mga5.x86_64.rpm
CC: (none) => mageiaHardware: x86_64 => AllAssignee: mageia => qa-bugs
Thanks Luc. I suppose this is fixed in cauldron? Setting version to 5, please adjust to cauldron if not fixed there already.
Version: Cauldron => 5Whiteboard: MGA5TOO => (none)
Not all installs are affected this bug only systems have no digikam installed as it requires qt4-database-plugin-sqlite.
CC: (none) => ozkyster
Advisory committed to svn.
CC: (none) => davidwhodginsWhiteboard: (none) => advisory
Testing completed Mageia 5 i586 for baloo-4.14.3-1.1.mga5.src.rpm: - qt4-database-plugin-sqlite required to be installed when baloo is updated. - baloo indexer running without errors after re-login.
Whiteboard: advisory => advisory MGA5-32-OK
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0064.html
Status: NEW => RESOLVEDResolution: (none) => FIXED