MightyMoud / sidekick

Bare metal to production ready in mins; your own fly server on your VPS.
https://www.sidekickdeploy.com
GNU General Public License v3.0
2.93k stars 48 forks source link

runtime error: invalid memory address or nil pointer dereference #38

Open mrwyndham opened 3 hours ago

mrwyndham commented 3 hours ago

Failed on the VPS not sure what the issue is.

SUCCESS Logged in successfully!
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x105270b68]

goroutine 1 [running]: golang.org/x/crypto/ssh.(Client).NewSession(0x1054737e0?) golang.org/x/crypto@v0.24.0/ssh/client.go:134 +0x18 github.com/mightymoud/sidekick/utils.RunCommand(0x140001794e8?, {0x10538eb7c, 0x2d}) github.com/mightymoud/sidekick/utils/utils.go:43 +0x3c github.com/mightymoud/sidekick/utils.RunCommands(...) github.com/mightymoud/sidekick/utils/utils.go:91 github.com/mightymoud/sidekick/utils.RunStage(0x0, {{0x105818a40, 0x6, 0x6}, {0x105384e3f, 0x1d}, {0x10538ca92, 0x29}}) github.com/mightymoud/sidekick/utils/utils.go:101 +0x74 github.com/mightymoud/sidekick/cmd.init.func4(0x140001dc100?, {0x1053786fe?, 0x4?, 0x105378702?}) github.com/mightymoud/sidekick/cmd/init.go:92 +0xfe4 github.com/spf13/cobra.(Command).execute(0x10581b720, {0x105849b20, 0x0, 0x0}) github.com/spf13/cobra@v1.8.1/command.go:989 +0x81c github.com/spf13/cobra.(Command).ExecuteC(0x10581bfc0) github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344 github.com/spf13/cobra.(Command).Execute(...) github.com/spf13/cobra@v1.8.1/command.go:1041 github.com/mightymoud/sidekick/cmd.Execute() github.com/mightymoud/sidekick/cmd/root.go:34 +0x24 main.main() github.com/mightymoud/sidekick/main.go:20 +0x1c

MightyMoud commented 3 hours ago

Hi @mrwyndham ,

Are you able to ssh root@ip?

I'll fix this atrocious error message soon