[GH-ISSUE #635] 502 Bad Gateway, nginx #288

Closed
opened 2026-02-26 10:31:37 +03:00 by kerem · 2 comments
Owner

Originally created by @Raltvein on GitHub (May 29, 2023).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/635

Do you want to request a feature or report a bug?
bug
What is the current behavior?
image
And
image
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
probably a bug, but locally everything is working. For this error all i did was create new azure web app and deploy onlyoffice/documentserver:latest (7.3) to it.
image
All i changed is JWT secret (by providing JWT_SECRET env. variable) key as well as provided postgreSQL credentials (also env. variables) for application to use.
Here is broken site I am hosting
What is the expected behavior?
To be able to access /healthcheck and webscoket without getting 502 error.
Did this work in previous versions of DocumentServer?
I tries version 7.2 and despite many comments on this forum id did not work for me.
DocumentServer Docker tag:
latest (7.3)
Host Operating System:
Container is running on Linux

I have also tried to host onlyoffice document server on virtual machine on azure (without https) and it did not succeed and resulted in same errors. Errors I get in console from virtual machine

2023/05/29 11:45:16 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:16 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:17 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:17 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:18 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:18 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:23 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"
2023/05/29 11:45:23 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173"

For additional data I attach also image of

sudo netstat -tunlp

command. Run in virtual machine
image

sudo netstat -tunlp

run inside onlyoffice docker image
image

Also want to note that when it works locally I have some kind of process listening on port 8000 inside docker container.
image
Despite absence of process on port 8000 command

supervisorctl status all

given following result (on virtual machine where /healthcheck does not work)
image

Originally created by @Raltvein on GitHub (May 29, 2023). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/635 **Do you want to request a *feature* or report a *bug*?** bug **What is the current behavior?** ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/f74a0005-c5b8-4b8a-bea1-c0a844f9cba4) And ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/f1e27d73-f95e-491c-8e06-84be3b11aa05) **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** probably a bug, but locally everything is working. For this error all i did was create new azure web app and deploy onlyoffice/documentserver:latest (7.3) to it. ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/fe59a1ae-3780-42c0-a9a9-b2f0ff8b6c5e) All i changed is JWT secret (by providing JWT_SECRET env. variable) key as well as provided postgreSQL credentials (also env. variables) for application to use. Here is [broken site I am hosting](https://onlyofficeservertest.azurewebsites.net/) **What is the expected behavior?** To be able to access /healthcheck and webscoket without getting 502 error. **Did this work in previous versions of DocumentServer?** I tries version 7.2 and despite many comments on this forum id did not work for me. **DocumentServer Docker tag:** latest (7.3) **Host Operating System:** Container is running on Linux I have also tried to host onlyoffice document server on virtual machine on azure (without https) and it did not succeed and resulted in same errors. Errors I get in console from virtual machine ```yml 2023/05/29 11:45:16 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:16 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwcG", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:17 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:17 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKwqZ", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:18 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:18 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKx7K", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:23 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" 2023/05/29 11:45:23 [error] 6308#6308: *158 connect() failed (111: Unknown error) while connecting to upstream, client: 194.204.62.225, server: , request: "GET /7.3.3-49/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/A3x32rFT5pdAss4holuZ/c/?EIO=4&transport=polling&t=OXdKyNc", host: "13.79.33.50", referrer: "http://13.79.33.50/7.3.3-49/web-apps/apps/documenteditor/forms/index.html?_dc=7.3.3-49&lang=en&customer=ONLYOFFICE&frameEditorId=documentEditor&mode=view&parentOrigin=http://127.0.0.1:5173" ``` For additional data I attach also image of ```yml sudo netstat -tunlp ``` command. Run in virtual machine ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/e3d62087-b06f-4d36-bb3c-d6021266e4c8) ```yml sudo netstat -tunlp ``` run inside onlyoffice docker image ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/0561e597-27c8-4a99-8183-1087e1455764) Also want to note that when it works locally I have some kind of process listening on port 8000 inside docker container. ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/edc01391-a119-4042-9a40-1f82ddb154cc) Despite absence of process on port 8000 command ```yml supervisorctl status all ``` given following result (on virtual machine where /healthcheck does not work) ![image](https://github.com/ONLYOFFICE/Docker-DocumentServer/assets/80958300/bca36cf0-d581-4168-905f-ed155d11137c)
kerem 2026-02-26 10:31:37 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@Raltvein commented on GitHub (Jun 1, 2023):

Conversation was carried over to OnlyOffice forums

<!-- gh-comment-id:1571370152 --> @Raltvein commented on GitHub (Jun 1, 2023): Conversation was carried over to [OnlyOffice forums](https://forum.onlyoffice.com/t/onlyoffice-some-endpoint-result-in-502-when-hosting/5014)
Author
Owner

@igwyd commented on GitHub (Aug 25, 2023):

Hello @DiRaltvein, forum threads are handled by other team. We close this issue.

<!-- gh-comment-id:1693096619 --> @igwyd commented on GitHub (Aug 25, 2023): Hello @DiRaltvein, forum threads are handled by other team. We close this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#288
No description provided.