Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Wallabag container not respecting settings passed via envs

Aperta
#445 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, postgresql, shell

Direzione di ricerca

Inizia riproducendo il problema con l’immagine Docker wallabag:2.6.13 indicata e le variabili SYMFONY__ENV__ mostrate, quindi esamina la configurazione di produzione generata e prod.log. Segui il percorso di installazione fino a src/Wallabag/CoreBundle/Command/InstallCommand.php:364 e confronta la connessione al database configurata con i valori PostgreSQL. Il lavoro è completato quando il container usa le impostazioni del database previste durante wallabag:install --env=prod.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Shell
Stelle
771
Fork
168
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wallabag/docker

Tutte le issue di wallabag/docker

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.