FleexSecurity/fleex

Fleex unable to build/scan

lemaude opened this issue · 1 comments

hello,

so i am having a problem where i receive an error during build process.
here's the error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x7d325c]

goroutine 1 [running]:
golang.org/x/crypto/ssh.(*connection).clientAuthenticate(0xc00021e080, 0xc00021c000)
        /root/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210921155107-089bfa567519/ssh/client_auth.go:65 +0x53c
golang.org/x/crypto/ssh.(*connection).clientHandshake(0xc00021e080, {0xc000349e00, 0x12}, 0xc00021c000)
        /root/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210921155107-089bfa567519/ssh/client.go:113 +0x285
golang.org/x/crypto/ssh.NewClientConn({0xb02c40, 0xc000010738}, {0xc000349e00, 0x12}, 0xc000135980)
        /root/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210921155107-089bfa567519/ssh/client.go:83 +0x12e
golang.org/x/crypto/ssh.Dial({0xa1693f?, 0xa1cd45?}, {0xc000349e00, 0x12}, 0xc000135980)
        /root/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210921155107-089bfa567519/ssh/client.go:177 +0x59
github.com/FleexSecurity/fleex/pkg/sshutils.Connect({0xc000349e00, 0x12}, {0xa16e5f, 0x4}, {0xc000349d70?, 0xa3939c?})
        /root/go/pkg/mod/github.com/!fleex!security/fleex@v0.0.0-20220428115110-2436801bc221/pkg/sshutils/sshutils.go:170 +0x1ac
github.com/FleexSecurity/fleex/pkg/sshutils.GetConnectionBuild({0xc00024f040, 0xf}, 0xa163b5?, {0xa16e5f, 0x4}, {0xa1b05d, 0xd})
        /root/go/pkg/mod/github.com/!fleex!security/fleex@v0.0.0-20220428115110-2436801bc221/pkg/sshutils/sshutils.go:156 +0x85
github.com/FleexSecurity/fleex/cmd.glob..func1(0xe17d20?, {0xa16d83?, 0x0?, 0x0?})
        /root/go/pkg/mod/github.com/!fleex!security/fleex@v0.0.0-20220428115110-2436801bc221/cmd/build.go:131 +0xb0b
github.com/spf13/cobra.(*Command).execute(0xe17d20, {0xe52350, 0x0, 0x0})
        /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xe17aa0)
        /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
        /root/go/pkg/mod/github.com/spf13/cobra@v1.2.1/command.go:902
github.com/FleexSecurity/fleex/cmd.Execute()
        /root/go/pkg/mod/github.com/!fleex!security/fleex@v0.0.0-20220428115110-2436801bc221/cmd/root.go:45 +0x25
main.main()
        /root/go/pkg/mod/github.com/!fleex!security/fleex@v0.0.0-20220428115110-2436801bc221/main.go:6 +0x17

both linode and digitalocean showed the same error, but the images were successfully built.
i tried to re do all of the process on my 2nd machine and it still showed the same error.

really appreciate if anybody would point out my mistake.

thank you

xm1k3 commented

Sorry for the delay, i will spend some time during the week to try to figure out the problem and solve it.