arm64 Debian package: Failed to ping database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
I just installed the comentario_3.11.0_linux_arm64.deb and used SQLite3 as the backend.
But the database file is not created.
Logs:
Comentario server, version 3.11.0, built 2024-10-23T14:52:10Z
2024-10-29 20:48:11.528 INFO config | Using configuration:
{
"Verbose": [
true,
true
],
"NoLogColours": false,
"BaseURL": "https://comentario.example.org",
"BaseDocsURL": "https://docs.comentario.app",
"TermsOfServiceURL": "",
"PrivacyPolicyURL": "",
"CDNURL": "",
"EmailFrom": "noreply@example.org",
"DBIdleConns": 50,
"DisableXSRF": false,
"EnableSwaggerUI": false,
"PluginPath": "",
"StaticPath": "/usr/lib/comentario/frontend",
"DBMigrationPath": "/usr/lib/comentario/db",
"DBDebug": false,
"TemplatePath": "/usr/lib/comentario/templates",
"SecretsFile": "/etc/comentario/secrets.yaml",
"Superuser": "",
"LogFullIPs": false,
"HomeContentURL": "https://docs.comentario.app/en/embed/front-page/",
"GitLabURL": "",
"DisableLiveUpdate": false,
"WSMaxClients": 10000,
"E2e": false
}
2024-10-29 20:48:11.528 WARNI config | SQLite3 database file "/var/lib/comentario/comentario.sqlite3" does not exist, will create one
2024-10-29 20:48:11.529 DEBUG config | Facebook auth isn't configured or enabled
2024-10-29 20:48:11.529 DEBUG config | GitHub auth isn't configured or enabled
2024-10-29 20:48:11.529 DEBUG config | GitLab auth isn't configured or enabled
2024-10-29 20:48:11.529 DEBUG config | Google auth isn't configured or enabled
2024-10-29 20:48:11.529 DEBUG config | Twitter auth isn't configured or enabled
2024-10-29 20:48:11.529 DEBUG config | No OIDC providers configured or enabled
2024-10-29 20:48:11.529 INFO config | SMTP username isn't provided, no SMTP authentication will be used
2024-10-29 20:48:11.529 INFO config | SMTP configured with server localhost:25
2024-10-29 20:48:11.529 INFO svc | Plugin directory isn't specified, not looking for plugins
2024-10-29 20:48:11.553 DEBUG svc | manager.Initialise()
2024-10-29 20:48:11.553 DEBUG svc | i18nService.Init()
2024-10-29 20:48:11.555 DEBUG svc | Loaded i18n file "resources/i18n/en.yaml" for language "en" (116 messages)
2024-10-29 20:48:11.557 DEBUG svc | Loaded i18n file "resources/i18n/fr.yaml" for language "fr" (116 messages)
2024-10-29 20:48:11.559 DEBUG svc | Loaded i18n file "resources/i18n/nl.yaml" for language "nl" (116 messages)
2024-10-29 20:48:11.561 DEBUG svc | Loaded i18n file "resources/i18n/pt-br.yaml" for language "pt-BR" (116 messages)
2024-10-29 20:48:11.564 DEBUG svc | Loaded i18n file "resources/i18n/ru.yaml" for language "ru" (116 messages)
2024-10-29 20:48:11.566 DEBUG svc | Loaded i18n file "resources/i18n/vi.yaml" for language "vi" (116 messages)
2024-10-29 20:48:11.568 DEBUG svc | Loaded i18n file "resources/i18n/zh-Hans.yaml" for language "zh-Hans" (116 messages)
2024-10-29 20:48:11.570 DEBUG svc | Loaded i18n file "resources/i18n/zh-Hant.yaml" for language "zh-Hant" (116 messages)
2024-10-29 20:48:11.570 INFO svc | Registering Akismet extension
2024-10-29 20:48:11.570 INFO svc | Registering Perspective extension
2024-10-29 20:48:11.570 INFO svc | Registering APILayer SpamChecker extension
2024-10-29 20:48:11.570 INFO persistence | Using database dialect: sqlite3
2024-10-29 20:48:11.570 INFO persistence | Connecting to database /var/lib/comentario/comentario.sqlite3?_fk=true
2024-10-29 20:48:11.570 WARNI 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
2024-10-29 20:48:12.571 WARNI 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
2024-10-29 20:48:14.573 WARNI 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
2024-10-29 20:48:18.573 WARNI persistence | [Attempt 4/10] Failed to ping database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
^C2024-10-29 20:48:20.593 INFO restapi | Shutting down...
2024-10-29 20:48:20.593 WARNI persistence | Interrupting database connection process...
2024-10-29 20:48:20.593 CRITI svc | Failed to connect to database: interrupted
I am a Golang noob. However this might be the issue: https://github.com/mattn/go-sqlite3/issues/855
Perhaps this is specific to ARM64.