# Error upgrading from 2.16.3 to 3.0.1 on self-hosted CentOS 7

**URL:** <https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [August 30, 2020, 7:03pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874 "2020-08-30T19:03:46Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [August 30, 2020, 7:03pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/1 "2020-08-30T19:03:46Z")

</div>

**Your software**  
_My PHP version is_ : 7.3.21  
_My MariaDB version is_: 10.3.24

**Updating/Installing Errors**  
_I am_ Updating  
_Upgrading/installing via_ (delete as applicable) : Web / Command Line : BOTH methods tried. It stops at the same spot.

_These errors are showing in the installer_ :

# _These errors are showing in the Mautic log_ : ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/30148d0bf5f060bfb5d5d837a6eeac83c9e0001a.png) The error on the CLI is exactly the same one, listed below:

Thank you, continuing…  
===== STARTING MAUTIC 3 UPGRADE AT 2020-08-30 18:25:36… =====  
Installed Mautic version: 2.16.3  
PHP version: 7.3.21  
OS: Linux  
Upgrade type: CLI

Doing pre-upgrade checks…  
Finished pre-upgrade checks.  
Starting upgrade…  
Backing up your database…  
Database backup successfully written to your Mautic root folder.  
Getting the amount of available Mautic 2 database migrations… This might take a while!  
No available database migrations found. On to the next step…  
Downloading Mautic 3…  
Extracting the update package…  
Extracting done!  
Preparing for phase 2 of the upgrade…  
IMPORTANT: NOT DONE YET! Due to the large amount of changes in Composer dependencies, we now need to restart the script to continue. We’ve saved your state, so we’ll continue where we left off.  
PLEASE RUN php upgrade\_v3.php AGAIN TO START PHASE 2 OF THE UPGRADE!  
bash-4.2$ php upgrade\_v3.php  
Welcome to Phase 2 of the Mautic 3 upgrade! We’ll continue where we left off.  
Moving Mautic 2 files into mautic-2-backup and moving the Mautic 3 files in place, this might take a while… DO NOT ABORT THE SCRIPT!!!  
Done!

Updating your config/local.php with new settings that were changed/introduced in Mautic 3…  
Done! Your config file has been updated.  
Getting the amount of available Mautic 3 database migrations… This might take a while!  
ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations.  
ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations… For more details about this message, see [http://mau.tc/m3-upgrade-error#err\_mautic\_3\_migrations\_identification\_failed](http://mau.tc/m3-upgrade-error#err_mautic_3_migrations_identification_failed)

==============================

_These errors are showing in the upgrade\_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path)_ :

# This ONLY reflects the UI because I restored the database and all the files and tried again, but the errors were the same.

===== STARTING MAUTIC 3 UPGRADE AT 2020-08-30 18:44:53… =====  
Installed Mautic version: 2.16.3  
PHP version: 7.3.21  
OS: Linux  
Upgrade type: UI

[2020-08-30 18:44:54] Running pre-upgrade checks…  
[2020-08-30 18:45:04] All pre-upgrade checks passed successfully.  
[2020-08-30 18:45:21] Starting the upgrade…  
[2020-08-30 18:45:22] Running database backup…  
[2020-08-30 18:45:29] Successfully backed up database.  
[2020-08-30 18:45:29] Getting the amount of available Mautic 2 database migrations…  
[2020-08-30 18:45:30] No available database migrations found. On to the next step…  
[2020-08-30 18:45:31] Downloading Mautic 3 upgrade package…  
[2020-08-30 18:45:34] Successfully downloaded Mautic 3 upgrade package.  
[2020-08-30 18:45:34] Extracting Mautic 3 files…  
[2020-08-30 18:45:40] Mautic 3 files extracted successfully.  
[2020-08-30 18:45:40] Moving Mautic 2 files to mautic-2-backup-files folder, then moving Mautic 3 files from mautic-3-temp-files to the root folder…  
[2020-08-30 18:45:40] Successfully moved Mautic 3 files into place!  
[2020-08-30 18:45:41] Updating config/local.php with new configuration parameters…  
[2020-08-30 18:45:41] Successfully updated config/local.php.  
[2020-08-30 18:45:41] Getting the amount of available Mautic 3 database migrations… This might take a while!  
[2020-08-30 18:45:42] ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations. Please try again by refreshing this page.  
[2020-08-30 18:46:07] ===== STARTING MAUTIC 3 UPGRADE AT 2020-08-30 18:46:07… =====  
PHP version: 7.3.21  
OS: Linux  
Upgrade type: UI

[2020-08-30 18:46:08] Getting the amount of available Mautic 3 database migrations… This might take a while!  
[2020-08-30 18:46:14] ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations. Please try again by refreshing this page.  
[2020-08-30 18:46:22] ===== STARTING MAUTIC 3 UPGRADE AT 2020-08-30 18:46:22… =====  
PHP version: 7.3.21  
OS: Linux  
Upgrade type: UI

[2020-08-30 18:46:22] Getting the amount of available Mautic 3 database migrations… This might take a while!  
[2020-08-30 18:46:22] ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations. Please try again by refreshing this page.  
[2020-08-30 18:50:12] ===== STARTING MAUTIC 3 UPGRADE AT 2020-08-30 18:50:12… =====  
PHP version: 7.3.21  
OS: Linux  
Upgrade type: UI

[2020-08-30 18:50:13] Getting the amount of available Mautic 3 database migrations… This might take a while!  
[2020-08-30 18:50:13] ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations. Please try again by refreshing this page.  
[2020-08-30 18:51:15] Getting the amount of available Mautic 3 database migrations… This might take a while!  
[2020-08-30 18:51:15] ERR\_MAUTIC\_3\_MIGRATIONS\_IDENTIFICATION\_FAILED: We couldn’t reliably detect the amount of available database migrations. Please try again by refreshing this page.

**Your problem**

# _My problem is I cannot upgrade_

_Steps I have tried to fix the problem_ :  
I don’t know what to do after this error. I’ve restored the database and am back at square 1 = 2.16.3

# Thanks in advance for any help!

Hermann Bock

---

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [August 31, 2020, 5:20am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/2 "2020-08-31T05:20:58Z")

</div>

What is the output of:

`php app/console doctrine:migration:status`

?

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [August 31, 2020, 6:03am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/4 "2020-08-31T06:03:39Z")

</div>

Hi,

Actually, since I am half way in v3, had to use  
php bin/console doctrine:migration:status

This is the result

 ![grafik](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/08735be240784438ed98f7f7cba3663d7c245b96.png)

Just crossed some emails and passwords.

Thanks in advance for talking a look at it.

---

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [August 31, 2020, 7:55am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/5 "2020-08-31T07:55:20Z")

</div>

Hummm… this doesn’t look good

If you try a  
`php bin/console doctrine:migrations:migrate`

Any luck ?

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [August 31, 2020, 8:33am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/6 "2020-08-31T08:33:13Z")

</div>

If I do, I get EXACTLY the same error above.

---

<div class="post-metadata">

**Author:** ![modifiedcontent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/modifiedcontent/32/511_2.png) [@modifiedcontent](https://forum.mautic.org/u/modifiedcontent)\
**Post date:** [August 31, 2020, 8:43am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/7 "2020-08-31T08:43:22Z")

</div>

**[reposted this from the other thread where you had posted. I see my suggestions had already been addressed in this thread…]**

For updates I still kinda rely [on this advice](https://mauteam.org/mautic/mautic-admins/mautic-update-how-to-dont-click-that-button).

That page includes 3 commands that [Yosu Cadilla](https://mauteam.org/author/yosu-is-admin/) recommends to run before upgrade attempts:

php app/console doctrine:migration:migrate  
php app/console doctrine:schema:update --force  
php app/console cache:clear

Your error has to do with migrations, so have you tried the first? Or probably just do all three.

Also make sure you are using the right update package.

Also, what database type/version are you on?

I had just upgraded from MySQL 5.7.30 to MariaDB 10.3.24 before my upgrade. I think Mautic 3 had some special db requirements.

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [August 31, 2020, 9:14am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/8 "2020-08-31T09:14:03Z")

</div>

I definitely have to restore the database backup and the files from 2.16.3 and start from scratch.

To answer your question, I did upgrade to MariaDB 10.3.24 before upgrading.

Crazy stuff… good thing is, this is not a production server, that one is still on 2.16.2 🙂

---

<div class="post-metadata">

**Author:** ![maumatic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/maumatic/32/3284_2.png) [@maumatic](https://forum.mautic.org/u/maumatic)\
**Post date:** [August 31, 2020, 11:03am UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/9 "2020-08-31T11:03:52Z")

</div>

Good that you’re not on your prod server and have a backup.

Let us know how it goes 🙂

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [November 8, 2020, 12:47pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/10 "2020-11-08T12:47:13Z")

</div>

Finally had the time to try again… made SURE all files have the right permissions and ended up with EXACTLY the same error.

Trying to finally figure out how to update this server somehow… slowly it’s about time to upgrade…

Are there somewhere instructions to upgrade from 2.6.13 to 3.0.2 or higher directly? My upgrade\_v3.php seems to only update directly to 3.0.1. Maybe that could offer hope.

In the meantime, back to 2.16.3 again.

---

<div class="post-metadata">

**Author:** ![codes9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/codes9/32/682_2.png) [@codes9](https://forum.mautic.org/u/codes9)\
**Post date:** [November 9, 2020, 4:49pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/11 "2020-11-09T16:49:16Z")

</div>

Here are the steps I found on the forum:

> **[Upgrade steps](https://docs.mautic.org/en/mautic-3-upgrade/upgrade-steps?_ga=2.223404062.486871931.1595849546-1786381583.1595528670)**
>
> If you want to know more about all the upgrade steps of the Mautic 3 upgrade process, this is the place to be.The upgrade process consists of multiple steps to make it as robust as possible. If the process fails at a certain step, you can find all...

> [@Upgrade v2.16.0 to v3.0.2](https://forum.mautic.org/t/upgrade-v2-16-0-to-v3-0-2/15404/2):
>
> You must update first to 2.16.3 - there is no other upgrade path. See the pre-flight check: Do you at least have Mautic 2.16.3 installed? So you will need to do 2.16.0 -\> 2.16.3 and then you can upgrade to 3.x. Of course, ensuring that you have a backup that is tested, and ideally at the command line.

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [November 9, 2020, 8:15pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/12 "2020-11-09T20:15:57Z")

</div>

Finally and HAPPILY I’m on 3.1.2.

What was the problem you might wonder?

NEVER use an % in your password…

Check the RED image above and notice the FIRST and LAST words:

> **“The parameter “CcVO5” blablablabla must be defined”**

Well, “CcVO5” was the part of the PASSWORD AFTER the % sign.

How did I fix it? Went on local.php and changed the % to a 1 and then it just went through like a hot knife through butter. 😉

Happy camper now!

---

<div class="post-metadata">

**Author:** ![mhzarei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mhzarei/32/6158_2.png) [@mhzarei](https://forum.mautic.org/u/mhzarei)\
**Post date:** [November 6, 2021, 2:47pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/13 "2021-11-06T14:47:47Z")

</div>

You can put your password in quotation marks (") and it use all character as a string.

---

<div class="post-metadata">

**Author:** ![mrbock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mrbock/32/5849_2.png) [@mrbock](https://forum.mautic.org/u/mrbock)\
**Post date:** [November 7, 2021, 2:20pm UTC](https://forum.mautic.org/t/error-upgrading-from-2-16-3-to-3-0-1-on-self-hosted-centos-7/15874/14 "2021-11-07T14:20:32Z")

</div>

Thanks for the tip. At the time I just decided to change the password and make sure that no % was included, which has been working ever since.

It’s good to know that the option exists though.

Thanks!
