maddy
maddy copied to clipboard
Linux arm64 build - failed to open db: sql: unknown driver "sqlite3" (forgotten import?)
Describe the bug
Tried to build on macOS with GOOS=linux GOARCH=arm64 ./build.sh --static
.
Got 2024-08-31T14:33:06.027Z [debug] systemd: STATUS="failed to open db: sql: unknown driver "sqlite3" (forgotten import?)"
I even tried to build such way:
GOOS=linux GOARCH=arm64 CC=aarch64-linux-musl-cc go build -v github.com/mattn/go-sqlite3
GOOS=linux GOARCH=arm64 CC=aarch64-linux-musl-cc ./build.sh --static
No success.
Steps to reproduce
- Build with
GOOS=linux GOARCH=arm64 ./build.sh --static
- Deploy as systemd service on Debian 12 arm64
- Edit /etc/maddy/maddy.conf (hostname, domain, etc...)
- Try to start
Log files
failed to open db: sql: unknown driver "sqlite3" (forgotten import?)
Configuration file
Environment information
- maddy version: 0.7.1+cbeadf1