Your software
My Mautic version is: 5.2.1
My PHP version is: not sure
My Database type and version is: Mysql 8.0
Your problem
My problem is: I am running Mautic in docker for a while now, send already a couple of mails out via this. When my web container was recreated it did not recognize the installation.
On my web container the config/local.php file is present and still filled with data from the installation.
The DB is stilled filled
However I am constantly redirect to the /installer page.
Steps I have tried to fix the problem:
add the MAUTIC_INSTALLED variable to the docker file but this does not fix the issue
I have the same issue, I didn’t find your post until I posted mine a few minutes ago. Same problem it always reinstalls the database over the top of the existing db schema.
Wow I am seeing so many people struggling with the installation of Mautic 5, I am guessing alot of it is due to composer, however it can also be installed without composer. My understanding is it is prefered to use composer as it will help in the future.
Anyway we provide both very cheap Mautic hosting as well as a wealth of plugins and great tutorials at Mailertizer. To get a full proof on installing Mautic 5 with composer check this one out here.
I have no problem at getting platforms hosted, I have several open source PHP platforms installed in my cluster. In fact I don’t have a problem with anything around Mautic in kubernetes except it reinstallaing over the database.
Nobody seem to be able to explain this in any way, I have been walking through the code to reach the point where I can pinpoint the decision point. I have not enough time to find it yet but i will.
Is there a document anywhere that describes the logic for the reinstall decision ? Please just give some breadcrumbs - all I am asking for is a pointer in the right direction.
I’m coming at this slightly differently - an upgrade from Mautic 4 as opposed to a fresh install, but I suspect what I was seeing is the same problem as this one!
The logic to determine whether Mautic is already installed checks for two things, configured database driver and site URL.
The database driver is highly likely to be configured - the default local.php file generated at startup contains a hardcoded string 'db_driver' => 'pdo_mysql',
The site URL was my problem. To take care of this, I added a new environment variable:
MAUTIC_CONFIG_PARAMETERS={“site_url”: “https://mautic.example.com”}
I have tried a variety of configurations but remain stuck with the installer, I have deployed multi instance pods with 3 replicas being deployed in parrallel and each one of them will not recognize and wants to run the installer at each startup.
did the installer issue resolve when your domain was set ?
I looked at the DigitalOcean installation process but I am currently using the default image from the dockerhub that should have these settings correct, I have shelled into it and it looks correct, its referenced as follows:
I have used v4 and v5 in this deployment and see the same behavior, always reverting to the installer from a start even though the database exists and is populated and accessible.
in the fragment above the replica set to 3 means 3 pods fire up at startup, each one of them wants to run the installer. I have a shared config directory but apparently not getting the proper file shared.
The database connection is identical across all 3 pods, they should all connect and identify the database.
I would prefer to run it in my own cluster but I will just move on to hubspot or something else hosted if I can’t resolve this.