mroonga / mroonga

A MySQL pluggable storage engine based on Groonga
http://mroonga.org/
GNU Lesser General Public License v2.1
182 stars 37 forks source link

Version 5.10 Uninstallable on Ubuntu 15.10 #87

Closed zachleigh closed 8 years ago

zachleigh commented 8 years ago

After upgrading from 5.9 to 5.10, Mroonga stopped working. I purged it and tried reinstalling. This failed.

$ sudo apt-get install -y -V mysql-server-mroonga
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
   groonga-normalizer-mysql (1.1.0-2~wily1)
   libgroonga0 (5.1.0-2~wily1)
   mysql-server-5.6-mroonga (5.10-2~wily1)
The following NEW packages will be installed:
   groonga-normalizer-mysql (1.1.0-2~wily1)
   libgroonga0 (5.1.0-2~wily1)
   mysql-server-5.6-mroonga (5.10-2~wily1)
   mysql-server-mroonga (5.10-2~wily1)
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 39.8 kB/1,426 kB of archives.
After this operation, 6,006 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/groonga/ppa/ubuntu/ wily/main groonga-normalizer-mysql amd64 1.1.0-2~wily1 [39.8 kB]
Fetched 39.8 kB in 1s (34.6 kB/s)                   
Selecting previously unselected package libgroonga0:amd64.
(Reading database ... 327913 files and directories currently installed.)
Preparing to unpack .../libgroonga0_5.1.0-2~wily1_amd64.deb ...
Unpacking libgroonga0:amd64 (5.1.0-2~wily1) ...
Selecting previously unselected package groonga-normalizer-mysql.
Preparing to unpack .../groonga-normalizer-mysql_1.1.0-2~wily1_amd64.deb ...
Unpacking groonga-normalizer-mysql (1.1.0-2~wily1) ...
Selecting previously unselected package mysql-server-5.6-mroonga.
Preparing to unpack .../mysql-server-5.6-mroonga_5.10-2~wily1_amd64.deb ...
Unpacking mysql-server-5.6-mroonga (5.10-2~wily1) ...
Selecting previously unselected package mysql-server-mroonga.
Preparing to unpack .../mysql-server-mroonga_5.10-2~wily1_amd64.deb ...
Unpacking mysql-server-mroonga (5.10-2~wily1) ...
Setting up libgroonga0:amd64 (5.1.0-2~wily1) ...
Setting up groonga-normalizer-mysql (1.1.0-2~wily1) ...
Setting up mysql-server-5.6-mroonga (5.10-2~wily1) ...
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/local/usr.sbin.mysqld at line 4: Could not open 'abstractions/mysql-server-mroonga'
ERROR 1126 (HY000) at line 3: Can't open shared library '/usr/lib/mysql/plugin/ha_mroonga.so' (errno: 2 /usr/lib/mysql/plugin/ha_mroonga.so: undefined symbol: grn_obj_reindex)
Setting up mysql-server-mroonga (5.10-2~wily1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
kou commented 8 years ago

Could you try to restart your MySQL?

kou commented 8 years ago

FYI: MySQL doesnt reloadlibgroonga.soeven ifha_mroonga.sois reloaded. It means that your MySQL still use oldlibgroonga.sothat doesn't havegrn_obj_reindex()that is included in the newlibgroonga.so. If you restart your MySQL, your MySQL will use the newlibgroonga.sothat hasgrn_obj_reindex()`.

mroonga.deb should do it automatically.

zachleigh commented 8 years ago

Purged everything Mroonga, restarted Mysql, and installed Mroonga again. Works fine now.
Thanks kou!

kou commented 8 years ago

Thanks for confirming it. I created a new issue #88. I close this issue.