# Restoring Mautic gives error

**URL:** <https://forum.mautic.org/t/restoring-mautic-gives-error/30476>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [January 12, 2024, 4:13pm UTC](https://forum.mautic.org/t/restoring-mautic-gives-error/30476 "2024-01-12T16:13:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev570](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dev570/32/6984_2.png) [@dev570](https://forum.mautic.org/u/dev570)\
**Post date:** [January 12, 2024, 4:13pm UTC](https://forum.mautic.org/t/restoring-mautic-gives-error/30476/1 "2024-01-12T16:13:04Z")

</div>

I tried to update to Mautic 5.0.1 but this gave some issues.  
I restored a full backup including the database, but now I am getting the error 500. If I try to clear the cache with CLI for example I get this error below.

Any ideas?

There is no folder mautic/vendor/autoload.php  
And on github this folder is not there either:

> **[GitHub - mautic/mautic at 4.4](https://github.com/mautic/mautic/tree/4.4)**
>
> 4.4

```auto
mautic@upcloud-server:~/webapps/mautic$ bin/console mautic:cache:clearphp bin/console mautic:segments:update ; php bin/console mautic:campaigns:trigger ; php bin/console mautic:campaigns:update ; php bin/console mautic:emails:send
-bash: bin/console: Permission denied
PHP Warning: require(/home/mautic/webapps/mautic/vendor/autoload.php): failed to open stream: No such file or directory in /home/mautic/webapps/mautic/autoload.php on line 3
PHP Fatal error: require(): Failed opening required '/home/mautic/webapps/mautic/vendor/autoload.php' (include_path='.:') in /home/mautic/webapps/mautic/autoload.php on line 3
PHP Warning: require(/home/mautic/webapps/mautic/vendor/autoload.php): failed to open stream: No such file or directory in /home/mautic/webapps/mautic/autoload.php on line 3
PHP Fatal error: require(): Failed opening required '/home/mautic/webapps/mautic/vendor/autoload.php' (include_path='.:') in /home/mautic/webapps/mautic/autoload.php on line 3
PHP Warning: require(/home/mautic/webapps/mautic/vendor/autoload.php): failed to open stream: No such file or directory in /home/mautic/webapps/mautic/autoload.php on line 3
PHP Fatal error: require(): Failed opening required '/home/mautic/webapps/mautic/vendor/autoload.php' (include_path='.:') in /home/mautic/webapps/mautic/autoload.php on line 3

```

---

<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:** [January 14, 2024, 1:36pm UTC](https://forum.mautic.org/t/restoring-mautic-gives-error/30476/2 "2024-01-14T13:36:05Z")

</div>

PHP dependencies are not install.

In addition check that your files are owned by the right OS user, before attempt to clear the cache again.
