'Foreign Model' index name issue when installing inside a QNAP docker container using a MariaDB

Hi,
I am using version 5.1.0.1-ce installing inside a docker container using a QNAP NAS.
I have a MariaDB installed from the QNAP NAS that I can connect to with PassBolt. During the final setup of PassBolt I get an error.

error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1280 Incorrect index name ‘foreign_model’ in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Database/Statement/Statement.php on line 159

It originally had an error with the ‘foreign_id’ but this forum was helpful enough to allow me to fix that error in the database. Is this the same type of error? Would someone help me please or point me to the Statement.php file so I can look at it myself.

Thanks.
wbeard52

From the healthcheck

 ____                  __          ____  
/ __ \____  _____ ____/ /_  ____  / / /_ 

/ // / __ `/ / / __ / __ / / _/
/ / // ( |
) /
/ / /
/ / / /
/
/ _
,
/
//./_//__/

Open source password manager for teams

Healthcheck shell
If you want to have more information about the different checks, please take a look at the documentation: https://www.passbolt.com/docs/admin/server-maintenance/passbolt-api-status/............................................................2025-05-19 05:22:57 error: [Cake\Database\Exception\DatabaseException] SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘passbolt.metadata_private_keys’ doesn’t exist in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Database/Schema/Collection.php on line 158
Caused by: [PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘passbolt.metadata_private_keys’ doesn’t exist in /usr/share/php/passbolt/vendor/cakephp/cakephp/src/Database/Statement/Statement.php on line 159

Passbolt | Error