mxgross / EasyBackupBundle

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

fatal: detected dubious ownership in repository #63

Closed Rudiberto closed 7 months ago

Rudiberto commented 9 months ago

Just installed the nice Easy Backup and get this error. fatal: detected dubious ownership in repository at '/var/www/kimai/var/plugins/EasyBackupBundle' To add an exception for this directory, call: git config --global --add safe.directory /var/www/kimai/var/plugins/EasyBackupBundle Did what it said, but with no positive result. No change! But even when I'm getting this message, Easy Backup works perfect. Very fast it generated and no error in the log:

[2024-02-13 22:48:09] INFO: --- S T A R T C R E A T I N G B A C K U P --- ... [2024-02-13 22:48:09] WARNING: No output received from the command. [2024-02-13 22:48:09] WARNING: Command failed with exit code: 128 ... [2024-02-13 22:48:09] WARNING: Path '/var/www/kimai/config/packages/local.yaml' is not existing or not accessable … [2024-02-13 22:48:09] WARNING: Path '/var/www/kimai/var/invoices/' is not existing or not accessable. ... [2024-02-13 22:48:09] WARNING: Path '/var/www/kimai/var/export/' is not existing or not accessable. ... [2024-02-13 22:48:09] INFO: --- F I N I S H E D C R E A T I N G B A C K U P --- So, what is the reason for that issue?

mxgross commented 9 months ago

Hi @Rudiberto, on a testing machine of mine I got the same issue. Not sure how I fixed it back then but you can try to change the permissions of the directory, see second answer: https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor chown -R <current_user> <repo_folder>

As you noticed, the backup still works, it just cannot gather information about the git repository, which would be stored in the manifest.json,