# Upgrade error with more than 10000 contacts using cli command line

**URL:** <https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [July 23, 2020, 1:01am UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339 "2020-07-23T01:01:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yourrfriend](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yourrfriend/32/870_2.png) [@yourrfriend](https://forum.mautic.org/u/yourrfriend)\
**Post date:** [July 23, 2020, 1:01am UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/1 "2020-07-23T01:01:27Z")

</div>

**Your software**  
My Mautic version is: 2.16.3  
My PHP version is:7.3

**Your problem**  
My problem is: I want to upgrade mautic 2.16.3 to mautic 3 via console cli.

I have more than 10K contacts and getting the error message of  
"===== STARTING MAUTIC 3 UPGRADE AT 2020-07-23 00:48:24… =====  
Installed Mautic version: 2.16.3  
PHP version: 7.3.14-1~deb10u1  
OS: Linux  
Upgrade type: CLI

Doing pre-upgrade checks…  
One or more warnings occurred during pre-upgrade checks, please run this script with the --ignore-warnings flag to continue:

- You have 10000 or more contacts in your system. We recommend upgrading by using the CLI (command line) for the best performance and stability.

Steps I have tried to fix the problem: I couldnt resolve the problem with the commands:  
php --ignore-warnings upgrade\_v3.php  
php upgrade\_v3.php

Appreciate your help.  
Baris Kiremitci

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 24, 2020, 1:32pm UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/2 "2020-07-24T13:32:24Z")

</div>

try writing this:  
sudo php upgrade\_v3.php --ignore-warnings

---

<div class="post-metadata">

**Author:** ![yourrfriend](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yourrfriend/32/870_2.png) [@yourrfriend](https://forum.mautic.org/u/yourrfriend)\
**Post date:** [July 26, 2020, 12:36am UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/3 "2020-07-26T00:36:25Z")

</div>

Dear mikew,  
Thank you for your answer.  
Not it is working.  
Best

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 27, 2020, 8:20am UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/4 "2020-07-27T08:20:37Z")

</div>

@yourrfriend thanks for posting here. What @mikew mentioned should indeed work (`sudo` shouldn’t even be necessary in most cases). You could also try `php upgrade_v3.php -i`, which does the same as `--ignore-warnings` but might work for you.

If you are really stuck, you could open `upgrade_v3.php` in your file editor and remove line 750 (marked below). This will prevent the script from stopping regardless of whether you are running it with or without the `--ignore-warnings` flag. The script will remove itself after the upgrade anyway, so you can safely edit it without introducing security risks.

> <https://github.com/mautic/mautic/blob/c3c42e03e0d8b4cfde99928ea0793ca32648dbfe/upgrade_v3.php#L750>

---

<div class="post-metadata">

**Author:** ![yourrfriend](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yourrfriend/32/870_2.png) [@yourrfriend](https://forum.mautic.org/u/yourrfriend)\
**Post date:** [July 29, 2020, 4:48pm UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/5 "2020-07-29T16:48:47Z")

</div>

@dennisameling thank you for your answer. i did with the `--ignore-warnings`. Upgrade process went smoothly without any error and it took very short time with more than 2M contacts and lots of custom fields.  
Appreciate your help.

---

<div class="post-metadata">

**Author:** ![dennisameling](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dennisameling/32/958_2.png) [@dennisameling](https://forum.mautic.org/u/dennisameling)\
**Post date:** [July 30, 2020, 10:26am UTC](https://forum.mautic.org/t/upgrade-error-with-more-than-10000-contacts-using-cli-command-line/15339/6 "2020-07-30T10:26:17Z")

</div>

That’s great to hear! Thanks for reporting back! 🚀
