Onlyoffice Error when trying to connect (Error occurred in the document service: Invalid token)

NethServer Version: latest
Module: onlyoffice

I have followed the install instructions, as well as the threads, but I cant find something to help me.
I followed the install instructions on the wiki, and signaled for nextcloud, but not sure now.
when I save the documentsserver settings inside nextcloud I get the error
Error when trying to connect (Error occurred in the document service: Invalid token)
the document server is running on port 8082

@mrmarkuz any thoughts

Usually the token should be set automatically.

Which version of documentserver did you install?

https://wiki.nethserver.org/doku.php?id=onlyoffice#documentserver_version_52

i installed v 5.2.8

Did you apply this?
I am not in front of a PC now, I’ll have a look at it later today.

I have just run that script the error still persists

Thanks, you found a bug.
The PHP version used in Nextcloud was updated to 7.2 and the onlyoffice module tries to use 7.1 for configuring the Nextcloud app. I am going to provide a module update.

As a workaround you may run the following commands:

sed -i s/php71/php72/g /etc/e-smith/events/actions/nethserver-onlyoffice-conf
signal-event nethserver-onlyoffice-update
3 Likes

when your server administration skills are not that great, youll always think you made an error even if it may be a bug. :wink:
Anyway, I have run the script but still the problem persists, let me know once its resolved.

Please check if the jwt token is set correctly.

To get the token:

cat /var/lib/nethserver/secrets/onlyoffice

Check if it’s entered correctly in the Nextcloud Admin Onlyoffice settings:

1 Like

thanks, after setting the token now only office works fine