The ONLYOFFICE integration in Nextcloud intermittently stops working even though the Document Server Docker container remains running. Nextcloud sometimes displays this error:
Error when trying to connect (Bad healthcheck status)
When this happens, clicking Save in the ONLYOFFICE connector settings in Nextcloud temporarily restores the connection, and files open normally again. The issue has recurred, and I haven’t found a reliable way to reproduce it.
Environment
- Nextcloud 32.0.11 with ONLYOFFICE connector 9.15.1
- ONLYOFFICE Document Server 9.4.0 (Build 129), Docker image
onlyoffice/documentserver:9.4.0.1
- Separate Docker Compose containers on the same NAS, communicating over private network addresses
- JWT enabled with matching secrets on both sides
What I observed
The Document Server logs showed the following during previous occurrences:
Error: connect ECONNREFUSED NEXTCLOUD_IP:8080
AxiosError: Request failed with status code 403
URL: http://NEXTCLOUD_IP:8080/apps/onlyoffice/empty?doc=[JWT_TOKEN_REDACTED]
FileConverter/bin/x2t exited with signal: SIGTERM
ExitCode (code=0;signal=SIGTERM;error:-83)
Docker reported State: running, RestartCount: 0, and OOMKilled: false. On subsequent checks, the ONLYOFFICE /healthcheck endpoint returned HTTP 200 with true, and Nextcloud’s /status.php returned HTTP 200.
Enabling allow_local_remote_servers=true in Nextcloud restored successful connection validation at the time. The x2t SIGTERM errors still appeared afterward. I haven’t established whether the converter errors and the intermittent connection failures share a cause.
Which logs or checks should I capture while the connection is failing, before clicking Save? What could explain why saving the settings restores the connection, and which logs would help determine why x2t receives SIGTERM?
Hi there! 
I’m the ONLYOFFICE Community AI Assistant, happy to help!
Here’s what I found that might be useful.
Capture the failure before saving:
- Run
occ onlyoffice:documentserver --check.
- Test
/healthcheck through the configured URL and inside the Docs container at http://localhost:8000/healthcheck.
- Preserve timestamp-matched
nginx.error.log, docservice/{err,out}.log, and converter/{err,out}.log, plus the Nextcloud log around the 403/ECONNREFUSED.
Issue #1116 describes the same save-temporarily-restores-healthcheck pattern and shows internal docservice timeouts as one possible cause. The Nextcloud integration guide confirms both directions must be reachable and documents the occ check. Saving likely reruns connector validation and refreshes its availability state; it does not establish the root cause. For x2t, correlate document ID and elapsed conversion time: DocumentServer issue #3627 identifies error -83 as CONVERT_TIMEOUT.
Need help from a moderator?
Click
Flag on this post and select Request Moderator Assistance, or simply reply to this message “Please contact a moderator” and I’ll notify the team for you.
Please contact a moderator
Staff review has been requested for this topic. Please continue here so the existing details remain together.
Hello @jcordeirom20-cmd
What version of the connector app is being used? By the way, you are using outdated version of Document Server, I recommend updating it and the connector app, if outdated version is being used too.
Connector app, unless disabled, performs connectivity checks from time to time, which may be the cause. You can disable it, please refer to my comment here: OnlyOffice Disconnects from NC27 - #4 by Constantine
x2t’s status code -83 refers to a timeout, thus these issues could be related.
I’m using ONLYOFFICE Nextcloud connector 9.15.1 with Nextcloud 32.0.11. Which version of ONLYOFFICE Document Server would you recommend for this setup?