# Has anyone how to fix the error: Failed to clear FilesystemTagAwareAdapter?

**URL:** <https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747>\
**Category:** Mautic 4 Install/Upgrade Support\
**Created:** [July 13, 2022, 5:56am UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747 "2022-07-13T05:56:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregy1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gregy1/32/2029_2.png) [@gregy1](https://forum.mautic.org/u/gregy1)\
**Post date:** [July 13, 2022, 5:56am UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747/1 "2022-07-13T05:56:17Z")

</div>

**Your software**  
_My PHP version is_ : 7.4  
_My MariaDB version is_: 10.2  
_My Mautic version is_ : 4.4.0

_These errors are showing in the Mautic log_ :  
mautic.EMERGENCY: Failed to clear Mautic cache. {“adapter”:“FilesystemTagAwareAdapter”} {“hostname”:“[555677.cloudwaysapps.com](http://555677.cloudwaysapps.com)”,“pid”:30636}  
mautic.NOTICE: Exception: Failed to clear FilesystemTagAwareAdapter (uncaught exception) at /home/555677.cloudwaysapps.com/hjgfecmjsc/public\_html/app/bundles/CacheBundle/EventListener/CacheClearSubscriber.php line 46 while running console command `cache:clear` {“hostname”:“[555677.cloudwaysapps.com](http://555677.cloudwaysapps.com)”,“pid”:30636}  
mautic.WARNING: Command `cache:clear` exited with status code 1 {“hostname”:“[555677.cloudwaysapps.com](http://555677.cloudwaysapps.com)”,“pid”:30636}

**Your problem**  
_My problem is_ :  
When I try to clear the cache via command line I end up with the above errors in the log.

_Steps I have tried to fix the problem_ : I just run the command

> php bin/console cache:clear

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [December 15, 2022, 5:30pm UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747/2 "2022-12-15T17:30:55Z")

</div>

Hello @gregy1,

Do you have finds any fix for your issue?

Pierre

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [December 16, 2022, 12:46pm UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747/3 "2022-12-16T12:46:23Z")

</div>

Clear the cache without the cache:clear command:

```auto
rm -rf var/cache/dev/* var/cache/prod/*

```

---

<div class="post-metadata">

**Author:** ![thangsanps](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/thangsanps/32/667_2.png) [@thangsanps](https://forum.mautic.org/u/thangsanps)\
**Post date:** [April 1, 2023, 3:30am UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747/4 "2023-04-01T03:30:49Z")

</div>

Has anyone been able to fix this? I have updated the new source but still got

---

<div class="post-metadata">

**Author:** ![pierre\_a](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pierre_a/32/7031_2.png) [@pierre\_a](https://forum.mautic.org/u/pierre_a)\
**Post date:** [April 11, 2023, 5:09pm UTC](https://forum.mautic.org/t/has-anyone-how-to-fix-the-error-failed-to-clear-filesystemtagawareadapter/24747/5 "2023-04-11T17:09:39Z")

</div>

Hello @thangsanps,

The solution is:

> [@mzagmajster](#):
>
> Clear the cache without the cache:clear command:
> 
> ```auto
> rm -rf var/cache/dev/* var/cache/prod/*
> 
> ```

Pierre
