VitXi Error After Migration

File_put_contents(/usr/share/vitxi/backend/storage/framework/cache/data/dd/a0/dda056387843ff8e0d3420754881b75d3b1428ae): failed to open stream: permission denied

Getting the above error after migrating from a server with 3.2.4-2 to a server with 4.0.3-3 when I try to open VitXi it goes to the Database Setup page and I get that error after entering a database password/username.


vitalpbx check-integrity

You had to install the add-ons and complete the Wizard before restoring the backup.

I must have missed it though I thought I had it setup. How can I fix the error then?

Would removing the add-on and then adding it back fix the issue?

For the record No Issues Found

Hi Sir,

Please try running the following commands (in /usr/share/vitxi/backend/):
rm -rf bootstrap/cache*
rm -rf storage/logs/*
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan cache:clear
composer dump-autoload

1 Like

The error I get now is:

File_put_contents(/usr/share/vitxi/backend/bootstrap/cache/config.php): failed to open stream: permission denied

Thank you for your help!

It would be best to uninstall and delete any remaining data from the Vitxi folder. After that, you can try installing it from scratch.

On the other hand, please check the instructions on how to migrate from V3 to V4.

1 Like

Okay just did a chown www-data.www-data for the cache directory and was able to get it logged in now. Thank you!

1 Like