Overview

I attempted to install the Mroonga search module introduced in the following article on AWS Lightsail.

https://nakamura196.hatenablog.com/entry/2022/03/07/083004

As a result, the installation did not succeed, but I am documenting it here for future reference.

Setting Up Omeka S

I set up Omeka S as described in the following article.

Installing Mroonga

I performed the installation following the instructions on the following page.

https://mroonga.org/docs/install/debian.html

sudo apt update
sudo apt install -y -V apt-transport-https
sudo apt install -y -V wget
wget https://packages.groonga.org/debian/groonga-apt-source-latest-bullseye.deb
sudo apt install -y -V ./groonga-apt-source-latest-bullseye.deb
sudo apt update
sudo apt install -y -V mariadb-server-10.5-mroonga

After executing the above, enter mysql (mariadb).

mysql -uroot -p

The password can be checked with the following command.

cat /home/bitnami/bitnami_application_password

Then, execute the following to enable Mroonga.

MariaDB [(none)]> INSTALL PLUGIN Mroonga SONAME 'ha_mroonga.so';
SHOW VARIABLES LIKE 'mroonga_version';

The following will be displayed.

Installing the Omeka S Module

Extract the module as follows.

cd /home/bitnami/htdocs/omeka-s/modules
wget https://github.com/fukuchi/Omeka-S-module-mroongasearch/archive/refs/tags/v0.9.0.zip
unzip v0.9.0.zip
mv Omeka-S-module-mroonga-search-0.9.0 MroongaSearch

After that, when I attempted to install it from the admin screen, the following error occurred and the installation did not succeed.

Error
Call to a member function getLocalColumns() on null

Details:

Error: Call to a member function getLocalColumns() on null in /opt/bitnami/apache/htdocs/omeka-s/modules/MroongaSearch/Module.php:108
Stack trace:
#0 /opt/bitnami/apache/htdocs/omeka-s/modules/MroongaSearch/Module.php(57): MroongaSearch\Module->getForeignKeyName()
#1 /opt/bitnami/apache/htdocs/omeka-s/application/src/Module/Manager.php(240): MroongaSearch\Module->install()
#2 /opt/bitnami/apache/htdocs/omeka-s/application/src/Controller/Admin/ModuleController.php(117): Omeka\Module\Manager->install()
#3 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Omeka\Controller\Admin\ModuleController->installAction()
#4 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#5 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#6 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil()
#7 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(139): Laminas\Mvc\Controller\AbstractController->dispatch()
#8 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(321): Laminas\Mvc\DispatchListener->onDispatch()
#9 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()
#10 /opt/bitnami/apache/htdocs/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil()
#11 /opt/bitnami/apache/htdocs/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#12 {main}

Summary

I will continue to investigate the cause of the above error.