Error adding a rhaspberry pi as a server #634

Closed
opened 2024-07-31 08:21:24 +00:00 by ammaratef45 · 3 comments
Member
pi@raspberrypi:~ $ hostnamectl
   Static hostname: raspberrypi
         Icon name: computer
        Machine ID: ***
           Boot ID: ***
  Operating System: Raspbian GNU/Linux 11 (bullseye)
            Kernel: Linux 6.6.42-v7+
      Architecture: arm

When I run abra add server *** -d I get this error:

.............
DEBU[0009] commandconn: starting ssh with [-o ConnectTimeout=60 -l *** -p 22 -- *** docker system dial-stdio]  caller="/drone/src/pkg/upstream/commandconn/commandconn.go:49 New"
  caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write"
  caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write"
  caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write"ickey,password).
INFO[0013] cleaning up context for ***  caller="/drone/src/cli/server/add.go:28 cleanUp"
INFO[0013] attempting to clean up server directory for ***  caller="/drone/src/cli/server/add.go:34 cleanUp"
DEBU[0013] failed to construct client for ***, saw ssh auth: permission denied for ***  caller="/drone/src/cli/server/add.go:173 glob..func1"
FATA[0013] ssh auth: permission denied for ***  caller="/drone/src/cli/server/add.go:174 glob..func1" stack="/drone/src/cli/server/add.go:174                         glob..func1\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:524     HandleAction\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:173 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:405     (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:378 Command.startApp\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:102 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:277     (*App).Run\n/drone/src/cli/cli.go:203                                RunApp\n/drone/src/cmd/abra/main.go:22                           main\n/usr/local/go/src/runtime/internal/atomic/types.go:194   (*Uint32).Load\n/usr/local/go/src/runtime/asm_arm64.s:1197               goexit"
``` pi@raspberrypi:~ $ hostnamectl Static hostname: raspberrypi Icon name: computer Machine ID: *** Boot ID: *** Operating System: Raspbian GNU/Linux 11 (bullseye) Kernel: Linux 6.6.42-v7+ Architecture: arm ``` When I run `abra add server *** -d` I get this error: ``` ............. DEBU[0009] commandconn: starting ssh with [-o ConnectTimeout=60 -l *** -p 22 -- *** docker system dial-stdio] caller="/drone/src/pkg/upstream/commandconn/commandconn.go:49 New" caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write" caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write" caller="/drone/src/pkg/upstream/commandconn/commandconn.go:287 (*stderrWriter).Write"ickey,password). INFO[0013] cleaning up context for *** caller="/drone/src/cli/server/add.go:28 cleanUp" INFO[0013] attempting to clean up server directory for *** caller="/drone/src/cli/server/add.go:34 cleanUp" DEBU[0013] failed to construct client for ***, saw ssh auth: permission denied for *** caller="/drone/src/cli/server/add.go:173 glob..func1" FATA[0013] ssh auth: permission denied for *** caller="/drone/src/cli/server/add.go:174 glob..func1" stack="/drone/src/cli/server/add.go:174 glob..func1\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:524 HandleAction\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:173 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:405 (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:378 Command.startApp\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/command.go:102 Command.Run\n/go/pkg/mod/github.com/urfave/cli@v1.22.9/app.go:277 (*App).Run\n/drone/src/cli/cli.go:203 RunApp\n/drone/src/cmd/abra/main.go:22 main\n/usr/local/go/src/runtime/internal/atomic/types.go:194 (*Uint32).Load\n/usr/local/go/src/runtime/asm_arm64.s:1197 goexit" ```
ammaratef45 added the
bug
label 2024-07-31 08:21:24 +00:00
Owner

Hey @ammaratef45 thanks for diving in and trying out abra!

Does ssh *** work? I see ssh auth: permission denied in the very jumbled up (to be improved: coop-cloud/organising#567) error message so that seems like you maybe are having some regular 'ol SSH issues vs. abra issues?

We have implemented a series of fixes around SSH (unreleased atm tho sadly) which started to some inconsistencies go away with how abra handles SSH. Do you have something fancy in your ~/.ssh/config in terms of connection options?

Hey @ammaratef45 thanks for diving in and trying out `abra`! Does `ssh ***` work? I see `ssh auth: permission denied` in the very jumbled up (to be improved: https://git.coopcloud.tech/coop-cloud/organising/issues/567) error message so that seems like you maybe are having some regular 'ol SSH issues vs. `abra` issues? We have implemented a series of fixes around SSH (unreleased atm tho sadly) which started to some inconsistencies go away with how `abra` handles SSH. Do you have something fancy in your `~/.ssh/config` in terms of connection options?
Author
Member

Hi @decentral1se, Just realized the SSH config file had a typo in the hostname (Host *** and HostName *** didn't have exact values)

Thanks for taking a look!

Hi @decentral1se, Just realized the SSH config file had a typo in the hostname (Host *** and HostName *** didn't have exact values) Thanks for taking a look!
Owner

Great stuff @ammaratef45, np! We're also gonna try to improve the default error message on this to try to point people to the SSH config file faster in coop-cloud/organising#570 🙏 Happy abrain'

Great stuff @ammaratef45, np! We're also gonna try to improve the default error message on this to try to point people to the SSH config file faster in https://git.coopcloud.tech/coop-cloud/organising/issues/570 🙏 Happy `abra`in'
Sign in to join this conversation.
No description provided.