mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-08 11:19:36 +03:00
Bookstack app not working, DB error: Aborted connection 4 to db: 'unconnected' user: 'unauthenticated' host: 'bookstack.bookstack' #5125
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xypriz on GitHub (Jan 16, 2025).
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
Hi,
I'm trying to get Bookstack working using Docker/Portainer but without success yet. I'm deploying a stack with the following info (compose file):
When opening the bookstack URL, the page seem to load but then quickly I see this:
The log for the bookstack container (database seems to be created together with its tables):
When checking the .err file in the bookstack_db_data/databases directory I see this:
I tried to solve this problem myself but weren't able to do so yet. I found some other posts suggesting that I should add "command: --character-set-server=utf8mb4 --collation-server=utf8mb4_bin" to the bookstack_db section of the compose file, but that doesn't seem to work.
Can someone please help? Thanks in advance!
Exact BookStack Version
latest
Log Content
No response
Hosting Environment
Turnkey Core (latest)
Docker (latest)
Portainer (latest)
@Xypriz commented on GitHub (Jan 16, 2025):
Found it! The APP_KEY must include base64: in the string.
So this is the right format:
@Foxsly commented on GitHub (Jan 24, 2025):
I just wanted to say thank you - I had the same issue and could not figure out what was going wrong.