unable to fetch tags in /Users/<username>/.abra/recipes/navidrome: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain #664

Closed
opened 2025-09-12 21:59:42 +00:00 by ammaratef45 · 2 comments
Member

Need help root-causing this and determining if it is related to the abra upgrade

Recipe: navidrome

abra --version                                                                             ─╯
abra version 0.11.0-beta-1c4abcf
abra app deploy <app> -d                                          ─╯
DEBU <cli/run.go:137> abra version: 0.11.0-beta, commit: 1c4abcf1, lang: en
DEBU <app/app.go:295> collecting metadata from 5 servers: <server1>, <server2>, <server3>, <server4>, <server5>
DEBU <git/read.go:130> no /Users/<username>/.gitignore exists, skipping reading gitignore paths
DEBU <git/read.go:52> git status: /Users/<username>/.abra/recipes/navidrome: clean
DEBU <app/app.go:41> loaded app <app>: {name: <app>, recipe: {name: navidrome, version : , dirty: false, dir: /Users/<username>/.abra/recipes/navidrome, git url: https://git.coopcloud.tech/coop-cloud/navidrome.git, ssh url: ssh://git@git.coopcloud.tech:2222/coop-cloud/navidrome.git, compose: /Users/<username>/.abra/recipes/navidrome/compose.yml, readme: /Users/<username>/.abra/recipes/navidrome/README.md, sample env: /Users/<username>/.abra/recipes/navidrome/.env.sample, abra.sh: /Users/<username>/.abra/recipes/navidrome/abra.sh}, domain: <app>, env map[COMPOSE_FILE:compose.yml:compose.beets.yml DOMAIN:<app> LETS_ENCRYPT_ENV:production TYPE:navidrome], server <server1>, path /Users/<username>/.abra/servers/<server1>/<app>.env}
DEBU <internal/validate.go:106> validated <app> as app argument
DEBU <git/read.go:130> no /Users/<username>/.gitignore exists, skipping reading gitignore paths
DEBU <git/read.go:52> git status: /Users/<username>/.abra/recipes/navidrome: clean
DEBU <git/branch.go:99> successfully checked out refs/heads/main in /Users/<username>/.abra/recipes/navidrome
FATA <app/deploy.go:85> unable to fetch tags in /Users/<username>/.abra/recipes/navidrome: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

This is not the case with other recipes I worked with so far

Need help root-causing this and determining if it is related to the abra upgrade Recipe: [navidrome](https://recipes.coopcloud.tech/navidrome) ``` abra --version ─╯ abra version 0.11.0-beta-1c4abcf ``` ``` abra app deploy <app> -d ─╯ DEBU <cli/run.go:137> abra version: 0.11.0-beta, commit: 1c4abcf1, lang: en DEBU <app/app.go:295> collecting metadata from 5 servers: <server1>, <server2>, <server3>, <server4>, <server5> DEBU <git/read.go:130> no /Users/<username>/.gitignore exists, skipping reading gitignore paths DEBU <git/read.go:52> git status: /Users/<username>/.abra/recipes/navidrome: clean DEBU <app/app.go:41> loaded app <app>: {name: <app>, recipe: {name: navidrome, version : , dirty: false, dir: /Users/<username>/.abra/recipes/navidrome, git url: https://git.coopcloud.tech/coop-cloud/navidrome.git, ssh url: ssh://git@git.coopcloud.tech:2222/coop-cloud/navidrome.git, compose: /Users/<username>/.abra/recipes/navidrome/compose.yml, readme: /Users/<username>/.abra/recipes/navidrome/README.md, sample env: /Users/<username>/.abra/recipes/navidrome/.env.sample, abra.sh: /Users/<username>/.abra/recipes/navidrome/abra.sh}, domain: <app>, env map[COMPOSE_FILE:compose.yml:compose.beets.yml DOMAIN:<app> LETS_ENCRYPT_ENV:production TYPE:navidrome], server <server1>, path /Users/<username>/.abra/servers/<server1>/<app>.env} DEBU <internal/validate.go:106> validated <app> as app argument DEBU <git/read.go:130> no /Users/<username>/.gitignore exists, skipping reading gitignore paths DEBU <git/read.go:52> git status: /Users/<username>/.abra/recipes/navidrome: clean DEBU <git/branch.go:99> successfully checked out refs/heads/main in /Users/<username>/.abra/recipes/navidrome FATA <app/deploy.go:85> unable to fetch tags in /Users/<username>/.abra/recipes/navidrome: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain ``` This is not the case with other recipes I worked with so far
Member

Answered in the Matrix, the issue can be debugged by checking the git config for that repo:

$ cd ~/.abra/recipes/<recipename>
$  git config -l
core.bare=false
remote.origin.url=https://git.coopcloud.tech/coop-cloud/<recipename>.git
...

You should see an HTTPS url there. If you see an SSH URL, you'll need:

git remote set-url origin <NEW_GIT_URL_HERE>

This can happen during recipe development, like if you end up wanting to commit/push changed you made to a local repo, someone might want to change the remote URL to use SSH for authentication. But Abra only knows how to pull public HTTPS repos.

Answered in the Matrix, the issue can be debugged by checking the git config for that repo: ``` $ cd ~/.abra/recipes/<recipename> $ git config -l core.bare=false remote.origin.url=https://git.coopcloud.tech/coop-cloud/<recipename>.git ... ``` You should see an HTTPS url there. If you see an SSH URL, you'll need: ``` git remote set-url origin <NEW_GIT_URL_HERE> ``` This can happen during recipe development, like if you end up wanting to commit/push changed you made to a local repo, someone might want to change the remote URL to use SSH for authentication. But Abra only knows how to pull public HTTPS repos.
Owner

@cyrnel @ammaratef45 abra can pull ssh repos, but you need to have the correct key loaded into your ssh-agent. E.g.

eval `ssh-agent`
ssh-add ~/.ssh/<my-private-key-connected-to-gitea>

This is what is meant in:

FATA <app/deploy.go:85> unable to fetch tags in /Users//.abra/recipes/navidrome: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

What abra doesn't handle is SSH keys that require you to type in your password when you use them. We just didn't implement it and I'd rather not, but feel free whoever wants. The "work-around" is just doing this ssh-agent/ssh-add dance.

@cyrnel @ammaratef45 `abra` can pull `ssh` repos, but you need to have the correct key loaded into your ssh-agent. E.g. ``` eval `ssh-agent` ssh-add ~/.ssh/<my-private-key-connected-to-gitea> ``` This is what is meant in: > FATA <app/deploy.go:85> unable to fetch tags in /Users/<username>/.abra/recipes/navidrome: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain What `abra` doesn't handle is SSH keys that require you to type in your password when you use them. We just didn't implement it and I'd rather not, but feel free whoever wants. The "work-around" is just doing this `ssh-agent`/`ssh-add` dance.
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#664
No description provided.