Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Wallabag container not respecting settings passed via envs

Open
#445 1 comment 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wallabag/docker

All issues in wallabag/docker

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.