Webtop, Nextcloud, onlyoffice

NethServer Version: 7.9.2009
Module: Webtop / Nextcloud / OnlyOffice.

Hello friends,
I have a problem opening word and excel.
Even using the onlyoffice test with the command
# supervisorctl start ds: example

i get the error

image

how can i solve?

# rpm -qa |grep onlyoffice
nethserver-onlyoffice-0.0.2-1.ns7.noarch
onlyoffice-documentserver-7.1.1-23.x86_64

Thank you

I don’t know if it will solve your issue, however, i’d give to the command signal-event nethserver-onlyoffice-update a try.
Source: onlyoffice [NethServer Wiki]

1 Like

Thanks for pointing that out. I found no problems in Nextcloud.

As regards Webtop there seems to be an issue with Onlyoffice 7.1. I found following error in /var/log/onlyoffice/documentserver/docservice/out.log :

[ERROR] nodeJS - auth missing required parameter document.key (since 7.1 version)

As a workaround you may downgrade to Onlyoffice 7.0.1:

yum downgrade https://github.com/ONLYOFFICE/DocumentServer/releases/download/v7.0.1/onlyoffice-documentserver.x86_64.rpm

Apply configuration:

signal-event nethserver-onlyoffice-update

Now Onlyoffice should work again in Webtop.

The example page isn’t configured using a token yet. I’m going to add it in the next release.

If you like to use the example page now you need to get the jwt token first:

cat /var/lib/nethserver/secrets/onlyoffice

Now replace secret with the real one and set enable to true in /etc/onlyoffice/documentserver-example/default.json like:

...
    "token": {
        "enable": true,
        "useforrequest": true,
        "algorithmRequest": "HS256",
        "authorizationHeader": "Authorization",
        "authorizationHeaderPrefix": "Bearer ",
        "secret": "yNm6_dbOj1UKE_7DWDTETFxVv8mIbcAt",
        "expiresIn": "5m"
    }
...

After restarting the service, the example page should work:

supervisorctl restart ds:example

@mrmarkuz few hours ago Webtop was updated as package for Nethserver to version WebTop 5.18.2 and related connecting/deploying package for the distro.

Did you already verified if the issue occurs anyway? I am not able now to create a test installation.

1 Like

Yes, the new Webtop version was installed already.

Hi Markus,
I downgraded to version 7.01.
Webtop works fine while nextcloud presents me with a white screen and does not load anything.

Do you get an error when you click “save” in the Nextcloud Onlyoffice App settings?

No in the Nexcloud Onlyoffice App settings is OK

Do you use the current onlyoffice app 7.5.4?

[root@server2 ~]# occ app:list | grep onlyoffice
  - onlyoffice: 7.5.4

Please check the logs /var/log/onlyoffice/documentserver/docservice/out.log and /var/log/onlyoffice/documentserver/docservice/err.log for errors.

1 Like

occ app:list | grep onlyoffice

  • onlyoffice: 7.5.4

# tail -f /var/log/onlyoffice/documentserver/docservice/out.log
[2022-10-18T03:20:09.202] [WARN] nodeJS - Express server starting…
[2022-10-18T03:20:09.205] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. File system | Node.js v18.11.0 Documentation
[2022-10-18T03:20:09.388] [WARN] nodeJS - Express server listening on port 48000 in production-linux mode. Version: 7.0.1. Build: 37
# less /var/log/onlyoffice/documentserver/docservice/err.log
empty

Please share the relevant part of the log when the white page occurs.

Are you using a domain name (instead of IP) to browse to Nextcloud?

Did you install a valid cert like letsencrypt on the server?

Did you already execute

signal-event nethserver-onlyoffice-update

as @pike suggested?

1 Like

Hi Markus,
i am using a domain name and the certificate is correctly installed.
By running the command on the out.log file I have this.

signal-event nethserver-onlyoffice-update
[2022-10-18T18:18:33.688] [WARN] nodeJS - Express server starting…
[2022-10-18T18:18:33.691] [WARN] nodeJS - Failed to subscribe to plugin folder updates. When changing the list of plugins, you must restart the server. File system | Node.js v18.11.0 Documentation
[2022-10-18T18:18:33.698] [ERROR] nodeJS - [AMQP] Error: connect ECONNREFUSED 127.0.0.1:5672
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
[2022-10-18T18:18:34.822] [WARN] nodeJS - Express server listening on port 48000 in production-linux mode. Version: 7.0.1. Build: 37

Messages when the white window appears none

Let’s check if rabbitmq is listening:

[root@server2 ~]# netstat -tlpn | grep 5672
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      32149/beam.smp      
tcp6       0      0 :::5672                 :::*                    LISTEN      32149/beam.smp
1 Like