Open m-kloeckner opened 1 month ago
Hello,
Ran into the same issue on a ARMv7 board (OrangePi).
Found a statement about fragile modernc.org/libc dependency in the documentation of modernc.org/sqlite
.
Tried changing the versions in the go.mod file and managed to build working executable.
The exact steps were:
git clone https://github.com/juanfont/headscale.git
cd headscale
git checkout v0.23.0
--- go.mod.old
+++ go.mod.new
@@ -203,8 +203,8 @@
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gvisor.dev/gvisor v0.0.0-20240722211153-64c016c92987 // indirect
- modernc.org/libc v1.60.1 // indirect
+ modernc.org/libc v1.55.3 // indirect
modernc.org/mathutil v1.6.0 // indirect
modernc.org/memory v1.8.0 // indirect
- modernc.org/sqlite v1.32.0 // indirect
+ modernc.org/sqlite v1.34.1 // indirect
)
go mod tidy
GOOS="linux" GOARCH="arm" GOARM="7" go build -v -ldflags="-s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v0.23.0" github.com/juanfont/headscale/cmd/headscale
Is this a support request?
Is there an existing issue for this?
Current Behavior
I am running headscale on a armv7 SOC (Cubieboard2) in a docker container since quite a while now. After switching to version 0.23 I'm running in an error.
When trying to start headscale using the official headscale/headscale docker image for armv7 the process fails with the following error after trying to open the SQLite db.
Expected Behavior
Opening the SQLite db does not crash the startup process of headscale on armv7.
Steps To Reproduce
Environment
Runtime environment
Anything else?
I built the docker image using debian:slim as a base; it fails with the exact same error.