-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Description
Hi,
I'm trying to setup wallabag in kubernetes, and I can't get it to use correct database. Here is my config:
/var/www/wallabag # printenv | grep SYM
SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
SYMFONY__ENV__DATABASE_HOST=psql-wallabag-rw
SYMFONY__ENV__DATABASE_NAME=app
SYMFONY__ENV__DATABASE_PASSWORD=**secret**
SYMFONY__ENV__DATABASE_PORT=5432
SYMFONY__ENV__DATABASE_USER=app
SYMFONY__ENV__DOMAIN_NAME=**secret**
SYMFONY__ENV__FOSUSER_CONFIRMATION=false
SYMFONY__ENV__FOSUSER_REGISTRATION=false
SYMFONY__ENV__FOS_OAUTH_SERVER_ACCESS_TOKEN_LIFETIME=3600
SYMFONY__ENV__FOS_OAUTH_SERVER_REFRESH_TOKEN_LIFETIME=1209600
SYMFONY__ENV__FROM_EMAIL=no-reply@wallabag.org
SYMFONY__ENV__LOCALE=en
SYMFONY__ENV__REDIS_HOST=wallabag-redis
SYMFONY__ENV__REDIS_SCHEME=tcp
SYMFONY__ENV__RSS_LIMIT=50
SYMFONY__ENV__SECRET=**secret**
SYMFONY__ENV__SERVER_NAME=Your wallabag instance
As you can see, database engine should be postgres, but below I'm pasting the excerpt from prod.log, which suggests that it's actually for some reason trying to use sqlite.
[2025-06-24T07:33:10.433925+00:00] console.CRITICAL: Error thrown while running command "wallabag:install --env=prod". Message: "The command "doctrine:database:drop" generates some errors: Could not drop database /var/www/wallabag/data/db/wallabag.sqlite for connection named default An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "/" LINE 1: DROP DATABASE /var/www/wallabag/data/db/wallabag.sqlite ^ " {"exception":"[object] (RuntimeException(code: 0): The command \"doctrine:database:drop\" generates some errors:
Could not drop database /var/www/wallabag/data/db/wallabag.sqlite for connection named default
An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near \"/\"
LINE 1: DROP DATABASE /var/www/wallabag/data/db/wallabag.sqlite
^
at /var/www/wallabag/src/Wallabag/CoreBundle/Command/InstallCommand.php:364)","command":"wallabag:install --env=prod","message":"The command \"doctrine:database:drop\" generates some errors:
Could not drop database /var/www/wallabag/data/db/wallabag.sqlite for connection named default
An exception occurred while executing a query: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near \"/\"
LINE 1: DROP DATABASE /var/www/wallabag/data/db/wallabag.sqlite
^
"} []
postgres version: 17
docker image: docker.io/wallabag/wallabag:2.6.13
image SHA: docker.io/wallabag/wallabag@sha256:efa1c00736e0544291dd104f8f3092ca5e88076862e9e034ae9cd3eaa9d36daa
Metadata
Metadata
Assignees
Labels
No labels