mxgross / EasyBackupBundle

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

Can't backup in shared hosting environment #40

Closed Lu-H closed 2 years ago

Lu-H commented 2 years ago

Hi there!

Thank you very much for your effort you put in to this great plugin! Maybe you could point me in the right direction to solve my problem. I am having difficulties trying to get EasyBackup running. When I hit Create Backup it throws a error ('Something is wrong'), but the status checks are all green ticked. I was thinking about setting the right permissions, but as it is a shared hosting environment (ionos) I don't have a sudo user.

Here is my status check and log.

[2021-11-09 10:18:05] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} []
[2021-11-09 10:18:03] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Filesystem\Exception\IOException: "Failed to touch "/homepages/44/d706901053/htdocs/kimai2/var/easy_backup/easybackup.log"." at /homepages/44/d706901053/htdocs/kimai2/vendor/symfony/filesystem/Filesystem.php line 151 {"exception":"[object] (Symfony\\Component\\Filesystem\\Exception\\IOException(code: 0): Failed to touch \"/homepages/44/d706901053/htdocs/kimai2/var/easy_backup/easybackup.log\". at /homepages/44/d706901053/htdocs/kimai2/vendor/symfony/filesystem/Filesystem.php:151)"} []
[2021-11-09 10:18:03] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"secured_area","authenticator":"App\\Security\\TokenAuthenticator"} []
[2021-11-09 10:18:03] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"secured_area","authenticator":"App\\Security\\TokenAuthenticator"} []
[2021-11-09 10:18:03] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"secured_area","authenticators":1} []
[2021-11-09 10:18:03] security.DEBUG: User was reloaded from a user provider. {"provider":"App\\Security\\KimaiUserProvider","username":"sampleUser"} []
[2021-11-09 10:18:03] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2021-11-09 10:18:03] request.INFO: Matched route "create_backup". {"route":"create_backup","route_parameters":{"_route":"create_backup","_controller":"KimaiPlugin\\EasyBackupBundle\\Controller\\EasyBackupController::createBackupAction","_locale":"en"},"request_uri":"https://kimai.website.de/en/admin/easy-backup/create_backup","method":"GET"} []
View status checks | - -- | -- Path '/homepages/44/d706901053/htdocs/kimai2/var' readable | (y) Path '/homepages/44/d706901053/htdocs/kimai2/var' writable | (y) PHP extension 'zip' loaded | (y) Kimai version | (y) 1.15.5 stable git rev-parse HEAD | (y) bbf25823b804e31fe75570e2dcb2bf3d905e31b6 Database | (y) mysql /usr/bin/mysqldump --version | (y) mysqldump Ver 10.19 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64) /usr/bin/mysql --version | (y) /usr/bin/mysql Ver 15.1 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
mxgross commented 2 years ago

Hello,

please create the file /homepages/44/d706901053/htdocs/kimai2/var/easy_backup/easybackup.log by hand and try it again. Then it should work.

Kind regards Max

Lu-H commented 2 years ago

Wow! I am impressed by this quick support! Now it works. Many Thanks. I needed to create the folder _/easybackup/ in /var/ since the regular folder of the plugin is /var/plugins/EasyBackupBundle/ Maybe this was the problem

Best regards Lukas