502 Bad Gateway on /healthcheck
Hello everyone,
I wanted to set up the OnlyOffice Document Server via Docker to use it with my Nextcloud. However, I get the following message when I try to connect it to Nextcloud.
Fehler beim Anschließen (Server error: `GET https://xxx.com/healthcheck` resulted in a `502 Bad Gateway` response:
502 Bad Gateway
502 Bad Gateway
ngin (truncated...)
)
root@nextcloud:/docker/onlyoffice-documentserver# curl -I http://127.0.0.1:7080/welcome/
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 28 Jan 2025 18:52:32 GMT
Content-Type: text/html
Content-Length: 4948
Last-Modified: Tue, 28 Jan 2025 18:48:07 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: "67992667-1354"
Expires: Wed, 28 Jan 2026 18:52:32 GMT
Cache-Control: max-age=31536000
Accept-Ranges: bytes
root@nextcloud:/docker/onlyoffice-documentserver# curl -I http://127.0.0.1:7080/healthcheck/
HTTP/1.1 502 Bad Gateway
Server: nginx
Date: Tue, 28 Jan 2025 18:52:38 GMT
Content-Type: text/html
Content-Length: 150
Connection: keep-alive
This is my configuration. Did I make any mistakes? (I am using Nginx Proxy Manager as a reverse proxy.)
docker-compose.yml
services:
onlyoffice-documentserver:
image: onlyoffice/documentserver
container_name: onlyoffice-documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
- DB_TYPE=${DB_TYPE}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- AMQP_URI=${AMQP_URI}
# Uncomment strings below to enable the JSON Web Token validation.
- JWT_ENABLED=true
- JWT_SECRET=${JWT_SECRET}
#- JWT_HEADER=Authorization
#- JWT_IN_BODY=true
ports:
- '7080:80'
- '7443:443'
stdin_open: true
restart: always
stop_grace_period: 60s
volumes:
- ./onlyoffice/Data:/var/www/onlyoffice/Data
- ./onlyoffice/log:/var/log/onlyoffice
- ./onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
- ./onlyoffice/example_files:/var/www/onlyoffice/documentserver-example/public/files
- ./onlyoffice/fonts:/usr/share/fonts
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- '5672'
onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:12
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
expose:
- '5432'
volumes:
- ./pgsql_data:/var/lib/postgresql
.env
DB_TYPE=postgres
DB_HOST=onlyoffice-postgresql
DB_PORT=5432
POSTGRES_DB=onlyoffice
POSTGRES_USER=onlyoffice
POSTGRES_PASSWORD=<PASSWORD>
AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
JWT_SECRET=<SECRET>
Hello, Please check if the address you specify in the ONLYOFFICE connector's settings is correct and can be resolved and reached by both the Nextcloud server and the browser.
Hello @SergeyKorneyev,
Where can I set the address for ONLYOFFICE? And yes, it is accessible both from the server and the browser.
@TheDoDoo I just suggested checking the address(es) in the connector's settings in Nextcloud's web interface: https://github.com/ONLYOFFICE/onlyoffice-nextcloud?tab=readme-ov-file#configuring-onlyoffice-app-for-nextcloud
Hello @SergeyKorneyev,
I don't understand what I am doing wrong. The address is publicly accessible, but Nextcloud is trying to access "/healthcheck," which is not available. Don't worry, I will change the password and other details later. I hope you can help me.
root@nextcloud:/docker/onlyoffice-documentserver# cat .env
DB_TYPE=postgres
DB_HOST=onlyoffice-postgresql
DB_PORT=5432
POSTGRES_DB=onlyoffice
POSTGRES_USER=onlyoffice
POSTGRES_PASSWORD=8uji2j48931z89i4ojnh894u389uj54i8oz4589z3hui435
AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
JWT_SECRET=2655c849b32614646c788e7fd7128f5b137537f121860bdd384c061d50cf0aa4b1fd10996bd7141b94adad2327d141817a4f78916b9e5bfc0c7149ac90b3a86d
root@nextcloud:/docker/onlyoffice-documentserver# cat docker-compose.yml
services:
onlyoffice-documentserver:
image: onlyoffice/documentserver
container_name: onlyoffice-documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
- DB_TYPE=${DB_TYPE}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- AMQP_URI=${AMQP_URI}
# Uncomment strings below to enable the JSON Web Token validation.
- JWT_ENABLED=true
- JWT_SECRET=${JWT_SECRET}
- JWT_HEADER=Authorization
- JWT_IN_BODY=true
ports:
- '7080:80'
- '7443:443'
stdin_open: true
restart: always
stop_grace_period: 60s
volumes:
- ./onlyoffice/Data:/var/www/onlyoffice/Data
- ./onlyoffice/log:/var/log/onlyoffice
- ./onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files
- ./onlyoffice/example_files:/var/www/onlyoffice/documentserver-example/public/files
- ./onlyoffice/fonts:/usr/share/fonts
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- '5672'
onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:12
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
expose:
- '5432'
volumes:
- ./pgsql_data:/var/lib/postgresql
root@nextcloud:/docker/onlyoffice-documentserver#
root@nextcloud:/docker/onlyoffice-documentserver# docker compose up -d; docker compose logs -f
[+] Running 4/4
✔ Network onlyoffice-documentserver_default Created 0.0s
✔ Container onlyoffice-postgresql Started 0.8s
✔ Container onlyoffice-rabbitmq Started 0.8s
✔ Container onlyoffice-documentserver Started 0.9s
onlyoffice-postgresql | The files belonging to this database system will be owned by user "postgres".
onlyoffice-postgresql | This user must also own the server process.
onlyoffice-postgresql |
onlyoffice-postgresql | The database cluster will be initialized with locale "en_US.utf8".
onlyoffice-postgresql | The default database encoding has accordingly been set to "UTF8".
onlyoffice-postgresql | The default text search configuration will be set to "english".
onlyoffice-postgresql |
onlyoffice-postgresql | Data page checksums are disabled.
onlyoffice-postgresql |
onlyoffice-postgresql | fixing permissions on existing directory /var/lib/postgresql/data ... ok
onlyoffice-postgresql | creating subdirectories ... ok
onlyoffice-postgresql | selecting dynamic shared memory implementation ... posix
onlyoffice-postgresql | selecting default max_connections ... 100
onlyoffice-postgresql | selecting default shared_buffers ... 128MB
onlyoffice-postgresql | selecting default time zone ... Etc/UTC
onlyoffice-postgresql | creating configuration files ... ok
onlyoffice-postgresql | running bootstrap script ... ok
onlyoffice-rabbitmq | =INFO REPORT==== 12-Apr-2025::09:14:45.827823 ===
onlyoffice-rabbitmq | alarm_handler: {set,{system_memory_high_watermark,[]}}
onlyoffice-postgresql | performing post-bootstrap initialization ... ok
onlyoffice-postgresql | syncing data to disk ... ok
onlyoffice-postgresql |
onlyoffice-postgresql |
onlyoffice-postgresql | Success. You can now start the database server using:
onlyoffice-postgresql |
onlyoffice-postgresql | pg_ctl -D /var/lib/postgresql/data -l logfile start
onlyoffice-postgresql |
onlyoffice-postgresql | initdb: warning: enabling "trust" authentication for local connections
onlyoffice-postgresql | You can change this by editing pg_hba.conf or using the option -A, or
onlyoffice-postgresql | --auth-local and --auth-host, the next time you run initdb.
onlyoffice-postgresql | waiting for server to start....2025-04-12 09:14:46.381 UTC [48] LOG: starting PostgreSQL 12.22 (Debian 12.22-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
onlyoffice-postgresql | 2025-04-12 09:14:46.385 UTC [48] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
onlyoffice-postgresql | 2025-04-12 09:14:46.411 UTC [49] LOG: database system was shut down at 2025-04-12 09:14:46 UTC
onlyoffice-postgresql | 2025-04-12 09:14:46.419 UTC [48] LOG: database system is ready to accept connections
onlyoffice-postgresql | done
onlyoffice-postgresql | server started
onlyoffice-postgresql | CREATE DATABASE
onlyoffice-postgresql |
onlyoffice-postgresql |
onlyoffice-postgresql | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
onlyoffice-postgresql |
onlyoffice-postgresql | 2025-04-12 09:14:46.710 UTC [48] LOG: received fast shutdown request
onlyoffice-postgresql | waiting for server to shut down....2025-04-12 09:14:46.714 UTC [48] LOG: aborting any active transactions
onlyoffice-postgresql | 2025-04-12 09:14:46.716 UTC [48] LOG: background worker "logical replication launcher" (PID 55) exited with exit code 1
onlyoffice-postgresql | 2025-04-12 09:14:46.716 UTC [50] LOG: shutting down
onlyoffice-postgresql | 2025-04-12 09:14:46.745 UTC [48] LOG: database system is shut down
onlyoffice-postgresql | done
onlyoffice-postgresql | server stopped
onlyoffice-postgresql |
onlyoffice-postgresql | PostgreSQL init process complete; ready for start up.
onlyoffice-postgresql |
onlyoffice-postgresql | 2025-04-12 09:14:46.830 UTC [1] LOG: starting PostgreSQL 12.22 (Debian 12.22-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
onlyoffice-postgresql | 2025-04-12 09:14:46.831 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
onlyoffice-postgresql | 2025-04-12 09:14:46.831 UTC [1] LOG: listening on IPv6 address "::", port 5432
onlyoffice-postgresql | 2025-04-12 09:14:46.839 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
onlyoffice-postgresql | 2025-04-12 09:14:46.863 UTC [77] LOG: database system was shut down at 2025-04-12 09:14:46 UTC
onlyoffice-postgresql | 2025-04-12 09:14:46.889 UTC [1] LOG: database system is ready to accept connections
onlyoffice-rabbitmq | 2025-04-12 09:14:47.765926+00:00 [notice] <0.45.0> Application syslog exited with reason: stopped
onlyoffice-rabbitmq | 2025-04-12 09:14:47.769775+00:00 [notice] <0.216.0> Logging: switching to configured handler(s); following messages may not be visible in this log output
onlyoffice-rabbitmq | 2025-04-12 09:14:47.770445+00:00 [notice] <0.216.0> Logging: configured log handlers are now ACTIVE
onlyoffice-rabbitmq | 2025-04-12 09:14:47.776296+00:00 [info] <0.216.0> ra: starting system quorum_queues
onlyoffice-rabbitmq | 2025-04-12 09:14:47.776409+00:00 [info] <0.216.0> starting Ra system: quorum_queues in directory: /var/lib/rabbitmq/mnesia/rabbit@2f0a04173b5c/quorum/rabbit@2f0a04173b5c
onlyoffice-rabbitmq | 2025-04-12 09:14:47.817758+00:00 [info] <0.229.0> ra system 'quorum_queues' running pre init for 0 registered servers
onlyoffice-rabbitmq | 2025-04-12 09:14:47.824592+00:00 [info] <0.230.0> ra: meta data store initialised for system quorum_queues. 0 record(s) recovered
onlyoffice-rabbitmq | 2025-04-12 09:14:47.834601+00:00 [notice] <0.235.0> WAL: ra_log_wal init, open tbls: ra_log_open_mem_tables, closed tbls: ra_log_closed_mem_tables
onlyoffice-rabbitmq | 2025-04-12 09:14:47.847519+00:00 [info] <0.237.0> ra_system_recover: ra system 'quorum_queues' server recovery strategy rabbit_quorum_queue:system_recover
onlyoffice-rabbitmq | 2025-04-12 09:14:47.847625+00:00 [info] <0.237.0> [rabbit_quorum_queue:system_recover/1] rabbit not booted, skipping queue recovery
onlyoffice-rabbitmq | 2025-04-12 09:14:47.847804+00:00 [info] <0.216.0> ra: starting system coordination
onlyoffice-rabbitmq | 2025-04-12 09:14:47.847884+00:00 [info] <0.216.0> starting Ra system: coordination in directory: /var/lib/rabbitmq/mnesia/rabbit@2f0a04173b5c/coordination/rabbit@2f0a04173b5c
onlyoffice-rabbitmq | 2025-04-12 09:14:47.848806+00:00 [info] <0.243.0> ra system 'coordination' running pre init for 0 registered servers
onlyoffice-rabbitmq | 2025-04-12 09:14:47.849408+00:00 [info] <0.244.0> ra: meta data store initialised for system coordination. 0 record(s) recovered
onlyoffice-rabbitmq | 2025-04-12 09:14:47.849620+00:00 [notice] <0.249.0> WAL: ra_coordination_log_wal init, open tbls: ra_coordination_log_open_mem_tables, closed tbls: ra_coordination_log_closed_mem_tables
onlyoffice-rabbitmq | 2025-04-12 09:14:47.854225+00:00 [info] <0.216.0> ra: starting system coordination
onlyoffice-rabbitmq | 2025-04-12 09:14:47.854285+00:00 [info] <0.216.0> starting Ra system: coordination in directory: /var/lib/rabbitmq/mnesia/rabbit@2f0a04173b5c/coordination/rabbit@2f0a04173b5c
onlyoffice-documentserver | Connection to onlyoffice-postgresql (172.19.0.2) 5432 port [tcp/postgresql] succeeded!
onlyoffice-postgresql | 2025-04-12 09:14:47.931 UTC [85] FATAL: password authentication failed for user "onlyoffice"
onlyoffice-postgresql | 2025-04-12 09:14:47.931 UTC [85] DETAIL: Password does not match for user "onlyoffice".
onlyoffice-postgresql | Connection matched pg_hba.conf line 99: "host all all all md5"
onlyoffice-documentserver | psql: error: connection to server at "onlyoffice-postgresql" (172.19.0.2), port 5432 failed: FATAL: password authentication failed for user "onlyoffice"
onlyoffice-rabbitmq | 2025-04-12 09:14:47.950807+00:00 [notice] <0.253.0> RabbitMQ metadata store: candidate -> leader in term: 1 machine version: 1
onlyoffice-rabbitmq | 2025-04-12 09:14:48.070944+00:00 [info] <0.216.0>
onlyoffice-rabbitmq | 2025-04-12 09:14:48.070944+00:00 [info] <0.216.0> Starting RabbitMQ 4.0.7 on Erlang 27.3 [jit]
onlyoffice-rabbitmq | 2025-04-12 09:14:48.070944+00:00 [info] <0.216.0> Copyright (c) 2007-2024 Broadcom Inc and/or its subsidiaries
onlyoffice-rabbitmq | 2025-04-12 09:14:48.070944+00:00 [info] <0.216.0> Licensed under the MPL 2.0. Website: https://rabbitmq.com
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | ## ## RabbitMQ 4.0.7
onlyoffice-rabbitmq | ## ##
onlyoffice-rabbitmq | ########## Copyright (c) 2007-2024 Broadcom Inc and/or its subsidiaries
onlyoffice-rabbitmq | ###### ##
onlyoffice-rabbitmq | ########## Licensed under the MPL 2.0. Website: https://rabbitmq.com
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | Erlang: 27.3 [jit]
onlyoffice-rabbitmq | TLS Library: OpenSSL - OpenSSL 3.3.3 11 Feb 2025
onlyoffice-rabbitmq | Release series support status: see https://www.rabbitmq.com/release-information
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | Doc guides: https://www.rabbitmq.com/docs
onlyoffice-rabbitmq | Support: https://www.rabbitmq.com/docs/contact
onlyoffice-rabbitmq | Tutorials: https://www.rabbitmq.com/tutorials
onlyoffice-rabbitmq | Monitoring: https://www.rabbitmq.com/docs/monitoring
onlyoffice-rabbitmq | Upgrading: https://www.rabbitmq.com/docs/upgrade
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | Logs: <stdout>
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | Config file(s): /etc/rabbitmq/conf.d/10-defaults.conf
onlyoffice-rabbitmq | /etc/rabbitmq/conf.d/20-management_agent.disable_metrics_collector.conf
onlyoffice-rabbitmq |
onlyoffice-rabbitmq | Starting broker...2025-04-12 09:14:48.072332+00:00 [info] <0.216.0>
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> node : rabbit@2f0a04173b5c
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> home dir : /var/lib/rabbitmq
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> config file(s) : /etc/rabbitmq/conf.d/10-defaults.conf
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> : /etc/rabbitmq/conf.d/20-management_agent.disable_metrics_collector.conf
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> cookie hash : mZRf6RLocnMKyIMz3uIVaw==
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> log(s) : <stdout>
onlyoffice-rabbitmq | 2025-04-12 09:14:48.072332+00:00 [info] <0.216.0> data dir : /var/lib/rabbitmq/mnesia/rabbit@2f0a04173b5c
onlyoffice-rabbitmq | 2025-04-12 09:14:48.185693+00:00 [info] <0.216.0> Running boot step pre_boot defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.185771+00:00 [info] <0.216.0> Running boot step rabbit_global_counters defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.186194+00:00 [info] <0.216.0> Running boot step rabbit_osiris_metrics defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.186310+00:00 [info] <0.216.0> Running boot step rabbit_core_metrics defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.188806+00:00 [info] <0.216.0> Running boot step rabbit_alarm defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.196602+00:00 [info] <0.283.0> Memory high watermark set to 115876 MiB (121505538048 bytes) of 193127 MiB (202509230080 bytes) total
onlyoffice-rabbitmq | 2025-04-12 09:14:48.199620+00:00 [info] <0.285.0> Enabling free disk space monitoring (disk free space: 95520612352, total memory: 202509230080)
onlyoffice-rabbitmq | 2025-04-12 09:14:48.199734+00:00 [info] <0.285.0> Disk free limit set to 50MB
onlyoffice-rabbitmq | 2025-04-12 09:14:48.201426+00:00 [info] <0.216.0> Running boot step code_server_cache defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.201542+00:00 [info] <0.216.0> Running boot step file_handle_cache defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.205888+00:00 [info] <0.288.0> Limiting to approx 524191 file handles (471769 sockets)
onlyoffice-rabbitmq | 2025-04-12 09:14:48.206001+00:00 [info] <0.289.0> FHC read buffering: OFF
onlyoffice-rabbitmq | 2025-04-12 09:14:48.206087+00:00 [info] <0.289.0> FHC write buffering: ON
onlyoffice-rabbitmq | 2025-04-12 09:14:48.206379+00:00 [info] <0.216.0> Running boot step worker_pool defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.206474+00:00 [info] <0.270.0> Will use 36 processes for default worker pool
onlyoffice-rabbitmq | 2025-04-12 09:14:48.206540+00:00 [info] <0.270.0> Starting worker pool 'worker_pool' with 36 processes in it
onlyoffice-rabbitmq | 2025-04-12 09:14:48.207563+00:00 [info] <0.216.0> Running boot step rabbit_registry defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.207671+00:00 [info] <0.216.0> Running boot step database defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.208006+00:00 [info] <0.216.0> Peer discovery: configured backend: rabbit_peer_discovery_classic_config
onlyoffice-rabbitmq | 2025-04-12 09:14:48.209034+00:00 [notice] <0.271.0> Feature flags: attempt to enable `quorum_queue_non_voters`...
onlyoffice-rabbitmq | 2025-04-12 09:14:48.216682+00:00 [notice] <0.271.0> Feature flags: `quorum_queue_non_voters` enabled
onlyoffice-rabbitmq | 2025-04-12 09:14:48.216838+00:00 [notice] <0.271.0> Feature flags: attempt to enable `rabbitmq_4.0.0`...
onlyoffice-rabbitmq | 2025-04-12 09:14:48.223833+00:00 [notice] <0.271.0> Feature flags: `rabbitmq_4.0.0` enabled
onlyoffice-rabbitmq | 2025-04-12 09:14:48.223937+00:00 [notice] <0.271.0> Feature flags: attempt to enable `message_containers_deaths_v2`...
onlyoffice-rabbitmq | 2025-04-12 09:14:48.230877+00:00 [notice] <0.271.0> Feature flags: `message_containers_deaths_v2` enabled
onlyoffice-rabbitmq | 2025-04-12 09:14:48.231003+00:00 [notice] <0.271.0> Feature flags: attempt to enable `rabbit_exchange_type_local_random`...
onlyoffice-rabbitmq | 2025-04-12 09:14:48.238433+00:00 [notice] <0.271.0> Feature flags: `rabbit_exchange_type_local_random` enabled
onlyoffice-rabbitmq | 2025-04-12 09:14:48.238594+00:00 [info] <0.216.0> DB: virgin node -> run peer discovery
onlyoffice-rabbitmq | 2025-04-12 09:14:48.238647+00:00 [warning] <0.216.0> Classic peer discovery backend: list of nodes does not contain the local node []
onlyoffice-rabbitmq | 2025-04-12 09:14:48.246109+00:00 [notice] <0.45.0> Application mnesia exited with reason: stopped
onlyoffice-documentserver | Connection to onlyoffice-postgresql (172.19.0.2) 5432 port [tcp/postgresql] succeeded!
onlyoffice-documentserver | Waiting for connection to the onlyoffice-rabbitmq host on port 5672
onlyoffice-rabbitmq | 2025-04-12 09:14:48.401341+00:00 [info] <0.216.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
onlyoffice-rabbitmq | 2025-04-12 09:14:48.401452+00:00 [info] <0.216.0> Successfully synced tables from a peer
onlyoffice-rabbitmq | 2025-04-12 09:14:48.401577+00:00 [info] <0.216.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
onlyoffice-rabbitmq | 2025-04-12 09:14:48.401717+00:00 [info] <0.216.0> Successfully synced tables from a peer
onlyoffice-rabbitmq | 2025-04-12 09:14:48.413414+00:00 [info] <0.216.0> Waiting for Mnesia tables for 30000 ms, 9 retries left
onlyoffice-rabbitmq | 2025-04-12 09:14:48.413526+00:00 [info] <0.216.0> Successfully synced tables from a peer
onlyoffice-rabbitmq | 2025-04-12 09:14:48.413700+00:00 [info] <0.216.0> Running boot step tracking_metadata_store defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.413806+00:00 [info] <0.508.0> Setting up a table for connection tracking on this node: tracked_connection
onlyoffice-rabbitmq | 2025-04-12 09:14:48.413884+00:00 [info] <0.508.0> Setting up a table for per-vhost connection counting on this node: tracked_connection_per_vhost
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414010+00:00 [info] <0.508.0> Setting up a table for per-user connection counting on this node: tracked_connection_per_user
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414121+00:00 [info] <0.508.0> Setting up a table for channel tracking on this node: tracked_channel
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414203+00:00 [info] <0.508.0> Setting up a table for channel tracking on this node: tracked_channel_per_user
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414291+00:00 [info] <0.216.0> Running boot step networking_metadata_store defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414419+00:00 [info] <0.216.0> Running boot step feature_flags defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414560+00:00 [info] <0.216.0> Running boot step codec_correctness_check defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414610+00:00 [info] <0.216.0> Running boot step external_infrastructure defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414674+00:00 [info] <0.216.0> Running boot step rabbit_event defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414793+00:00 [info] <0.216.0> Running boot step rabbit_auth_mechanism_amqplain defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414872+00:00 [info] <0.216.0> Running boot step rabbit_auth_mechanism_anonymous defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.414944+00:00 [info] <0.216.0> Running boot step rabbit_auth_mechanism_cr_demo defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415061+00:00 [info] <0.216.0> Running boot step rabbit_auth_mechanism_plain defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415138+00:00 [info] <0.216.0> Running boot step rabbit_exchange_type_direct defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415215+00:00 [info] <0.216.0> Running boot step rabbit_exchange_type_fanout defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415277+00:00 [info] <0.216.0> Running boot step rabbit_exchange_type_headers defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415343+00:00 [info] <0.216.0> Running boot step rabbit_exchange_type_local_random defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415413+00:00 [info] <0.216.0> Running boot step rabbit_exchange_type_topic defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415519+00:00 [info] <0.216.0> Running boot step rabbit_priority_queue defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415606+00:00 [info] <0.216.0> Priority queues enabled, real BQ is rabbit_variable_queue
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415746+00:00 [info] <0.216.0> Running boot step kernel_ready defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.415811+00:00 [info] <0.216.0> Running boot step pg_local_amqp_connection defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.420991+00:00 [info] <0.216.0> Running boot step pg_local_amqp_session defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.421109+00:00 [info] <0.216.0> Running boot step rabbit_sysmon_minder defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.421245+00:00 [info] <0.216.0> Running boot step rabbit_epmd_monitor defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.421849+00:00 [info] <0.517.0> epmd monitor knows us, inter-node communication (distribution) port: 25672
onlyoffice-rabbitmq | 2025-04-12 09:14:48.421949+00:00 [info] <0.216.0> Running boot step guid_generator defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.425923+00:00 [info] <0.216.0> Running boot step rabbit_node_monitor defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426163+00:00 [info] <0.521.0> Starting rabbit_node_monitor (in ignore mode)
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426299+00:00 [info] <0.216.0> Running boot step delegate_sup defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426811+00:00 [info] <0.216.0> Running boot step rabbit_fifo_dlx_sup defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426899+00:00 [info] <0.216.0> Running boot step core_initialized defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426941+00:00 [info] <0.216.0> Running boot step rabbit_channel_tracking_handler defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.426992+00:00 [info] <0.216.0> Running boot step rabbit_classic_queue defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.427087+00:00 [info] <0.216.0> Running boot step rabbit_connection_tracking_handler defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.427187+00:00 [info] <0.216.0> Running boot step rabbit_definitions_hashing defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.427251+00:00 [info] <0.216.0> Running boot step rabbit_exchange_parameters defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.565833+00:00 [info] <0.216.0> Running boot step rabbit_policies defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566294+00:00 [info] <0.216.0> Running boot step rabbit_policy defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566385+00:00 [info] <0.216.0> Running boot step rabbit_quorum_memory_manager defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566451+00:00 [info] <0.216.0> Running boot step rabbit_quorum_queue defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566556+00:00 [info] <0.216.0> Running boot step rabbit_stream_coordinator defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566735+00:00 [info] <0.216.0> Running boot step rabbit_vhost_limit defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566840+00:00 [info] <0.216.0> Running boot step rabbit_mgmt_db_handler defined by app rabbitmq_management_agent
onlyoffice-rabbitmq | 2025-04-12 09:14:48.566902+00:00 [info] <0.216.0> Management plugin: using rates mode 'basic'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.567151+00:00 [info] <0.216.0> Running boot step recovery defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.578104+00:00 [info] <0.216.0> Running boot step empty_db_check defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.578177+00:00 [info] <0.216.0> Will seed default virtual host and user...
onlyoffice-rabbitmq | 2025-04-12 09:14:48.578334+00:00 [info] <0.216.0> Adding vhost '/' (description: 'Default virtual host', tags: [])
onlyoffice-rabbitmq | 2025-04-12 09:14:48.610855+00:00 [info] <0.564.0> Making sure data directory '/var/lib/rabbitmq/mnesia/rabbit@2f0a04173b5c/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L' for vhost '/' exists
onlyoffice-rabbitmq | 2025-04-12 09:14:48.611618+00:00 [info] <0.564.0> Setting segment_entry_count for vhost '/' with 0 queues to '2048'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.620798+00:00 [info] <0.564.0> Starting message stores for vhost '/'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.621899+00:00 [info] <0.564.0> Started message store of type transient for vhost '/'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.622396+00:00 [warning] <0.578.0> Message store "628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent": rebuilding indices from scratch
onlyoffice-rabbitmq | 2025-04-12 09:14:48.623186+00:00 [info] <0.564.0> Started message store of type persistent for vhost '/'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.623293+00:00 [info] <0.564.0> Recovering 0 queues of type rabbit_classic_queue took 11ms
onlyoffice-rabbitmq | 2025-04-12 09:14:48.623359+00:00 [info] <0.564.0> Recovering 0 queues of type rabbit_quorum_queue took 0ms
onlyoffice-rabbitmq | 2025-04-12 09:14:48.623412+00:00 [info] <0.564.0> Recovering 0 queues of type rabbit_stream_queue took 0ms
onlyoffice-rabbitmq | 2025-04-12 09:14:48.628521+00:00 [info] <0.216.0> Created user 'guest'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.632463+00:00 [info] <0.216.0> Successfully set user tags for user 'guest' to [administrator]
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636455+00:00 [info] <0.216.0> Successfully set permissions for user 'guest' in virtual host '/' to '.*', '.*', '.*'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636522+00:00 [info] <0.216.0> Running boot step rabbit_observer_cli defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636584+00:00 [info] <0.216.0> Running boot step rabbit_core_metrics_gc defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636711+00:00 [info] <0.216.0> Running boot step background_gc defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636890+00:00 [info] <0.216.0> Running boot step routing_ready defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.636957+00:00 [info] <0.216.0> Running boot step pre_flight defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637058+00:00 [info] <0.216.0> Running boot step notify_cluster defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637120+00:00 [info] <0.216.0> Running boot step networking defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637167+00:00 [info] <0.216.0> Running boot step rabbit_quorum_queue_periodic_membership_reconciliation defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637329+00:00 [info] <0.216.0> Running boot step definition_import_worker_pool defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637422+00:00 [info] <0.270.0> Starting worker pool 'definition_import_pool' with 8 processes in it
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637860+00:00 [info] <0.216.0> Running boot step cluster_name defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.637934+00:00 [info] <0.216.0> Initialising internal cluster ID to 'rabbitmq-cluster-id-u43AoFoINOXCeELV0ttqBg'
onlyoffice-rabbitmq | 2025-04-12 09:14:48.641857+00:00 [info] <0.216.0> Running boot step virtual_host_reconciliation defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.642033+00:00 [info] <0.216.0> Running boot step direct_client defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.642123+00:00 [info] <0.216.0> Running boot step cluster_tags defined by app rabbit
onlyoffice-rabbitmq | 2025-04-12 09:14:48.646107+00:00 [info] <0.619.0> Resetting node maintenance status
onlyoffice-rabbitmq | 2025-04-12 09:14:48.690505+00:00 [info] <0.642.0> Prometheus metrics: HTTP (non-TLS) listener started on port 15692
onlyoffice-rabbitmq | 2025-04-12 09:14:48.690649+00:00 [info] <0.619.0> Ready to start client connection listeners
onlyoffice-rabbitmq | 2025-04-12 09:14:48.692157+00:00 [info] <0.686.0> started TCP listener on [::]:5672
onlyoffice-rabbitmq | completed with 3 plugins.
onlyoffice-rabbitmq | 2025-04-12 09:14:48.751469+00:00 [info] <0.619.0> Server startup complete; 3 plugins started.
onlyoffice-rabbitmq | 2025-04-12 09:14:48.751469+00:00 [info] <0.619.0> * rabbitmq_prometheus
onlyoffice-rabbitmq | 2025-04-12 09:14:48.751469+00:00 [info] <0.619.0> * rabbitmq_management_agent
onlyoffice-rabbitmq | 2025-04-12 09:14:48.751469+00:00 [info] <0.619.0> * rabbitmq_web_dispatch
onlyoffice-rabbitmq | 2025-04-12 09:14:48.847241+00:00 [info] <0.10.0> Time to start RabbitMQ: 3099 ms
onlyoffice-documentserver | Connection to onlyoffice-rabbitmq (172.19.0.3) 5672 port [tcp/amqp] succeeded!
onlyoffice-documentserver | Starting supervisor: supervisord.
onlyoffice-documentserver | * Starting periodic command scheduler cron
onlyoffice-documentserver | ...done.
onlyoffice-documentserver | * Starting nginx nginx
onlyoffice-documentserver | ...done.
onlyoffice-rabbitmq | 2025-04-12 09:14:51.830874+00:00 [info] <0.698.0> accepting AMQP connection 172.19.0.4:60714 -> 172.19.0.3:5672
onlyoffice-rabbitmq | 2025-04-12 09:14:51.880523+00:00 [info] <0.698.0> connection 172.19.0.4:60714 -> 172.19.0.3:5672: user 'guest' authenticated and granted access to vhost '/'
onlyoffice-rabbitmq | 2025-04-12 09:14:51.894740+00:00 [info] <0.723.0> accepting AMQP connection 172.19.0.4:60722 -> 172.19.0.3:5672
onlyoffice-rabbitmq | 2025-04-12 09:14:51.937483+00:00 [info] <0.723.0> connection 172.19.0.4:60722 -> 172.19.0.3:5672: user 'guest' authenticated and granted access to vhost '/'
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [87] FATAL: password authentication failed for user "onlyoffice"
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [87] DETAIL: Password does not match for user "onlyoffice".
onlyoffice-postgresql | Connection matched pg_hba.conf line 99: "host all all all md5"
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [88] FATAL: password authentication failed for user "onlyoffice"
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [88] DETAIL: Password does not match for user "onlyoffice".
onlyoffice-postgresql | Connection matched pg_hba.conf line 99: "host all all all md5"
onlyoffice-rabbitmq | 2025-04-12 09:14:52.075689+00:00 [info] <0.775.0> accepting AMQP connection 172.19.0.4:60728 -> 172.19.0.3:5672
onlyoffice-rabbitmq | 2025-04-12 09:14:52.120401+00:00 [info] <0.775.0> connection 172.19.0.4:60728 -> 172.19.0.3:5672: user 'guest' authenticated and granted access to vhost '/'
onlyoffice-documentserver | Generating AllFonts.js, please wait...Done
^C
root@nextcloud:/docker/onlyoffice-documentserver#
It looks like the issue is with the general proxy config for Docs rather than with the Nextcloud integration. Please consult our configuration examples (https://helpcenter.onlyoffice.com/docs/installation/docs-community-proxy.aspx) and adjust your proxy service's settings to make sure all requests are handled correctly and the /healthcheck endpoint is available.
Hello,
we have the same issue. It was working for month and a week ago it stops working without changing something. We had set up our instance via docker-compose and nginx as reverse proxy in that way: https://github.com/ONLYOFFICE/document-server-proxy/blob/master/nginx/proxy-https-to-http.conf
Thanks for your help Marcel
ONLYOFFICE/Docker-DocumentServer#811 Here is my contribution regarding the problem.
Weird.
In my case, using the docker command with the volumes added makes the healthcheck endpoint unavailable.
sudo docker run -i -t -d -p 80:80 -p 443:443 --restart=always \
-e LETS_ENCRYPT_DOMAIN=<INSERT_DOMAIN> -e LETS_ENCRYPT_MAIL=<INSERT_EMAILADDRESS> \
-v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
-v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice \
-v /app/onlyoffice/DocumentServer/rabbitmq:/var/lib/rabbitmq \
-v /app/onlyoffice/DocumentServer/redis:/var/lib/redis \
-v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver
If I use the regular command without the volume mounting, the whole thing works fine.
sudo docker run -i -t -d -p 80:80 -p 443:443 --restart=always \
-e LETS_ENCRYPT_DOMAIN=<INSERT_DOMAIN> -e LETS_ENCRYPT_MAIL=<INSERT_EMAILADDRESS> onlyoffice/documentserver
Could it be some sort of permission issue with the directories?
The same after nginx update. healthcheck-URL - Bad Gateway
UPD: This is a problem in docker-variante. The Windows version works fine on the same env.
Hello @TheDoDoo, in your logs error coonect to the database:
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [87] FATAL: password authentication failed for user "onlyoffice"
onlyoffice-postgresql | 2025-04-12 09:14:51.989 UTC [87] DETAIL: Password does not match for user "onlyoffice".
Because you use incorrect variable DB_PASSWORD:
services:
onlyoffice-documentserver:
...
environment:
...
- DB_PASSWORD=${POSTGRES_PASSWORD}
Use DB_PWD instead.
Hello @devIven, i check your scenario, healthcheck are correct if the data in the volumes is correct or missing. Look issue in your volumes, try to temporarily move them for example.
similar problem
here are the logs of onlyoffice-documentserver container:
==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2025/05/25 10:46:59 [error] 11777#11777: *1339 upstream prematurely closed connection while reading response header from upstream, client: 10.89.3.1, server: , request: "GET /healthcheck HTTP/1.1", upstream: "http://[::1]:8000/healthcheck", host: "onlyoffice.example.com"
2025/05/25 10:46:59 [error] 11777#11777: *1339 connect() failed (111: Connection refused) while connecting to upstream, client: 10.89.3.1, server: , request: "GET /healthcheck HTTP/1.1", upstream: "http://127.0.0.1:8000/healthcheck", host: "onlyoffice.example.com"
compose file does not have 8000 port exposed, I assume it's nginx server in onlyoffice-documentserver container trying to perform health checks internally
@c7b3rx Port 8000 is an internal port for the documentserver, it does not need to be forwarded in compose file. Your error shows that the server did not start correctly. Please create a separate issue and describe your setup.
please have a look at https://github.com/ONLYOFFICE/DocumentServer/issues/3204 , after pinning rabbitmq to 4.0.9 it was working again
The original question was resolved. So I close this issue. Feel free to comment or reopen it if you got further questions.