Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Healthcheck issue when another app listens on port 8000 #103

Open
nicofrand opened this issue Jul 5, 2023 · 1 comment
Open

Healthcheck issue when another app listens on port 8000 #103

nicofrand opened this issue Jul 5, 2023 · 1 comment

Comments

@nicofrand
Copy link
Contributor

Describe the bug

Any request to /healthcheck is resulting in a 404 error.

Context

I already have a docker app running on port 8000 (I know, docker is not recommended but there is no yunohost package for this app yet).

Once I stopped this app, I was able to run OnlyOffice and the healtcheck worked.

Steps to reproduce

  1. Have an app running on port 8000
  2. Try to configure nextcloud with OnlyOffice

Expected behavior

Everything works fine after setting the right onlyoffice domain and secret key.

Logs

In /var/log/onlyoffice/documentserver/docservice/out.log here are the errors:

[2023-07-05T09:42:46.963] [ERROR] [localhost] [docId] [userId] nodeJS - Error: listen EADDRINUSE: address already in use :::8000
    at Server.setupListenHandle [as _listen2] (net.js:1331:16)
    at listenInCluster (net.js:1379:12)
    at Server.listen (net.js:1465:7)
    at /snapshot/server/build/server/DocService/sources/server.js
    at /snapshot/server/build/server/DocService/sources/DocsCoServer.js
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
@nicofrand
Copy link
Contributor Author

nicofrand commented Jul 5, 2023

netstat returns both nginx and dockservice:

tcp6       0      0 :::8000                 :::*                    LISTEN      2956033/docservice  
tcp6       0      0 :::8096                 :::*                    LISTEN      2948701/nginx: mast 

while nginx proxies to 8096 as expected: proxy_pass http://127.0.0.1:8096/;

# curl http://127.0.0.1:8096 -sL | grep "<title>"
<title>ONLYOFFICE Docs Community Edition</title>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant