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

Database table missing (wallabag_internal_setting) when populating database

Aperta
#377 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

@501st-alpha1 ci sta già lavorando.

Dal 31/12/2023.

  • #392 di @501st-alpha1 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, php, sqlite

Direzione di ricerca

Inizia dal percorso di avvio del container Docker che gestisce POPULATE_DATABASE e gli entry point bin/console wallabag:install e doctrine:migrations:migrate. Riproduci il problema con SQLite e un volume dati montato, quindi traccia il motivo per cui wallabag_internal_setting è assente; l’issue è completata quando l’avvio crea la tabella e bin/console cache:clear termina senza l’errore SQL.

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

Descrizione

Awaiting response
Environment
  • Version: 2.6.6
  • Installation: Docker Image (latest)
  • PHP version: 8.1.23 (provided by image)
  • OS: Synology DSM
  • Database: SQLite
  • Parameters: see below
  • Env variables: POPULATE_DATABASE='True'
My app/config/parameters.yml is:
parameters:
  database_driver: pdo_sqlite
  database_host: 127.0.0.1
  database_port: null
  database_name: symfony
  database_user: root
  database_password: null
  database_path: '%kernel.project_dir%/data/db/wallabag.sqlite'
  database_table_prefix: wallabag_
  database_socket: null
  database_charset: utf8
  domain_name: 'https://wallabag.mydomain.com'
  server_name: 'Your wallabag instance'
  mailer_dsn: 'smtp://127.0.0.1'
  locale: de
  secret: ovmpmAWXRCabNlMgzlzFXDYmCFfzGv
  twofactor_sender: [email protected]
  fosuser_registration: false
  fosuser_confirmation: false
  fos_oauth_server_access_token_lifetime: 3600
  fos_oauth_server_refresh_token_lifetime: 1209600
  from_email: [email protected]
  rss_limit: 50
  rabbitmq_host: localhost
  rabbitmq_port: 5672
  rabbitmq_user: guest
  rabbitmq_password: guest
  rabbitmq_prefetch_count: 10
  redis_scheme: tcp
  redis_host: wallabag-redis
  redis_port: 6379
  redis_path: null
  redis_password: null
  sentry_dsn: null
What steps will reproduce the bug?

Whenever I start the container (with POPULATE_DATABASE='True') wallabag tables get generated and the database file is created (I mounted the /var/www/wallabag/data to a Docker volume to persist state).
However one table (wallabag_internal_setting) seems not to be created and the logs throws errors:

> bin/console cache:clear --no-warmup
 [WARNING] Some commands could not be registered:                               
In ExceptionConverter.php line 52:
                                                                               
  An exception occurred while executing a query: SQLSTATE[HY000]: General err  
  or: 1 no such table: wallabag_internal_setting                               
                                                                               
In Exception.php line 28:
                                                                              
  SQLSTATE[HY000]: General error: 1 no such table: wallabag_internal_setting
Already tried solutions

I already tried to run migrations for the database manually after the container startup by exec-ing into the container and running

  1. /var/www/wallabag/bin/console wallabag:install --env=prod --no-interaction or
  2. /var/www/wallabag/bin/console doctrine:migrations:migrate --env=prod --no-interaction

However this also leads to the already above mentioned error with the wallabag_internal_setting table as seen in the following screenshot:

CleanShot 2023-09-11 at 16 09 13@2x

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.