Only Office Error ds-docservice, ds-converter service is not running or not enabled

NethServer Version: 7.9
Module: Only Office
I installed Only Office using the Wiki by mrmarkuz however in cockpit under system services these services are not running.

Please, review the following settings:

ds-docservice : The service is either not running or not enabled*
ds-converter : The service is either not running or not enabled

When i go to Onlyoffice setup in Nextcloud and enter the secret key from
cat /var/lib/nethserver/secrets/onlyoffice I get the following
" Error when trying to connect (Server error: GET https://xxx.xxxx.com:8082/healthcheck resulted in a 502 Bad Gateway response:502 Bad Gateway"
I have removed Onlyoffice and reinstalled by entering “yum autoremove onlyoffice-documentserver nginx msttcore-fonts-installer-2.6-1 onlyoffice-repo” and “signal-event nethserver-onlyoffice-update” Still get the same results.

if I go to https://server.xxx.com:8082 I get the following: “ONLYOFFICE Docs Community Edition installed”

Any help with this issue would be greatly appreciated.

Which versions of documentserver and nethserver-onlyoffice are you using? Documentserver 7.4.0-163 and nethserver-onlyoffice 0.0.3-1 should work.

rpm -qa nethserver-onlyoffice onlyoffice-documentserver

Maybe you need to rewrite the config files:

signal-event nethserver-onlyoffice-update

1 Like

Thanks mmarkuz for the quick reply below are the results from rpm -qa nethserver-onlyoffice onlyoffice-documentserver.

Blockquote rpm -qa nethserver-onlyoffice onlyoffice-documentserver
onlyoffice-documentserver-7.3.3-49.el7.x86_64
nethserver-onlyoffice-0.0.3-1.ns7.noarch
Blockquote
I have tried “signal-event nethserver-onlyoffice-update” with no change

Maybe you are using a buggy version, see also NethServer-Onlyoffice module upgrade to make the latest Onlyoffice versions work - #4 by mrmarkuz

Please try

yum -y reinstall https://mrmarkuz.dynu.net/mirror/devtest/nethserver-onlyoffice-0.0.3-1.ns7.noarch.rpm

If it still doesn’t work, let’s check the onlyoffice configuration:

config show fw_onlyoffice

occ config:app:get onlyoffice DocumentServerUrl

2 Likes

mrmarkuz once again thanks for the quick response I tried the reinstall with no luck in cockpit it still shows ds-docservice and ds-converter are not running and if I try to configure only office in Nextcloud by clicking save I get the Bad gateway 502 error. If i enter the domain:8082 in a browser it goes the the only office welcome page.

Blockquote
[root@dag-server ~]# config show fw_onlyoffice
fw_onlyoffice=service
NCPort=8082
TCPPort=8082
TCPPorts=8082
access=red,green
status=enabled
[root@dag-server ~]# occ config:app:get onlyoffice DocumentServerUrl
https://dag-server.zanedaniel.com:8082/
[root@dag-server ~]# occ onlyoffice:documentserver --check
Error connection: Server error: GET https://dag-server.zanedaniel.com:8082/healthcheck resulted in a 502 Bad Gateway response:

502 Bad Gateway

502 Bad Gateway


ngin (truncated...) > Blockquote

once again thanks for all your help with this issue

Is the password in /var/lib/nethserver/secrets/onlyofficesecret the same as in /etc/nginx/conf.d/ds.conf at line 58?

Maybe there’s an issue with template expansion?

expand-template /etc/nginx/conf.d/ds.conf

Please also check the systemd services:

systemctl status ds-docservice ds-converter -l

It could help to save the onlyoffice settings in Nextcloud and click the save button again at the bottom in the security settings.

1 Like

Blockquotesystemctl status ds-docservice ds-converter -l
â—Ź ds-docservice.service - Docs Docservice
Loaded: loaded (/usr/lib/systemd/system/ds-docservice.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-07-30 13:53:36 EDT; 8s ago
Process: 7607 ExecStart=/bin/sh -c exec /var/www/onlyoffice/documentserver/server/DocService/docservice >>/var/log/onlyoffice/documentserver/docservice/out.log 2>>/var/log/onlyoffice/documentserver/docservice/err.log (code=exited, status=1/FAILURE)
Main PID: 7607 (code=exited, status=1/FAILURE)
Jul 30 13:53:36 dag-server.zanedaniel.com systemd[1]: Unit ds-docservice.service entered failed state.
Jul 30 13:53:36 dag-server.zanedaniel.com systemd[1]: ds-docservice.service failed.
â—Ź ds-converter.service - Docs Converter
Loaded: loaded (/usr/lib/systemd/system/ds-converter.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2023-07-30 13:53:36 EDT; 9s ago
Process: 7613 ExecStart=/bin/sh -c exec /var/www/onlyoffice/documentserver/server/FileConverter/converter >>/var/log/onlyoffice/documentserver/converter/out.log 2>>/var/log/onlyoffice/documentserver/converter/err.log (code=exited, status=1/FAILURE)
Main PID: 7613 (code=exited, status=1/FAILURE)
Jul 30 13:53:36 dag-server.zanedaniel.com systemd[1]: Unit ds-converter.service entered failed state.
Jul 30 13:53:36 dag-server.zanedaniel.com systemd[1]: ds-converter.service failed.
[root@dag-server ~]# nano /var/log/onlyoffice/documentserver/docservice/out.log
[root@dag-server ~]# [root@dag-server ~]# nano /var/log/onlyoffice/documentserver/docservice/err.log
[root@dag-server ~]# [root@dag-server ~]#

Blockquote
/var/log/onlyoffice/documentserver/docservice/err.log
prelude/bootstrap.js:1697
throw error;
^
Error: Config file /etc/onlyoffice/documentserver/local.json cannot be read
at Config. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:752:11)
at /snapshot/server/build/server/DocService/node_modules/config/lib/config.js:595:28
at Array.forEach ()
at /snapshot/server/build/server/DocService/node_modules/config/lib/config.js:591:14
at Array.forEach ()
at Config. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:590:13)
at new Config (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:136:27)
at Object. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:1638:31)
at Module._compile (pkg/prelude/bootstrap.js:1751:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1101:10)
pkg/prelude/bootstrap.js:1697
throw error;
^
Error: Config file /etc/onlyoffice/documentserver/local.json cannot be read
at Config. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:752:11)
at /snapshot/server/build/server/DocService/node_modules/config/lib/config.js:595:28
at Array.forEach ()
at /snapshot/server/build/server/DocService/node_modules/config/lib/config.js:591:14
at Array.forEach ()
at Config. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:590:13)
at new Config (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:136:27)
at Object. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:1638:31)
at Module._compile (pkg/prelude/bootstrap.js:1751:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1101:10)
pkg/prelude/bootstrap.js:1697
throw error;
^
Error: Config file /etc/onlyoffice/documentserver/local.json cannot be read
at Config. (/snapshot/server/build/server/DocService/node_modules/config/lib/config.js:752:11)
at /snapshot/server/build/server/DocService/node_modules/config/lib/config.js:595:28
at Array.forEach ()

Fixed it I went in renamed /etc/onlyoffice/documentserver/local.json to local1.json ran signal-event nethserver-onlyoffice-update and its working for now.

1 Like