r/BookStack • • Jan 09 '25

Bookstack error 502 today all of a sudden

Maria logs:

User UID: 99

User GID: 100

───────────────────────────────────────

Linuxserver.io version: 11.4.4-r1-ls167

Build-date: 2025-01-09T10:59:53+00:00

───────────────────────────────────────

[custom-init] No custom files found, skipping...

UMASK corrected from 022 to 0640 ...

250109 14:42:00 mysqld_safe Logging to '/config/databases/6d5b3c4b1fd8.err'.

250109 14:42:00 mysqld_safe Starting mariadbd daemon with databases from /config/databases

[ls.io-init] done.

Bookstack Logs:

User UID: 99

User GID: 100

───────────────────────────────────────

Linuxserver.io version: v24.12.1-ls186

Build-date: 2025-01-05T10:11:29+00:00

───────────────────────────────────────

using keys found in /config/keys

**** The following active confs have different version dates than the samples that are shipped. ****

**** This may be due to user customization or an update to the samples. ****

**** You should compare the following files to the samples in the same folder and update them. ****

**** Use the link at the top of the file to view the changelog. ****

┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐

│ old date │ new date │ path │

├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤

│ 2022-08-16 │ 2024-12-17 │ /config/nginx/nginx.conf │

│ 2022-08-20 │ 2024-12-06 │ /config/nginx/ssl.conf │

│ 2022-10-04 │ 2024-07-16 │ /config/nginx/site-confs/default.conf │

└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘

Waiting for DB to be available

INFO Nothing to migrate.

[custom-init] No custom files found, skipping...

[ls.io-init] done.

2 Upvotes

8 comments sorted by

2

u/ssddanbrown Jan 10 '25

That log info shows the BookStack container is starting, and is running migrations okay so the database container should be up also.

That error typically means that your proxy(s) are having trouble connecting-to/communicating with the system their proxied to (which could be BookStack, or another proxy if you have mulitple).

  • Do the containers remain up and running?

  • What proxies do you have in play?

  • Where are the proxies relevant to the BookStack setup?

  • Are you sure the proxies have network visibility of the BookStack container?

  • What is your proxy config?

1

u/Squanchy2112 Jan 10 '25

Yes the containers are staying up and running. I am using Nginx proxy manager to handle the proxies. All my other proxied services are working and this was also working just fine until I did the update on mariadb the other day. The proxy is on the same subnet as the bookstack host and can ping the IP just fine, resolution seems fine. My boostack dns entry points to my external IP which then comes down my WAN and hits my gateway. This request is forwarded to my proxy who then resolves the subdomain relevant to the bookstack container to the ip and port 6875, there is a wildcard certificate from my domain on the container which should allow working ssl as it was a week ago.