Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Php issue on backup restore

Started by Logan 5 years ago · 0 replies · 856 views
5 years ago

Hello,

I have made several backups of a simple personal website I made a couple years ago now. I am attempting to migrate it to the official docker-grav container from a VPS using the backup feature in the admin panel or git.

But it's not working, I get the following error no matter which backup I use: Old from when I first made the site, new and fully updated, or if I use git.

This is the error message:

PHP
Fatal error: Uncaught RuntimeException: 
Creating directory failed for /var/www/html/cache/compiled/files/b296ac48b18c22fb9ad19958ded5d09f.yaml.php in /var/www/html/vendor/rockettheme/toolbox/File/src/AbstractFile.php:343 
Stack trace: 
#0 /var/www/html/vendor/rockettheme/toolbox/File/src/PhpFile.php(41): RocketTheme\Toolbox\File\AbstractFile->save(Array) 
#1 /var/www/html/system/src/Grav/Common/File/CompiledFile.php(76): RocketTheme\Toolbox\File\PhpFile->save(Array) 
#2 /var/www/html/system/src/Grav/Common/Config/Setup.php(278): Grav\Common\File\CompiledYamlFile->content() 
#3 /var/www/html/system/src/Grav/Common/Service/ConfigServiceProvider.php(39): Grav\Common\Config\Setup->init() 
#4 /var/www/html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service\{closure}(Object(Grav\Common\Grav)) 
#5 /var/www/html/system/src/Grav/Common/Grav.php(203): Pimple\Container->offsetGet('setup') 
#6 /var/www/html/system/src/Grav/Common/Grav.php(244): Grav\Common\Grav->setup() 
#7 /var/ in /var/www/html/system/src/Grav/Common/File/CompiledFile.php on line 91

I'm relatively new to grav (haven't done anything except make my simple resume site), have zero experience with php and relatively little experience with docker or apache (learning every day though!).

Any assistance would be appreciated, thanks!

Edit: Spaced out the code block.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 23 hours ago
1 36 14 hours ago
Support · by TomW, 24 hours ago
0 43 24 hours ago
Support · by TomW, 5 days ago
6 128 2 days ago
Support · by Anna, 2 weeks ago
2 163 5 days ago
Support · by Anna, 4 weeks ago
1 330 4 weeks ago