urbantrout / craftcms

Craft CMS Docker Image
MIT License
76 stars 32 forks source link

Error when on " Activating Plugins." step when used custom "DB_TABLE_PREFIX" #10

Closed ipetrov87 closed 5 years ago

ipetrov87 commented 5 years ago

I am using a custom DB_TABLE_PREFIX in my docker-compose.yml file. Currently all the plugins are installed via mounted composer.json. All was great since we find out that some of the plugins are not installed when we move to production. It is strange because most of the times we need to redeploy the page several times to get all plugins installed. This is the reason to try using the DEPENDENCIES variable in docker-compose.yml file, move all the plugins there and do not mount composer.json. Not when I run docker-compose up all it looks ok until the step Activating Plugins. where I get this error

craft_1    | *** failed to install imager: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'craft.metac_plugins' doesn't exist
craft_1    | The SQL being executed was: SELECT `id`, `handle`, `version`, `schemaVersion`, `licenseKeyStatus`, `installDate`, `licensedEdition`
craft_1    | FROM `metac_plugins`
craft_1    | WHERE `handle`='imager'
craft_1    | LIMIT 1

Yes I do not have a table craft.metac_plugins because I use a custom DB_TABLE_PREFIX and my prefix should not be craft

ipetrov87 commented 5 years ago

I fix it. The issue was that I forget to delete .ignore file and the database was not imported.