# Mautic Update 3.0.2 to 3.1.0 dependency problem

**URL:** <https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [September 30, 2020, 9:04am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351 "2020-09-30T09:04:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfakhour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nfakhour/32/3299_2.png) [@nfakhour](https://forum.mautic.org/u/nfakhour)\
**Post date:** [September 30, 2020, 9:04am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/1 "2020-09-30T09:04:20Z")

</div>

Hi everyone,  
**Your software**  
_My PHP version is_ : 7.2.33  
_My MySQL version is_ (delete as applicable): MySQL version 5.7.12

**Updating/Installing Errors**  
_I am_ (delete as applicable): Updating  
_Upgrading via_ (delete as applicable) : Command Line

_These errors are showing in the installer_ :  
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:  
The service “mautic.campaign.subscriber” has a dependency on a non-existent  
service “mautic.core.service.flashbag”.

_These errors are showing in the Mautic log_ :  
mautic.WARNING: Command `mautic:update:apply` exited with status code 1

**Your problem**  
_My problem is_ :  
I just tried to update Mautic 3.0.2 to 3.1.0  
i executed php bin/console mautic:update:apply , it arrived to step 5 and asked me to execute php bin/console mautic:update:apply --finish

but it fails plus i can’t use any console command

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [September 30, 2020, 9:24am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/2 "2020-09-30T09:24:21Z")

</div>

Try clearing the cache yourself, and give it a try again.

---

<div class="post-metadata">

**Author:** ![nfakhour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nfakhour/32/3299_2.png) [@nfakhour](https://forum.mautic.org/u/nfakhour)\
**Post date:** [September 30, 2020, 9:38am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/3 "2020-09-30T09:38:18Z")

</div>

i still have the same error :  
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:  
The service “mautic.campaign.subscriber” has a dependency on a non-existent  
service “mautic.core.service.flashbag”.  
😕

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [September 30, 2020, 9:40am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/4 "2020-09-30T09:40:12Z")

</div>

How are you clearing the cache?

---

<div class="post-metadata">

**Author:** ![nfakhour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nfakhour/32/3299_2.png) [@nfakhour](https://forum.mautic.org/u/nfakhour)\
**Post date:** [September 30, 2020, 9:42am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/5 "2020-09-30T09:42:52Z")

</div>

i went to cache directory and did rm \* since i can’t use php bin/console c:c

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [September 30, 2020, 10:49am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/6 "2020-09-30T10:49:05Z")

</div>

Hmm! Do this instead:

> sudo -u **username** php /path/to/mautic/bin/console cache:clear

Change the username to the mautic directory user, and the /path/to/mautic to your mautic directory.

---

<div class="post-metadata">

**Author:** ![nfakhour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nfakhour/32/3299_2.png) [@nfakhour](https://forum.mautic.org/u/nfakhour)\
**Post date:** [September 30, 2020, 10:57am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/7 "2020-09-30T10:57:58Z")

</div>

I still have the same error, i think the console is broken,  
if i just do php bin/console, i get the same error…  
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 31:  
The service “mautic.campaign.subscriber” has a dependency on a non-existent  
service “mautic.core.service.flashbag”.

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [September 30, 2020, 11:06am UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/8 "2020-09-30T11:06:28Z")

</div>

If that is so, then you might want to update it manually. Steps are here [https://docs.mautic.org/en/troubleshooting/update-failed](https://docs.mautic.org/en/troubleshooting/update-failed)

---

<div class="post-metadata">

**Author:** ![nfakhour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nfakhour/32/3299_2.png) [@nfakhour](https://forum.mautic.org/u/nfakhour)\
**Post date:** [September 30, 2020, 1:08pm UTC](https://forum.mautic.org/t/mautic-update-3-0-2-to-3-1-0-dependency-problem/16351/9 "2020-09-30T13:08:08Z")

</div>

Okay thank you, i will try to update it manually
