# Onlyoffice continuously disconnects

**URL:** <https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207>\
**Category:** 📄 Office\
**Tags:** onlyoffice\
**Created:** [August 30, 2023, 11:44pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207 "2023-08-30T23:44:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [August 30, 2023, 11:44pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/1 "2023-08-30T23:44:30Z")

</div>

```I

When i tried to open a document, i got this error message in the logs.

[onlyoffice] Error: Exception: Error occurred in the document service: Error while downloading the document file to be converted. at <<closure>>

0. /var/www/html/apps/onlyoffice/lib/DocumentService.php line 95
   OCA\Onlyoffice\DocumentService->ProcessConvServResponceError()
1. /var/www/html/apps/onlyoffice/lib/DocumentService.php line 446
   OCA\Onlyoffice\DocumentService->GetConvertedUri()
2. /var/www/html/apps/onlyoffice/lib/Cron/EditorsCheck.php line 144
   OCA\Onlyoffice\DocumentService->checkDocServiceUrl()
3. /var/www/html/lib/public/BackgroundJob/Job.php line 86
   OCA\Onlyoffice\Cron\EditorsCheck->run()
4. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
   OCP\BackgroundJob\Job->start()
5. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
   OCP\BackgroundJob\TimedJob->start()
6. /var/www/html/cron.php line 152
   OCP\BackgroundJob\TimedJob->execute()

at 2023-08-30T22:35:07+00:00

I can resolve it by going to Administration settings, onlyoffice, server settings and hitting save and everything works again without changing any settings.

Is there a way to permanently resolve this instead of the manual intervention?
```

---

<div class="post-metadata">

**Author:** ![Lunik971](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lunik971/32/19478_2.png) [@Lunik971](https://help.nextcloud.com/u/Lunik971)\
**Post date:** [September 11, 2023, 7:51pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/2 "2023-09-11T19:51:58Z")

</div>

Hello i am in the same situation, when i look into the log at the time i receive the notification about OnlyOffice is disconnected, i found this line :

```auto
"method":"","url":"--","message":"CLI cron call has selected job with ID 301174","userAgent":"--","version":"27.0.2.1","data":{"app":"cron"}}
{"reqId":"ZJLPawdGPg4AwAvfUR0z","level":0,"time":"2023-09-11T01:30:03+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"CLI cron call has selected job with ID 301265","userAgent":"--","version":"27.0.2.1","data":{"app":"cron"}}
{"reqId":"ZJLPawdGPg4AwAvfUR0z","level":0,"time":"2023-09-11T01:30:03+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Run OCA\\DocumentServer\\BackgroundJob\\Cleanup job with ID 301265","userAgent":"--","version":"27.0.2.1","data":{"app":"cron"}}
{"reqId":"ZJLPawdGPg4AwAvfUR0z","level":0,"time":"2023-09-11T01:30:03+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"Finished OCA\\DocumentServer\\BackgroundJob\\Cleanup job with ID 301265 in 0 seconds","userAgent":"--","version":"27.0.2.1","data":{"app":"cron"}}

```

but cannot explain if it’s normal or not …

I am currently on Nextcloud Hub 5 (27.0.2) and Only Office Document Server EE

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 11, 2023, 8:58pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/3 "2023-09-11T20:58:33Z")

</div>

It is obviously referring to some type of cron running in the background, but since it has different PID’s i would imagine you would have had to trace the PID back to onlyoffice to see if it matched, but i wouldnt know much else afterwards.

The strange thing about my issue is that i get these browser notifications that it has been disconnected and often it hasnt.

In any event, when i simply re-save the settings, onlyoffice works again but it is hardly convenient.

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 11, 2023, 8:59pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/4 "2023-09-11T20:59:37Z")

</div>

Sorry, i thought it said PID, it says ID…i have no idea what that means.

---

<div class="post-metadata">

**Author:** ![Lunik971](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lunik971/32/19478_2.png) [@Lunik971](https://help.nextcloud.com/u/Lunik971)\
**Post date:** [September 12, 2023, 8:09pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/5 "2023-09-12T20:09:24Z")

</div>

yes it’s exactly the same for me, every day i have this notification and have just to press save in the configuraton get onlyoffice up again  
 ![image](https://help.nextcloud.com/uploads/default/original/3X/f/b/fbc1e887757808eeb1b1e6cafb98f3f81e0ee4b8.png)

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 13, 2023, 1:55pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/6 "2023-09-13T13:55:18Z")

</div>

The strange thing is that sometimes i get that browser notification and it is not the case; however, when i get it from nextcloud it is the case.  
There must be a way of fixing this, and…  
I just checked github and maybe there is…

* * *

To solve this, we added an asynchronous background task which runs on the server to check availability of the editors. It allows testing the connection between your **Nextcloud instance** and **ONLYOFFICE Document Server** , namely availability of server addresses and the validity of the JWT secret are being checked.

If any issue is detected, the ONLYOFFICE integration connector (consequently, the ability to create and open files) will be disabled. As a Nextcloud admin, you will get the corresponding notification.

This option allows you to avoid issues when the server settings become incorrect and require changes.

By default, this background task runs once a day. If necessary, you can change the frequency. To do so, open the Nextcloud config file (_/nextcloud/config/config.php_). Insert the following section and enter the required value in minutes:

‘onlyoffice’ =\> array ( ‘editors\_check\_interval’ =\> 3624 )

To disable this check running, enter 0 value.

* * *

---

<div class="post-metadata">

**Author:** ![Lunik971](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lunik971/32/19478_2.png) [@Lunik971](https://help.nextcloud.com/u/Lunik971)\
**Post date:** [September 15, 2023, 4:40pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/7 "2023-09-15T16:40:39Z")

</div>

Do you made a try to disable the check ? and see if you still have the disconnection ( or just the message without disconnection ) ?

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 15, 2023, 6:55pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/8 "2023-09-15T18:55:52Z")

</div>

To check the ?, do you mean disable certificate verification…it is checked now, but i don’t think that previously that it made a difference.

I have not made the changes in the config file as that makes me a bit nervous.

---

<div class="post-metadata">

**Author:** ![Tokashi](https://help.nextcloud.com/letter_avatar/tokashi/32/6_22734026db12803ebb3e059622ac3534.png) [@Tokashi](https://help.nextcloud.com/u/Tokashi)\
**Post date:** [September 19, 2023, 11:58am UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/9 "2023-09-19T11:58:52Z")

</div>

Hello, same problem here in my NC25. After upgrading OnlyOffice plugin 7.8.0 to 7.9.0, it was necessary to upgrade my OnlyOffice server from 7.1 to 7.2  
Since then, every time my OnlyOffice container restarts every night, the cron signals that the server is down and the connection is permanently interrupted. You must return and save the settings in the plugin. I think the problem is with the plugin. I will do my best to solve this problem.

---

<div class="post-metadata">

**Author:** ![Alex\_Podosenin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alex_podosenin/32/51995_2.png) [@Alex\_Podosenin](https://help.nextcloud.com/u/Alex_Podosenin)\
**Post date:** [September 27, 2023, 3:43pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/10 "2023-09-27T15:43:25Z")

</div>

Hi!  
Same issue, upgraded to NC 25.0.10 and OO plugin 7.9, OnlyOffice 7.2.0.204 on dedicated VM.  
OnlyOffice works just fine but at 11:45 every day it fails the check and then it’s not working until I press Save in OO plugin settings.  
After that it works fine again.  
It also fails the check with this: occ onlyoffice:documentserver --check  
with the following error  
Error connection: Error occurred in the document service: Error while downloading the document file to be converted.

I’ll try to update to NC 25.0.12 and OO 7.4 this weekend and post the result.

---

<div class="post-metadata">

**Author:** ![Alex\_Podosenin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alex_podosenin/32/51995_2.png) [@Alex\_Podosenin](https://help.nextcloud.com/u/Alex_Podosenin)\
**Post date:** [September 29, 2023, 3:31pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/11 "2023-09-29T15:31:23Z")

</div>

NC 25.0.12  
OOP 7.9  
OO 7.4.1.36

the problem persists

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 29, 2023, 5:09pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/12 "2023-09-29T17:09:51Z")

</div>

NC 27.1.1  
OO 8.2  
doenst work

---

<div class="post-metadata">

**Author:** ![eOne](https://help.nextcloud.com/letter_avatar/eone/32/6_22734026db12803ebb3e059622ac3534.png) [@eOne](https://help.nextcloud.com/u/eOne)\
**Post date:** [September 30, 2023, 2:57pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/13 "2023-09-30T14:57:36Z")

</div>

I had the same problem and managed to resolve by doing next:

1. go to ‘Advanced server settings’ of connector plugin;
2. ‘Authorization header’ - left blank
3. ‘ONLYOFFICE Docs address for internal requests from the server’ - was blank and I supplied FQDN of my doc server;
4. ‘Server address for internal requests from ONLYOFFICE Docs’ - was blank and I provided FQDN of my NC server  
With these configs the check passes:

```auto
root@nextcloud-2:/var/www/nextcloud# sudo -u www-data php occ onlyoffice:documentserver --check
Document server https://onlyoffice."my_fqdn"/ version 7.4.1.36 is successfully connected
root@nextcloud-2:/var/www/nextcloud#

```

Short description of my setup:  
VM1 - NC v. 27.1.1  
VM2 - OO 7.4.1

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 30, 2023, 3:31pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/14 "2023-09-30T15:31:34Z")

</div>

I juts tried that, and unfortunately i got an error when trying to connect, so i had to leave the settings as default.

I had to keep https:/// for #3  
i had to keep [https://serverdomain.com/](https://serverdomain.com/) for #4

We are using the same address for the document server and it is [https://serverdomain.com:48000](https://serverdomain.com:48000)

Any further advice on this would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![Alex\_Podosenin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alex_podosenin/32/51995_2.png) [@Alex\_Podosenin](https://help.nextcloud.com/u/Alex_Podosenin)\
**Post date:** [September 30, 2023, 4:12pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/15 "2023-09-30T16:12:12Z")

</div>

I fixed it by filling the last parameter (Server address for internal requests Onlyoffice Docs) in Advanced server setting with FQDN of NC server. It was empty by default, showing the same address as example, so I decided that it uses it anyway.  
After adding FQDN, occ onlyoffice:documentserver --check completed successfully:  
Document server [https://onlyoffice.mydomain/](https://onlyoffice.mydomain/) version 7.4.1.36 is successfully connected

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [September 30, 2023, 6:27pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/16 "2023-09-30T18:27:56Z")

</div>

i tried it again and used the following

For docs server—used docs server and port vs https://\<docserver\</ which was there  
For server address for internal address , i actually typed in the cloud domain with https…  
And it took it.

Interestingly enough, when i log in, i see https://\<docserver\</ again, and the same domain address as before.

It was successful updated, but i dont know if it will continue. I will update tomorrow if it does without manually saving the settings like i have done in the past.

---

<div class="post-metadata">

**Author:** ![koolandrew](https://help.nextcloud.com/letter_avatar/koolandrew/32/6_22734026db12803ebb3e059622ac3534.png) [@koolandrew](https://help.nextcloud.com/u/koolandrew)\
**Post date:** [October 9, 2023, 5:45pm UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/17 "2023-10-09T17:45:57Z")

</div>

I forgot to reply again, this solved the issue. Thanks to everyone for their contributions.

---

<div class="post-metadata">

**Author:** ![Lunik971](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lunik971/32/19478_2.png) [@Lunik971](https://help.nextcloud.com/u/Lunik971)\
**Post date:** [October 13, 2023, 9:03am UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/18 "2023-10-13T09:03:53Z")

</div>

Many thanks, that also resolve my issue. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![yannick\_berges](https://help.nextcloud.com/user_avatar/help.nextcloud.com/yannick_berges/32/62813_2.png) [@yannick\_berges](https://help.nextcloud.com/u/yannick_berges)\
**Post date:** [April 18, 2024, 9:15am UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/19 "2024-04-18T09:15:27Z")

</div>

hello @koolandrew i am not sure to understand the solution  
this is my configuration  
url of onlyoffice docs : [https://com3elles.org/nextcloud/index.php/apps/documentserver\_community/](https://com3elles.org/nextcloud/index.php/apps/documentserver_community/)  
secret key : empty  
advanced parmas  
Authorisatin : empty  
url of onlyoffice for internal : https:///  
url for url for server : by default ([https://musitename/](https://musitename/)  
what i need to change ?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 9:07am UTC](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207/20 "2025-01-16T09:07:17Z")

</div>


