Skip to content
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

Configurator fails to authenticate push to git #1080

Closed
chivandikwa opened this issue Feb 15, 2020 · 1 comment
Closed

Configurator fails to authenticate push to git #1080

chivandikwa opened this issue Feb 15, 2020 · 1 comment

Comments

@chivandikwa
Copy link

chivandikwa commented Feb 15, 2020

I have setup the configurator plugin in HASSIO running on a raspberrypi4 in docker ce. I have the configurator configured as follows:

dirsfirst: false
enforce_basepath: false
ignore_pattern:

  • pycache
  • .cloud
  • .storage
  • deps
    ssh_keys:
  • /config/id_rsa

The id-rsa contains a private ssh key that I have setup for the specific repo in github as a deployment key. When I do a push however if fails with the message:
git push --porcelain origin\n stderr: 'fatal: could not read Username for 'https://github.com': No such device or address'

I have setup the git pull plugin in a similar manner and this one is able to pull the changes correctly.

I have checked the repo config file and it does also happen to have my user name and email setup correctly.

@chivandikwa
Copy link
Author

This was really odd, I was able to resolve the issue by updating the url in the git config from:
url = https://github.com/username/repo.git

to
url = git@github.com:username/repo.git

Oddly the first one is a valid url and worked for pushing to git using bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant