# Onlyoffice server SNAP disconnect everyday

**URL:** <https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399>\
**Category:** 📄 Office\
**Tags:** snap, onlyoffice, nc31\
**Created:** [June 23, 2025, 5:09pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399 "2025-06-23T17:09:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierrick584](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pierrick584/32/70364_2.png) [@Pierrick584](https://help.nextcloud.com/u/Pierrick584)\
**Post date:** [June 23, 2025, 5:09pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/1 "2025-06-23T17:09:00Z")

</div>

hello, i installed onlyoffice in nextcloud, and it keep disconnecting everyday, another post here suggested a fix, but i cant figure out how to apply the fix in a SNAP environment

[https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207](https://help.nextcloud.com/t/onlyoffice-continuously-disconnects/169207)

> 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.

## The Basics

**Nextcloud version:** 31.0.6 - 31.0.6.2  
**Operating system:** Linux 5.15.0-141-generic #151-Ubuntu SMP Sun May 18 21:35:19 UTC 2025 x86\_64

**Webserver:** Apache (fpm-fcgi)

**Database:** mysql 8.0.42

**PHP version:** 8.3.22

- Is this the first time you’ve seen this error? (Yes / No):
  - `yes`

- When did this problem seem to first start?
  - `as soon as i installed onlyoffice`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `ubuntu snap`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `no, very basic for now`

---

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [June 23, 2025, 5:20pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/2 "2025-06-23T17:20:40Z")

</div>

> [@Pierrick584](#):
>
> but i cant figure out how to apply the fix in a SNAP environment

> [@How to edit config.php for Nextcloud snap](https://help.nextcloud.com/t/how-to-edit-config-php-for-nextcloud-snap/218564):
>
> Edit config.php for Nextcloud snap [PHP configuration options](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Configure-config.php) Some Nextcloud snap settings may need to be done directly in the config.php configuration file. While the default configurations are mostly fine, you might want to fine tune your Nextcloud snap instance. Nextcloud snap offers different configuration methods. While some folks prefer editing the configuration file using their favourite editor like nano, vim or UI texteditors like gedit, kedit etc. the [OCC management console](https://help.nextcloud.com/t/how-to-use-occ-management-console-for-nextcloud-snap/216111/) is a safe a…

---

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [June 23, 2025, 5:24pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/3 "2025-06-23T17:24:24Z")

</div>

> [@Pierrick584](#):
>
> i installed onlyoffice in nextcloud

as an alternative consider built-in CODE service.

[**CODE & Nextcloud Office configuration**](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Configure-CODE-and-Nextcloud-office-for-Nextcloud-snap)

---

<div class="post-metadata">

**Author:** ![Pierrick584](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pierrick584/32/70364_2.png) [@Pierrick584](https://help.nextcloud.com/u/Pierrick584)\
**Post date:** [June 25, 2025, 12:28pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/4 "2025-06-25T12:28:38Z")

</div>

Thank you, following your reply i tried to formulate the occ command like this, but it dint work

> sudo snap run nextcloud.occ config:system:set ‘onlyoffice’=\> array (‘editors\_check\_interval’ =\> 0)  
> -bash: syntax error near unexpected token `(’

so i’m not sure whats wrong with my syntax

---

<div class="post-metadata">

**Author:** ![Pierrick584](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pierrick584/32/70364_2.png) [@Pierrick584](https://help.nextcloud.com/u/Pierrick584)\
**Post date:** [June 25, 2025, 12:29pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/5 "2025-06-25T12:29:19Z")

</div>

oh i dint know the CODE server was also good for onlyoffice, i though it was only for nextcloud office. maybe i should try it them

---

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [June 25, 2025, 12:36pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/6 "2025-06-25T12:36:58Z")

</div>

> [@Pierrick584](#):
>
> i though it was only for nextcloud office

CODE is only for Nextcloud office… I suggested an alternative!

---

<div class="post-metadata">

**Author:** ![Pierrick584](https://help.nextcloud.com/user_avatar/help.nextcloud.com/pierrick584/32/70364_2.png) [@Pierrick584](https://help.nextcloud.com/u/Pierrick584)\
**Post date:** [June 25, 2025, 12:43pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/7 "2025-06-25T12:43:51Z")

</div>

i see, well i really prefer onlyoffice. it work very well beside that check that deactivate it for some reason… so if i can get that command working i’ll be good to go.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [September 21, 2025, 5:09pm UTC](https://help.nextcloud.com/t/onlyoffice-server-snap-disconnect-everyday/227399/8 "2025-09-21T17:09:34Z")

</div>

This topic was automatically closed after 90 days. New replies are no longer allowed.
