Onlyoffice server SNAP disconnect everyday

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

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

as an alternative consider built-in CODE service.

CODE & Nextcloud Office configuration

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

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

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

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.