[Bug Report]: #2486

Closed
opened 2026-02-05 04:18:23 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @matthijsbro on GitHub (Nov 12, 2021).

Describe the Bug

Deploying via the suggested docker-compose.yml shows a white screen and in the logs a database connection error like below.
The solution is to change

DB_PASS=

to

DB_PASSWORD=
  1   Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[HY000] [1045] Access denied for user 'bookstack'@'bookstack.bookstack_default' (using password: YES)"),
      /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18,

  2   Doctrine\DBAL\Driver\PDO\Exception::new(),
      /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44,
``` @ @

### Steps to Reproduce

docker-compose up  with the suggested docker-compose.yml

### Expected Behaviour

The app works and shows the login screen.

### Screenshots or Additional Context

_No response_

### Exact BookStack Version

21.10

### PHP Version

_No response_

### Hosting Environment

rpi / docker
Originally created by @matthijsbro on GitHub (Nov 12, 2021). ### Describe the Bug Deploying via the suggested docker-compose.yml shows a white screen and in the logs a database connection error like below. The solution is to change ``` DB_PASS= ``` to ``` DB_PASSWORD= ``` ``` 1 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[HY000] [1045] Access denied for user 'bookstack'@'bookstack.bookstack_default' (using password: YES)"), /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, 2 Doctrine\DBAL\Driver\PDO\Exception::new(), /var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44, ``` @ @ ### Steps to Reproduce docker-compose up with the suggested docker-compose.yml ### Expected Behaviour The app works and shows the login screen. ### Screenshots or Additional Context _No response_ ### Exact BookStack Version 21.10 ### PHP Version _No response_ ### Hosting Environment rpi / docker
OVERLORD added the 🐛 Bug label 2026-02-05 04:18:23 +03:00
Author
Owner

@matthijsbro commented on GitHub (Nov 12, 2021):

never mind,I did a pull request on the file. (sorry I'm new to this)

@matthijsbro commented on GitHub (Nov 12, 2021): never mind,I did a pull request on the file. (sorry I'm new to this)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2486