-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os-git-backup - error in push #4143
Comments
I rotated some SSH keys recently and have started to encounter this error as well. After looking into it a bit further I have identified the cause. When you apply the configuration in the GUI and hit By manually adding the origin the push to git does work as expected. After looking at the source for the plugin I noticed that its hardcoded to look for a master branch on line 165 of I was able to do the following as work around:
|
i just spent 3 hours on this had no clue where my key was, bc afaik
also the docs could use examples, the current workflow i was successful in the end, i easily could have borked the pull or the merge
my major mistake was deleting my github deploy key
but i ended up mucking about in the issue totally stems from github using main and master being hard-coded while your solution #4373 it seems like the whole system could use an overhaul sorry if my tone was curt, this entire process was but i endured and was successful, im willing to help in anyway possible theres many many many issues around this also in trying to nail down what started this bug aside: |
This issue has been automatically timed-out (after 180 days of inactivity). For more information about the policies for this repository, If someone wants to step up and work on this issue, |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
I use the os-git-backup plugin to back up files to the remote server. I have identified problems in the execution of the process, more specifically when the push is made to the remote server.
Via the graphical interface when clicking on setup/Test Git:
The following input errors were detected:
unknown error, check log for details
Saved settings, but remote backup failed
Whenever I manually push, the same problem occurs:
! [remote rejected] master -> master (decreased pre-received hook)
error: failed to push some refs to 'ssh://xxxxxx.xxx/backup-opn.git'
the last successful push was 7 months ago
Tip: To validate your configuration was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)
To Reproduce
Backed up in the setup/Test Git option:
The following input errors were detected:
unknown error, check log for details
Saved settings, but remote backup failed
or by manually git pushing
! [remote rejected] master -> master (decreased pre-received hook)
error: failed to push some refs to 'ssh://xxxxxx.xxx/backup-opn.git'
Expected behavior
successful automatic backup or when clicking setup / test the file upload to the remote server is successful
Screenshots
N/A
Relevant log files
! [remote rejected] master -> master (decreased pre-received hook)
error: failed to push some refs to 'ssh://xxxxxx.xxx/backup-opn.git'
Additional context
pulling works normally
reinstall plugin
remove permissions from the remote repository to the point of leaving any pushes free
push -f
remove /conf/backup/git and event_config_changed.json
Environment
OPNsense 24.1.9_4
Gitlab remote repo
pull ok
The text was updated successfully, but these errors were encountered: