New Install: "500 Internal Server Error"
Environment
- Version: 2.6.13
- Installation: Docker-compose
- PHP version:
- OS: ubuntu 22.04 (via docker)
- Database: mariadb:11.8.2-noble (docker container)
- Parameters:
app/config/parameters.yml is: database_driver: pdo_mysql
database_host: db
database_port: 3306
database_name: wallabag
database_user: wallabag
database_password: 'myDbPassword'
database_path: '%kernel.project_dir%/data/db/wallabag.sqlite'
database_table_prefix: wallabag_
database_socket: null
database_charset: utf8mb4
domain_name: 'http://wallabag.reallogic.lo'
server_name: wallabag.reallogic.lo
mailer_dsn: 'smtp://127.0.0.1'
locale: en
secret: mySecret
twofactor_sender: [email protected]
fosuser_registration: false
fosuser_confirmation: true
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: redis
redis_port: 6379
redis_path: null
redis_password: null
sentry_dsn: nullWhat steps will reproduce the bug?
With this docker-compose.yaml file:
version: '3'
services:
wallabag:
image: wallabag/wallabag:2.6.13
restart: unless-stopped
networks:
- proxy
- wallabag
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PW}
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
- SYMFONY__ENV__DATABASE_HOST=db
- SYMFONY__ENV__DATABASE_PORT=3306
- SYMFONY__ENV__DATABASE_NAME=${DB_NAME}
- SYMFONY__ENV__DATABASE_USER=${DB_USER}
- SYMFONY__ENV__DATABASE_PASSWORD=${DB_PASSWORD}
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__DATABASE_TABLE_PREFIX="wallabag_"
- SYMFONY__ENV__MAILER_DSN=smtp://127.0.0.1
- SYMFONY__ENV__FROM_EMAIL=${FROM_EMAIL}
- SYMFONY__ENV__DOMAIN_NAME=${DOMAIN_NAME}
- SYMFONY__ENV__SERVER_NAME=${SERVER_NAME}
ports:
- 80
volumes:
- ${IMAGE_LOCATION}:/var/www/wallabag/web/assets/images
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost/api/info"]
interval: 1m
timeout: 3s
depends_on:
- db
- redis
db:
image: mariadb:11.8.2-noble
restart: unless-stopped
networks:
- wallabag
environment:
- MARIADB_ROOT_PASSWORD=${MYSQL_ROOT_PW}
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_NAME}
ports:
- 3306
volumes:
- ${DATA_LOCATION}:/var/lib/mysql
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "--innodb_initialized"]
interval: 20s
timeout: 3s
redis:
image: redis:alpine
restart: unless-stopped
networks:
- wallabag
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 20s
timeout: 3s
networks:
wallabag:
external: false
proxy:
external:
name: proxyThere is an appropriate .env file setting the variables.
All services / containers start up and seem to be working just fine. No errors are reported in any of the containers' logs.
When I navigate to http://wallabag.reallogic.lo the browser is redirected to http:/wallabag.reallogic.lo/login. At this point, I receive an "Oops! An Error Has Occurred The server returned a "500 Internal Server Error"." message.
The last few lines of the wallabag service log are:
wallabag_1 | ::1 - - [09/Jul/2025:23:44:06 +0000] "GET /api/info HTTP/1.1" 200 81 "-" "Wget"
wallabag_1 | ::1 - - [09/Jul/2025:23:45:06 +0000] "GET /api/info HTTP/1.1" 200 81 "-" "Wget"
wallabag_1 | ::ffff:172.28.0.3 - - [09/Jul/2025:23:45:57 +0000] "GET /login HTTP/1.0" 500 519 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36"
wallabag_1 | ::1 - - [09/Jul/2025:23:46:06 +0000] "GET /api/info HTTP/1.1" 200 81 "-" "Wget"The server does log the 500 amongst all the 200s for the heartbeat.
Navigating the browser to http://wallabag.reallogic.lo/api/info I receive:
{"appname":"wallabag","version":"2.6.13","allowed_registration":false}which looks like a valid response.
Results are the same if I use Firefox or Chromium. Results are the same if I go through the nginx proxy container or if I have the wallabag container expose port 80 directly.
Source: wallabag/wallabag