Closed jakarina closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Likely the same kind of scenario as #125 since you're on windows.
Likely the same kind of scenario as #125 since you're on windows.
@ssddanbrown you are right. I've resolved the issue by inspiring some stuff from #125.
This is definitely an issue with Windows + WSL2 (Windows Subsystem for Linux).
I changed the path-to-data from ./bookstack_app_data:/config
to bookstack_app_data:/config
and also ./bookstack_db_data:/config
to bookstack_db_data:/config
very end of the yml file also added:
volumes:
bookstackdata:
bookstackdbdata:
By doing this, docker-compose created the volume inside WSL filesystem not in the windows current folder. To ease up the solution for people, I also added final version of docker-compose.yml below:
---
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=http://localhost:6875
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=123456789
- DB_DATABASE=bookstackapp
volumes:
- bookstack_app_data:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=123456789
- TZ=Europe/London
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=123456789
volumes:
- bookstack_db_data:/config
restart: unless-stopped
volumes:
bookstackdata:
bookstackdbdata:
@ssddanbrown thanks for your help.
Is there an existing issue for this?
Current Behavior
After completing docker installation, I am able to access to login page. After login attempt with initial admin email and password ("admin@admin.com" and "password"), I have a page with "an unknown error".
docker-compose.yml file:
Expected Behavior
If I am to write wrong password on login page, it shows wrong password info. However, when I input the correct initial/default admin password, I get the following screen.
Screenshot
Steps To Reproduce
1- Create a folder named "bookstack" 2- Open terminal and navigate to bookstack folder. 3- Create docker-compose.yml file with the given code above. 4- Run "docker-compose up -d" 5- Navigate to "http://localhost:6875" on the web browser. 6- Enter email and password
Environment
CPU architecture
x86-64
Docker creation
Container logs