Closed kees-closed closed 2 years ago
Make sure to check where the configuration is being saved. For CLI it should be in /user/config/plugins/git-sync
but admin may save it into /user/env/hostname.com/...
or /user/hostname.com/...
So either move the configuration to the main config folder or use --env hostname.com
parameter in CLI (not 100% sure if it works, it should IMHO).
Should manual intervention be needed when the admin panel is used? I reinstalled the plugin twice and removed all configs before installing it again. After running the setup wizard for git-sync the cron job still doesn't work. Sure, I might be able to fix it with the CLI, but if I have to do that, then I would conclude that there is a bug in the admin panel.
The config file is indeed where it should be when using the admin panel:
find . -type f -name *git-sync*
./user/plugins/git-sync/css-compiled/git-sync-icon.css
./user/plugins/git-sync/css-compiled/git-sync.css
./user/plugins/git-sync/git-sync.php
./user/plugins/git-sync/git-sync.yaml
./user/plugins/git-sync/scss/git-sync.scss
./user/hostname/config/plugins/git-sync.yaml
But the cron job is not running, while it is enabled in the cron config and the cron details are listed in the git-sync config file.
A reinstall of Grav fixed the issue.
Hi, in the admin-panel I've enabled a cron to make sure the configurations are kept up2date in git. However, this cron fails for a while already in the overview with
fatal: Authentication failed for {{ git_repo_details }}
.I thought this would be related to my configuration. But launching the git-sync from the admin-panel works without issues. The status in the admin-panel is clear, the action succeeded. When checking the git repo this is indeed the case. So username, password and git repo work fine.
In my config file I have the following:
Which corresponds with what's shown in the admin-panel of the plugin and the scheduler overview. Although also the scheduler overview in the admin-panel shows the same error
fatal: Authentication failed for {{ git_repo_details }}
.When consulting the scheduler on the command line I see the following:
As can be seen, there is no mention of
git-sync
. While it is shown in the admin-panel. Perhaps the error that's triggered is because of some mismatch in adding the proper configuration in the scheduler?git-sync is enabled in the settings and admin-panel:
The last successful run via the scheduler was on Wed Nov 24 23:00:07 2021 UTC for git-sync. Maybe I upgraded to the latest version of June at that point. Can someone double check if this is reproducible? I already removed the plugin and any other user defined configs and started from scratch.