Hi there,
I’m totally new to this platform and I hope that someone can help me. I’m actually trying to install the bookstack application via docker-compose as described on hub-docker , but I always get a time-out error.
My environment:
Intel NUC, with Ubuntu 22.04.1 LTS (Codename „jammy“)
There is nothing else running on the NUC.
Error description
I always get a 504 Gateway time-out error:
thierry@HA:/opt$ curl -I http://192.168.0.42:6875
HTTP/1.1 504 Gateway Time-out
Server: nginx
Date: Mon, 03 Oct 2022 12:50:35 GMT
Content-Type: text/html
Content-Length: 160
Connection: keep-alive
LOG Entries
NGINX access.log
192.168.0.42 - - [03/Oct/2022:12:50:35 +0000] “HEAD / HTTP/1.1” 504 0 “-” "curl/7.81.0“
NGINX error.log
2022/10/03 12:50:35 [error] 249#249: *1 upstream timed out (110: Operation timed out) while reading response header from upstream, client: 192.168.0.42, server
: _, request: “HEAD / HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: "192.168.0.42:6875“
APP log: /app/www/storage/logs/laravel.log
php_network_getaddresses: getaddrinfo failed: Try again at /app/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70)
[stacktrace]
…
89 lines of trace
My docker-compose.yaml
version: ‘3.0’
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack-db
- DB_USER=bookstack
- DB_PASS=VandoB45
- DB_DATABASE=bookstackapp
volumes:
- /opt/bookstack:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=VandoB45
- TZ=Europe/Zurich
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=VandB45
volumes:
- /opt/bookstack/db:/config
restart: unless-stopped
All services are up and running without errors (except the one in laravel.log). I checked the PUID and PGID, they are correct for the user launching docker-compose.
I also tried the APP_URL configuration, but without success.
I tried every possible configuration like described on stackoverflow (nginx-close-upstream-connection-after-request or nginx-reverse-proxy-causing-504-gateway-timeout/36589120#36589120 and many more)
I’m at a loss. Any good advice?
Thanks in advance.
Thierry