502 Bad Gateway error since last update

I have a problem.
The recent update broke my OnlyOfficeDS.

When I try to go to the URL office.mydomain.com I’m getting:
502 Bad Gateway
openresty

I’m using Nginx Proxy Manager and NextCloud. Each in separate containers. I noticed that NextCloud informed me that OnlyOfficedS is not available and to check the configuration. The configuration is correct.

After clicking save I’m getting:

Error when trying to connect (Server error: `GET https://office.mydomain.com/healthcheck` resulted in a `502 Bad Gateway` response:

502 Bad Gateway

502 Bad Gateway
open (truncated...)
)

I’ve attached log and nginx error log.

Can anyone have a look and help me troubleshoot this?

Type of installation of Workspace: docker
OS: Unraid

Here is the log:

text  error  warn  system  array  login  

Generating presentation themes, please wait...Done
Generating js caches, please wait...Done
ds:docservice: stopped
ds:docservice: started
ds:converter: stopped
ds:converter: started
 * Reloading nginx configuration nginx
   ...done.

==> /var/log/onlyoffice/documentserver/converter/err.log <==

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2023-11-19T14:52:22.108] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 16; availableParallelism: undefined
[2023-11-19T14:52:22.110] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-11-19T14:52:22.120] [WARN] [localhost] [docId] [userId] nodeJS - worker 730 started.
[2023-11-19T14:52:22.123] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 16; availableParallelism: undefined
[2023-11-19T14:52:22.123] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-11-19T14:52:54.100] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 16; availableParallelism: undefined
[2023-11-19T14:52:54.102] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers
[2023-11-19T14:52:54.110] [WARN] [localhost] [docId] [userId] nodeJS - worker 1022 started.
[2023-11-19T14:52:54.113] [WARN] [localhost] [docId] [userId] nodeJS - num of CPUs: 16; availableParallelism: undefined
[2023-11-19T14:52:54.113] [WARN] [localhost] [docId] [userId] nodeJS - update cluster with 1 workers

==> /var/log/onlyoffice/documentserver/docservice/err.log <==

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2023-11-19T14:50:15.552] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.5.0. Build: 125
[2023-11-19T14:51:55.662] [WARN] [localhost] [docId] [userId] nodeJS - start shutdown:%b true
[2023-11-19T14:51:55.663] [WARN] [localhost] [docId] [userId] nodeJS - active connections: 0
[2023-11-19T14:51:55.663] [WARN] [localhost] [docId] [userId] nodeJS - end shutdown
[2023-11-19T14:52:22.671] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-11-19T14:52:22.675] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-11-19T14:52:23.121] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.5.1. Build: 23
[2023-11-19T14:52:53.408] [WARN] [localhost] [docId] [userId] nodeJS - Express server starting...
[2023-11-19T14:52:53.412] [WARN] [localhost] [docId] [userId] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. https://nodejs.org/docs/latest/api/fs.html#fs_availability
[2023-11-19T14:52:53.584] [WARN] [localhost] [docId] [userId] nodeJS - Express server listening on port 8000 in production-linux mode. Version: 7.5.1. Build: 23

==> /var/log/onlyoffice/documentserver-example/out.log <==
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async processSave (/snapshot/nodejs/app.js)
    at async processTrack (/snapshot/nodejs/app.js)
    at async /snapshot/nodejs/app.js {
  errno: -2,
  syscall: 'rename',
  code: 'ENOENT',
  path: '/var/lib/onlyoffice/documentserver-example/files/192.168.2.1__172.18.0.1/new.xlsx',
  dest: '/var/lib/onlyoffice/documentserver-example/files/192.168.2.1__172.18.0.1/new.xlsx-history/1/prev.xlsx'
}

==> /var/log/onlyoffice/documentserver/metrics/err.log <==

==> /var/log/onlyoffice/documentserver/metrics/out.log <==
19 Nov 14:33:44 - [689] reading config file: ./config/config.js
19 Nov 14:33:44 - server is up INFO
19 Nov 14:40:53 - [688] reading config file: ./config/config.js
19 Nov 14:40:53 - server is up INFO
19 Nov 14:48:02 - [689] reading config file: ./config/config.js
19 Nov 14:48:03 - server is up INFO
19 Nov 14:49:44 - [694] reading config file: ./config/config.js
19 Nov 14:49:45 - server is up INFO
19 Nov 14:52:21 - [695] reading config file: ./config/config.js
19 Nov 14:52:21 - server is up INFO

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2023/11/19 14:00:25 [error] 8024#8024: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:00:25 [error] 8024#8024: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:19:55 [error] 8024#8024: *3 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:19:55 [error] 8024#8024: *3 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:34:53 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:34:53 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:48:10 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:48:10 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:51:39 [error] 7931#7931: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:51:39 [error] 7931#7931: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"

==> /var/log/onlyoffice/documentserver/spellchecker/err.log <==

==> /var/log/onlyoffice/documentserver/spellchecker/out.log <==
[2023-04-06T21:00:15.865] [WARN] nodeJS - start cluster with 1 workers
[2023-04-06T21:00:15.874] [WARN] nodeJS - worker 1282 started.
[2023-04-06T21:00:16.287] [WARN] nodeJS - Express server starting...
[2023-04-06T21:00:16.350] [WARN] nodeJS - Express server listening on port 8080 in production-linux mode
[2023-04-06T21:00:57.941] [WARN] nodeJS - start cluster with 1 workers
[2023-04-06T21:00:57.951] [WARN] nodeJS - worker 1282 started.
[2023-04-06T21:00:58.404] [WARN] nodeJS - Express server starting...
[2023-04-06T21:00:58.459] [WARN] nodeJS - Express server listening on port 8080 in production-linux mode

==> /var/log/onlyoffice/documentserver/nginx.error.log <==
2023/11/19 14:59:05 [error] 8030#8030: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:59:05 [error] 8030#8030: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"

Nginx.error.log:

2023/11/19 14:00:25 [error] 8024#8024: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:00:25 [error] 8024#8024: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:19:55 [error] 8024#8024: *3 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:19:55 [error] 8024#8024: *3 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:34:53 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:34:53 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:48:10 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:48:10 [error] 718#718: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:51:39 [error] 7931#7931: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"
2023/11/19 14:51:39 [error] 7931#7931: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.2.2, server: , request: "GET /example/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.2.5:9090", referrer: "http://192.168.2.5:9090/welcome/"

hi @andrzej :handshake:

  1. How did you update OnlyOffice Docs?
  2. What is the status of the services in DS container? Please provide the output of supervisorctl status all.

Hi!

  1. I’ve updated it via container update feature in Unraid docker.
  2. Here is the output:
# supervisorctl status all
ds:converter                     RUNNING   pid 1016, uptime 2 days, 23:11:51
ds:docservice                    RUNNING   pid 1004, uptime 2 days, 23:11:52
ds:example                       STOPPED   Not started
ds:metrics                       RUNNING   pid 695, uptime 2 days, 23:12:23
# 

I’ll leave here the instructions on updating OnlyOffice Docs for Docker.

https://helpcenter.onlyoffice.com/installation/docs-community-update-docker.aspx

Try reinstalling OnlyOffice Docs.

It seems like there might be some problem between Nginx Proxy Manager and OnlyOffice.
Maybe I should do the whole new install and get a new SSL certificate.
Do you have a tutorial how to properly copy SSL certificates?
Does OnlyOffice accept .pem certificate files?

Running ONLYOFFICE Docs using HTTPS

https://helpcenter.onlyoffice.com/installation/docs-community-install-docker.aspx

Thank you.
Fixed it by making a fresh install. New SSL certificate and switching to https in console.

1 Like