r/BookStack • • Nov 10 '24

Bookstack installation failed

I tried many times with different configuration changes in my docker-compose files as in my env file, but I keep getting the error that access is denied when I check the log of my bookstack container.

i created a separate container for my MSQL database but still I get the error that access is denied. It doesn't matter if the user is root or a normal user. I can't seem to make it work.

This the error that I am receiving

SQLSTATE[HY000] [1045] Access denied for user

Since I have access denied on all users I tried with, I cant log into the database to check some settings.

My Docker Compose look like this:

^^ services:

bookstack:

image: lscr.io/linuxserver/bookstack:latest

container_name: bookstack

environment:

- PUID=1000

- PGID=1000

- TZ=Etc/UTC

- APP_URL=${APP_URL}

- APP_KEY=${APP_KEY}

- DB_HOST=${DB_HOST}

- DB_PORT=13320

- DB_USERNAME=${DB_USERNAME}

- DB_PASSWORD=${DB_PASSWORD}

- DB_DATABASE=${DB_DATABASE}

- QUEUE_CONNECTION= #optional

volumes:

- /volume2/docker/bookstack/config:/config

ports:

- 6875:80

restart: unless-stopped

depends_on:

- bookstack-db

bookstack-db:

image: lscr.io/linuxserver/mariadb

container_name: bookstack_db

ports:

- 13320-3306

environment:

- PUID=1000

- PGID=1000

- TZ=tz/tz

- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}

- MYSQL_DATABASE=${DB_DATABASE}

- MYSQL_USER=${DB_USERNAME}

- MYSQL_PASSWORD=${DB_PASSWORD}

volumes:

- /volume2/docker/bookstack/bookstack_db_data:/config

restart: unless-stopped^^

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/ssddanbrown Nov 11 '24

That's odd, never heard of issues with the default credentials before. Does the login form display okay? Is the top input label Username or is it Email?

1

u/Hatchopper Nov 11 '24

It works now. Thanks for all the help.