mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
381 stars 280 forks source link

Table 'messenger_messages' already exists - example/basic #270

Open tenup11 opened 8 months ago

tenup11 commented 8 months ago

After setting up Mautic via Docker based on example/basic I get an error during the installation step via the web UI. Error: An error occurred while attempting to install the data: An exception occurred while executing a query: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'messenger_messages' already exists

This happens on Debian 12 (fresh install) with nginx proxy manager also running via docker.

pedrolucasoliva commented 8 months ago

Same problem here. Docker compose file: version: '3'

x-mautic-volumes: &mautic-volumes

services: mautic_db: image: mysql:8.0 container_name: mautic_db hostname: db.mautic environment:

volumes: mysql-data:

networks: web: driver: bridge mautic: driver: bridge

Captura de tela 2024-03-08 143128

I already tried to recreate database and drop the tables.

codewishofficial commented 8 months ago

Same here. I tried to add a database table prefix and only the 'messenger_messages' is skipping the prefix

image

ghost commented 8 months ago

i got the same error. I was using basic example. I simplify docker-compose and change to Mariadb:latest and its gone.

follow the unique file docker-compose.yml working...

`version: '3.9'

services: mariadb: image: mariadb:latest environment: MYSQL_ROOT_PASSWORD: root_pwd MYSQL_DATABASE: mautic_db MYSQL_USER: mautic_db_user MYSQL_PASSWORD: mautic_db_pwd volumes:

volumes: mariadb-data:

networks: default:`

Basyuk commented 8 months ago

I tried to solve the problem for two days. And I figured out how to bypass it. You need to stop the container with the worker service to solve the problem. This problem occurs because the worker, for some reason, constantly recreates the messenger_messages table.

jackpassgfw commented 8 months ago

Same mistake, not fixed yet

humanbeinc commented 7 months ago

Workaround for newbies:

comment these settings in .mautic_env:

#MAUTIC_MESSENGER_DSN_EMAIL="doctrine://default"
#MAUTIC_MESSENGER_DSN_HIT="doctrine://default"