Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux arm64 build - failed to open db: sql: unknown driver "sqlite3" (forgotten import?) #724

Open
DmitriiMukhin opened this issue Aug 31, 2024 · 0 comments
Labels
bug Something isn't working.

Comments

@DmitriiMukhin
Copy link

DmitriiMukhin commented Aug 31, 2024

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

  1. Build with GOOS=linux GOARCH=arm64 ./build.sh --static
  2. Deploy as systemd service on Debian 12 arm64
  3. Edit /etc/maddy/maddy.conf (hostname, domain, etc...)
  4. Try to start

Log files

failed to open db: sql: unknown driver "sqlite3" (forgotten import?)

Configuration file

/etc/maddy/maddy.conf

Environment information

  • maddy version: 0.7.1+cbeadf1
@DmitriiMukhin DmitriiMukhin added the bug Something isn't working. label Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant