Unsolved

1 Rookie

 • 

6 Posts

112

February 17th, 2026 04:20

cert-csi cgo error in executable binary version 1.9.0

The binary file downloaded https://github.com/dell/csm/releases/latest/download/cert-csi results in an error message as per below;

panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

goroutine 1 [running]:
eos2git.cec.lab.emc.com/CSM/cert-csi/pkg/store.NewSQLiteStore({0xc000447410, 0x10})
        /home/runner/_work/cert-csi/cert-csi/pkg/store/sqlite.go:55 +0xd9
eos2git.cec.lab.emc.com/CSM/cert-csi/pkg/cmd.createSuiteRunner(0xc00067a840, {0xc000517440, 0x1, 0x1})
        /home/runner/_work/cert-csi/cert-csi/pkg/cmd/testcmd.go:168 +0x313
eos2git.cec.lab.emc.com/CSM/cert-csi/pkg/cmd.GetTestCommand.getProvisioningCommand.func2(0xc00067a840)
        /home/runner/_work/cert-csi/cert-csi/pkg/cmd/testcmd.go:680 +0x151
github.com/urfave/cli.HandleAction({0x22047a0?, 0x28271e0?}, 0xc?)
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/app.go:524 +0x9f
github.com/urfave/cli.Command.Run({{0x26df992, 0xc}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x2731ba0, 0x2e}, {0x0, ...}, ...}, ...)
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/command.go:175 +0x656
github.com/urfave/cli.(*App).RunAsSubcommand(0xc000582c40, 0xc00067a580)
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/app.go:405 +0xddb
github.com/urfave/cli.Command.startApp({{0x26cf209, 0x4}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x26e595e, 0xf}, {0x0, ...}, ...}, ...)
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/command.go:380 +0xb38
github.com/urfave/cli.Command.Run({{0x26cf209, 0x4}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x26e595e, 0xf}, {0x0, ...}, ...}, ...)
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/command.go:103 +0x785
github.com/urfave/cli.(*App).Run(0xc000582a80, {0xc000050090, 0x9, 0x9})
        /home/runner/_work/cert-csi/cert-csi/vendor/github.com/urfave/cli/app.go:277 +0xb1b
main.main()
        /home/runner/_work/cert-csi/cert-csi/cmd/cert-csi/main.go:96 +0xaa5

1 Rookie

 • 

6 Posts

February 17th, 2026 23:18

@dan.cohen​ these articles all point to re-compile from source. I have managed to get it working by performing the following steps and re-compiling from source;

1. Install the required pre-req packages

sudo apt install build-essential (contains gcc)
sudo apt install sqlite3
2. Upgrade go lang version to a version higher than 1.22
sudo apt remove -y golang-go golang-1.* go
sudo rm -rf /usr/local/go
GO_VER=1.26.0
curl -fsSL https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz -o /tmp/go.tar.gz
sudo tar -C /usr/local -xzf /tmp/go.tar.gz
echo 'export PATH=/usr/local/go/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
go version
3. Enable CGO in go environment
go env -w CGO_ENABLED=1
4. Compile a new binary from source
git clone -b v1.9.0 https://github.com/dell/cert-csi.git && cd cert-csi
make build
sudo install -o root -g root -m 0755 cert-csi /usr/local/bin/cert-csi
cert-csi version
Note: Even though I compiled from source with v1.9.0 tag, the cert-csi version shows 1.8.0

(edited)

0 events found

No Events found!

Top