[go: up one dir, main page]

Skip to content

Docker image and SQLite - Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work

Deploying registry.gitlab.com/comentario/comentario:latest on amd64. There seems to be an issue using SQLite:

2025-09-13 22:07:41.591 ;1mWARNI config      | SQLite3 database file "/db/comentario.sql" does not exist, will create one
2025-09-13 22:07:41.591 INFO  svc         | Plugin directory isn't specified, not looking for plugins
2025-09-13 22:07:41.647 INFO  svc         | Registering Akismet extension
2025-09-13 22:07:41.647 INFO  svc         | Registering Perspective extension
2025-09-13 22:07:41.647 INFO  svc         | Registering APILayer SpamChecker extension
2025-09-13 22:07:41.647 INFO  persistence | Using database dialect: sqlite3
2025-09-13 22:07:41.648 INFO  persistence | Connecting to database /db/comentario.sql?_fk=true
2025-09-13 22:07:41.648 ;1mWARNI persistence | [Attempt 1/10] Failed to ping database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
2025-09-13 22:07:42.648 ;1mWARNI persistence | [Attempt 2/10] Failed to ping database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
2025-09-13 22:07:44.650 ;1mWARNI persistence | [Attempt 3/10] Failed to ping database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

Sounds to be the same issue as #136 (closed) but for the Docker image.