Wallabag container not respecting settings passed via envs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, postgresql, shell
- Domain
- databases, devops, infrastructure
Research direction
Start by reproducing the issue with the listed wallabag:2.6.13 Docker image and the shown SYMFONY__ENV__ variables, then inspect the generated production configuration and prod.log. Trace the install path to src/Wallabag/CoreBundle/Command/InstallCommand.php:364 and compare the configured database connection with the PostgreSQL values. Done means the container uses the intended database settings during wallabag:install --env=prod.
Written by the indexing model from the issue text.
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
[email protected]
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
- Dominant language
- Shell
- Stars
- 771
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wallabag/docker
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Awaiting response
Difficulty 4/5 3-5 days Newbie friendliness 32/100
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
MISP/misp-docker#478 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
t4t5/omdrop-owl#83 ·
-
Link Checker ReportOpenautomated issue report
Difficulty 1/5 Under an hour Newbie friendliness 88/100
a2aproject/A2A#2383 ·
Maintainers usually reply within 3 days
-
roadmap-100
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
priority: medium status: needs-decision work-class: scoped
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melodic-software/claude-code-plugins#9339 · 2 comments ·
Maintainers usually reply within 1 day