healthcheck: upstream timed out

Issues during installation and related to database
Post Reply
thommie
Posts: 1
Joined: Sun Nov 03, 2019 2:48 pm

healthcheck: upstream timed out

Post by thommie » Sun Nov 03, 2019 3:07 pm

Hi together,
I am having a problem with a newly installed doc server 5.4 community with the following error message in nginx.error.log after doing the healthcheck with wget http://127.0.0.1:8000/healthcheck:

tail /var/log/onlyoffice/documentserver/nginx.error.log
2019/11/03 13:55:56 [error] 2537#2537: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 87.183.232.253, server: , request: "GET /healthcheck HTTP/1.1", upstream: "http://127.0.0.1:8000/healthcheck", host: "docs.netzwissen.de", referrer: "https://docs.netzwissen.de/welcome/"

Note that there is NO local postgresql here. The database is not postgres but mariadb and it is not local, but hosted on another virtual node on the same physical server (>> no delay for db requests).

See local.json:

{
"services": {
"CoAuthoring": {
"sql": {
"dbHost": "10.10.10.16",
"dbName": "onlyoffice",
"dbUser": "onlyoffice",
"dbPass": "xxxxxxxxxxx"
},
"redis": {
"host": "localhost"
},
"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
....

nginx and redis are running , also all the server parts:

root@docs:/etc/onlyoffice/documentserver# supervisorctl status
ds:converter RUNNING pid 3697, uptime 0:36:56
ds:docservice RUNNING pid 3696, uptime 0:36:56
ds:gc RUNNING pid 3695, uptime 0:36:56
ds:metrics RUNNING pid 3693, uptime 0:36:56
ds:spellchecker RUNNING pid 3694, uptime 0:36:56

root@docs:/etc/onlyoffice/documentserver# ps -aux | grep 3696
ds 3696 0.0 10.1 1001452 49828 ? Sl 14:23 0:00 node --max_old_space_size=4096 /var/www/onlyoffice/documentserver/server/DocService/sources/server.js

the /var/www/onlyoffice/documentserver/server/DocService/sources/server.js shows an uncaughtException:

...
process.on('uncaughtException', (err) => {
logger.error((new Date).toUTCString() + ' uncaughtException:', err.message);
logger.error(err.stack);
logger.shutdown(() => {
process.exit(1);
});
});

I would love to see some ideas for further debugging ...

Thx, Thommie

Carl
Posts: 200
Joined: Thu Apr 12, 2018 10:00 am

Re: healthcheck: upstream timed out

Post by Carl » Thu Nov 07, 2019 7:26 am

Hello Thommie,

Please note that Document Server strictly requires PostgreSQL, MariaDB is not supported.

You can also try checking converter and docservice logs.

Post Reply