onlyoffice-nextcloud icon indicating copy to clipboard operation
onlyoffice-nextcloud copied to clipboard

Documents cannot be edited frm Nextcloud with OO workspace

Open turin331 opened this issue 3 years ago • 3 comments

OO document server docker version: 6.4.2.6 Nextlcloud Version: 22.2 OnlyOffice app: 7.2

I updated to OO workspace using the official scripts from a previous version that was still 5.x (Docker installation - it was working fine on nextcloud until recently)

In the OO portal document editing works fine and on the nextcloud side the connection when configuring seems successful. But when opening a file in nextlcoud from firefox i get this message:

Screenshot from 2021-11-18 18-12-56

And opening in a new window the page just keeps loading for ever.

On Chrome on the other hand i get a "connection refused" message.

The connector just does not seem to work at all even though the URLs are all reachable.

turin331 avatar Nov 18 '21 17:11 turin331

Ok so i gave up with the old server and decided to make a completely clean installation of the workspace server. Still using the offcial script. But now i am getting a "Error when trying to connect (Error occurred in the document service: Invalid token)". I see no errors in the document server logs. I am at a complete loss. The previous versions of the document server worked fine with the same settings.

Any ideas? Is this a known bug? Need any additional things to be configured that is not in the installation instructions?

turin331 avatar Nov 21 '21 23:11 turin331

Hi turin331, I expect you already got the Token via /etc/onlyoffice/documentserver/local.json? then you will also have to add (or change) 'onlyoffice' => array ( 'jwt_header' => 'AuthorizationJwt',),

on nextcloud in nextcloud/config/config.php. If the entry exists, verify, that it is AuthorizationJwt and not only Authorization ... so was it for me!

Best regards

WuMaKu84 avatar Nov 28 '21 18:11 WuMaKu84

Hi turin331, I expect you already got the Token via /etc/onlyoffice/documentserver/local.json? then you will also have to add (or change) 'onlyoffice' => array ( 'jwt_header' => 'AuthorizationJwt',),

on nextcloud in nextcloud/config/config.php. If the entry exists, verify, that it is AuthorizationJwt and not only Authorization ... so was it for me!

Best regards

I did not have to do that with the previous version. There is also the issue for me that the nextcloud install is a hosted service that i do not have access to the the system files. But maybe i can ask support to handle it.

turin331 avatar Nov 29 '21 13:11 turin331