Iām trying to get GIT working in the VSC add-on. Before I was running a Raspberry Pi and used to do my config via Visual Studio Code over samba. This was quite slow when doing GIT, but it worked (-ish).
Now that I have upgraded to HA Blue (odroid) Iāve installed the add-on and got it all configured except for GIT.
Now I canāt get GIT authenticated whatever I try. Not via HTTPS or SSH, not via tokens and also (which started it) not via the āregularā login to GitHub option in the add-on.
When I try to do a git command (fetch, pull, push) I get a popup:
The extension āGitHubā wants to sign in using GitHub.
When I then click on the [Allow] button a new tab opens with just a 404: Not Found
. This is on the URL (masked):
https://my.home.assistant.com/callback?vscode-requestId=xxx-xxx-xxx-xxx-xxx&vscode-scheme=code-oss&vscode-authority=vscode.github-authentication&vscode-path=%2Fdid-authenticate&code=xxx&state=xxx-xxx-xxx-xxx-xxx
(also tried the local IP address on port 8123)
It also pops up a window with Password
for https://github.com
and when I fill in my personal password the popup closes, not doing/showing anything. No logs, nothing.
In the bottom blue status bar of VSC it shows Signing in to GitHub.com
, but nothing happens.
When I click that message, I get another popup asking me for a token. When I paste in a token (newly generated with appropriate permissions) the same happens; pop-up closes but nothing happens.
Here a CLI log of what happened:
Error: socket hang up
at connResetException (internal/errors.js:610:14)
at Socket.socketOnEnd (_http_client.js:453:23)
at Socket.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'ECONNRESET'
}
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/xxx/ha-xxx.git/'
I know for a fact the repo exists, been using it for a while. Even made it public (was private before) just to be sure.
I have 2FA enabled on my GitHub account. Could that be the cause, and if so how can I go around that? Also tried adding SSH keys but that does nothing either.
Add-on version: 3.3.0
You are running the latest version of this add-on.
System: Home Assistant OS 5.12 (aarch64 / odroid-n2)
Home Assistant Core: 2021.4.0b3
Home Assistant Supervisor: 2021.03.9
Whelp!