Mautic Update - Stuck on Clearing Application Cache

Your software
My PHP version is : 8.0

I am updating using the mautic dashboard. (bell icon)
Previously it was stuck on extracting package which took a week to fix but now its stuck on the next stage.

The problem
The update is stuck on clearing application cache. I waited a long time but it does not progress.

Steps I have tried to fix the problem :
I increased max execution time from 30 to 500.
I increased max input time from 60 to 320.

Try updating vi a cli as its more reliable.

Also before attempting to upgrade:

  • create a backup
  • go to mautic root folder and clear cache with the following command: rm -rf var/cache/dev/* var/cache/prod/*