Error 500 by fresh installation (Docker/Postgres)
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza con la configuración de docker-compose proporcionada, el archivo ENV y los registros de inicio del contenedor wallabag; compara las rutas de la base de datos existente y de creación de la base de datos, especialmente el error de sintaxis de PostgreSQL indicado. Se considera completado cuando una implementación nueva inicializa correctamente las tablas de la base de datos y la URL configurada ya no devuelve HTTP 500.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi there,
I've some difficulties installing Wallbag on my docker host. After "deployment", I get an error 500 by trying to connect to the URL.
Docker compose:
version: '3'
services:
wallabag:
container_name: wallabag
image: wallabag/wallabag:latest
restart: unless-stopped
depends_on:
- wallabag-postgres
environment:
SYMFONY__ENV__DATABASE_DRIVER: '${SYMFONY__ENV__DATABASE_DRIVER}'
SYMFONY__ENV__DATABASE_HOST: '${SYMFONY__ENV__DATABASE_HOST}'
SYMFONY__ENV__DATABASE_PORT: '${SYMFONY__ENV__DATABASE_PORT}'
SYMFONY__ENV__DATABASE_NAME: '${SYMFONY__ENV__DATABASE_NAME}'
SYMFONY__ENV__DATABASE_USER: '${SYMFONY__ENV__DATABASE_USER}'
SYMFONY__ENV__DATABASE_PASSWORD: '${SYMFONY__ENV__DATABASE_PASSWORD}'
SYMFONY__ENV__DATABASE_TABLE_PREFIX: '${SYMFONY__ENV__DATABASE_TABLE_PREFIX}'
SYMFONY__ENV__MAILER_DSN: '${SYMFONY__ENV__MAILER_DSN}'
SYMFONY__ENV__FROM_EMAIL: '${SYMFONY__ENV__FROM_EMAIL}'
SYMFONY__ENV__DOMAIN_NAME: '${SYMFONY__ENV__DOMAIN_NAME}'
SYMFONY__ENV__SERVER_NAME: '${SYMFONY__ENV__SERVER_NAME}'
POPULATE_DATABASE: '${POPULATE_DATABASE}'
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
volumes:
- wallabag_images:/var/www/wallabag/web/assets/images
networks:
default:
ipv4_address: 192.168.X.Z
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/api/info"]
interval: 1m
timeout: 3s
wallabag-postgres:
container_name: wallabag-postgres
image: postgres:16.1-alpine
restart: unless-stopped
volumes:
- postgres:/var/lib/postgresql/data
networks:
default:
ipv4_address: 192.168.X.Y
environment:
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
volumes:
wallabag_images:
postgres:
networks:
default:
external: true
name: docker_test
ENV file:
SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
SYMFONY__ENV__DATABASE_HOST=192.168.X.Y
SYMFONY__ENV__DATABASE_PORT=5432
SYMFONY__ENV__DATABASE_NAME=wallabag
SYMFONY__ENV__DATABASE_USER=wallabag
SYMFONY__ENV__DATABASE_PASSWORD=xxx
SYMFONY__ENV__DATABASE_TABLE_PREFIX=wallabag_
SYMFONY__ENV__MAILER_DSN=smtp://mymailserver
[email protected]
SYMFONY__ENV__DOMAIN_NAME=https://app-test.mydomain.local
SYMFONY__ENV__SERVER_NAME=Wallabag test instance
POSTGRES_USER=postgres
POSTGRES_PASSWORD=xxx
POPULATE_DATABASE=True
Logs when database already exists:
Starting wallabag ...
Waiting for database ...
WARN: Postgres database is already configured. Remove the environment variable with root password.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested.
Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/compiler is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/consistency is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/event is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/exception is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/file is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/iterator is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/math is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/protocol is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/regex is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/ruler is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/stream is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/ustring is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/visitor is abandoned, you should avoid using it. No replacement was suggested.
Package hoa/zformat is abandoned, you should avoid using it. No replacement was suggested.
Package lexik/form-filter-bundle is abandoned, you should avoid using it. Use spiriitlabs/form-filter-bundle instead.
Package php-http/guzzle5-adapter is abandoned, you should avoid using it. Use php-http/guzzle7-adapter instead.
Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
Package scheb/2fa-qr-code is abandoned, you should avoid using it. No replacement was suggested.
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package symfony/inflector is abandoned, you should avoid using it. Use EnglishInflector from the String component instead.
Package true/punycode is abandoned, you should avoid using it. No replacement was suggested.
Package wallabag/php-mobi is abandoned, you should avoid using it. No replacement was suggested.
Package php-cs-fixer/diff is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/web-server-bundle is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Class SimpleHtmlDom\simple_html_dom_node located in ./vendor/mgargano/simplehtmldom/src/simple_html_dom.php does not comply with psr-0 autoloading standard. Skipping.
Class SimpleHtmlDom\simple_html_dom located in ./vendor/mgargano/simplehtmldom/src/simple_html_dom.php does not comply with psr-0 autoloading standard. Skipping.
100 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> bin/console cache:clear --no-warmup
// Clearing the cache for the prod environment with debug
// false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
> bin/console assets:install web --symlink --relative
Trying to install assets as relative symbolic links.
--- ------------------------ ------------------
Bundle Method / Error
--- ------------------------ ------------------
✔ NelmioApiDocBundle relative symlink
✔ CraueConfigBundle relative symlink
✔ BabDevPagerfantaBundle relative symlink
✔ FOSJsRoutingBundle relative symlink
--- ------------------------ ------------------
[OK] All assets were successfully installed.
wallabag is ready!
Logs when database doesn't exists:
Starting wallabag ...
Waiting for database ...
Configuring the Postgres database ...
ERROR: syntax error at or near "-"
LINE 1: CREATE DATABASE wallabag;
Thing is, I have no tables in my database, despite wallbag user is owner of the database and I think "of course", this will result in the 500 error. api is available tough with the mentionned URL.
One thing: if I create the database after the initial start without, the logs will be exactly the same as above, so the DB is found. Remove root credentials doesn't help either.
Any clue where to start? Thx in advance! 😉
- Lenguaje dominante
- Shell
- Estrellas
- 771
- Forks
- 168
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wallabag/docker
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 57/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Awaiting response
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
Todos los issues de wallabag/docker
Issues similares
-
source:reader type:enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stephrobert/blog-roadmap#115 ·
-
Python Volcengine provider returns failures instead of raising themPosiblemente ocupada @Ricardo-M-L la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
agent-infra/sandbox#248 ·
-
chore priority:low size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
celo-org/celopedia-skills#98 ·
Los mantenedores suelen responder en 1 día
-
Git for Windows shouldn't be locked on their `.windows.1` versionsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertogit windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jenkins-infra/packer-images#3179 ·
Los mantenedores suelen responder en 1 día
-
ready-for-pr
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
kunchenguid/firstmate#7679 · 1 comentario ·
Los mantenedores suelen responder en 1 día