mxgross / EasyBackupBundle

Kimai 2 Plugin for easier backups
MIT License
25 stars 6 forks source link

Create Backup fails #45

Closed YulianaPoliakova closed 2 years ago

YulianaPoliakova commented 2 years ago

View status checks have every entry in the list displaced as correct. However, when tried to create a backup this page with a critical error pops up. The backup is attempted to be done through the super admin account

image

numerfolt commented 2 years ago

I had the exact same problem. I am on version 1.20.4. In the logfile it says: [2022-09-14 14:39:16] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Failed to touch "/var/www/kimai2/var/easy_backup/easybackup.log"." at /var/www/kimai2/vendor/symfony/filesystem/Filesystem.php line 151 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Failed to touch \"/var/www/kimai2/var/easy_backup/easybackup.log\". at /var/www/kimai2/vendor/symfony/filesystem/Filesystem.php:151)"} []

I manually created the folder /var/www/kimai2/var/easy_backup/ and it worked right away. Not sure though why my php user couldnt create it as the permissions were correctly set (using the manual of this repository).

mxgross commented 2 years ago

Thanks I created a new wiki page with Common-errors-and-their-solution I hope I'll soon find time to further optimize the problematic parts of the code.