You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nautobot version: development-branch from ~ 2020-03-08T16:00:00 UTC
nautobot-golden-config version: 0.9.0
Steps to Reproduce
Configure a git repository (in a self hosted gitlab instance)
Run a Backup Job
Expected Behavior
The Backup Config git repo gets pushed.
Observed Behavior
The process fails with an error after making the config backup:
An exception occurred: GitCommandError: Cmd('git') failed due to: exit code(128) cmdline: git push --porcelain origin stderr: 'fatal: Authentication failed for 'https://<key here>:x-oauth-basic@git.example.org/someuser/nautobot-tests.git/''
Traceback (most recent call last):
File "/opt/nautobot/lib/python3.7/site-packages/nautobot/extras/jobs.py", line 826, in _run_job
output = job.run(data=data, commit=commit)
File "/opt/nautobot/lib/python3.7/site-packages/nautobot_golden_config/jobs.py", line 53, in inner
return method(obj, data, commit)
File "/opt/nautobot/lib/python3.7/site-packages/nautobot_golden_config/jobs.py", line 187, in run
backup_repo.push()
File "/opt/nautobot/lib/python3.7/site-packages/nautobot_golden_config/utilities/git.py", line 56, in push
self.repo.remotes.origin.push()
File "/opt/nautobot/lib/python3.7/site-packages/git/remote.py", line 848, in push
return self._get_push_info(proc, progress)
File "/opt/nautobot/lib/python3.7/site-packages/git/remote.py", line 735, in _get_push_info
proc.wait(stderr=stderr_text)
File "/opt/nautobot/lib/python3.7/site-packages/git/cmd.py", line 408, in wait
raise GitCommandError(self.args, status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git push --porcelain origin
stderr: 'fatal: Authentication failed for 'https://<key here>:x-oauth-basic@git.example.org/someuser/nautobot-tests.git/''
Pulling the repo works. Also the username for that repo is not x-oauth-basic, sounds wrong to me, but I have no idea how the gitlab API works. The access token has write access to the repo.
The text was updated successfully, but these errors were encountered:
The support of additional providers was a late arrival in core by @smk4664 and I have not matched. Let me know if you think this is incorrect to reopen, but closing as duplicate for now
Environment
Steps to Reproduce
Expected Behavior
The Backup Config git repo gets pushed.
Observed Behavior
The process fails with an error after making the config backup:
Pulling the repo works. Also the username for that repo is not
x-oauth-basic
, sounds wrong to me, but I have no idea how the gitlab API works. The access token has write access to the repo.The text was updated successfully, but these errors were encountered: