nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
355 stars 116 forks source link

"Document loading failed": occ richdocuments:activate-config is not effective anymore. Admin has to set new WOPI host in the web GUI #2201

Open t-markmann opened 2 years ago

t-markmann commented 2 years ago

Describe the bug If you set wopi and public_wopi via OCC on cli, the new Collabora server will not open documents.

Instead: if you save the new host via web gui (/settings/admin/richdocuments), collabora works fine.

Client details:

Server details

Operating system: Ubuntu 20.04

Web server: Apache

Database: MySQL 5.7

PHP version: 8.0

Nextcloud version: 23.0.4

Version of the richdocuments app 5.0.4

Version of Collabora Online COOLWSD Version: 21.11.4.2 LOKit Version: Collabora OfficeDev 21.06.28.1

No logs written.

The was a fix/feature for the problem, but it does not seem to work anymore: https://github.com/nextcloud/richdocuments/pull/1137

Problem discussed here, too: https://github.com/nextcloud/richdocuments/issues/1007 https://github.com/nextcloud/richdocuments/issues/1181

t-markmann commented 2 years ago

Only workaround I found: 1) set the WOPI by CLI. 2) Run an NC Upgrade

The Updater process seems to run some repair tasks which fix successfully activates the new WOPI config.