Collabora not opening document in Nextcloud 23

NethServer Version: NethServer release 7.9.2009 (final)
Module: Nextcloud, Collabora

nethserver-nextcloud-1.19.3-1.ns7.noarch
Next cloud 'version' => '23.0.2.1'
Collabora version: 21.06.9

Issue Description:
When I try to opening an office document online wiht nextcloud via collabora for editing the document is not opened but the following error message which is shown:

Collabora was working perfect since I installed it about 8 months ago.

It seems the issue happened after the last nextcloud update
Feb 28 07:22:59 server1 yum[390]: Updated: nethserver-lang-de-1.4.6-19.ns7.noarch

I tried so far the following - but without luck/no change in behaviour:

https://community.nethserver.org/t/nextcloud-collabora-errors/19842
So I did set 'allow_local_remote_servers' => true, in /usr/share/nextcloud/config/config.php

I also came across the following post:
https://community.nethserver.org/t/nextcloud-23-community-document-server-for-onlyoffice-not-supported/19734

which links to the following post:
https://help.nextcloud.com/t/psa-how-to-get-collabora-working-on-nextcloud-23/128511

But I’m not fully sure this is linked to my issue so I did not follow this to avoid further issues.

Any hint to where I can search in addition is much appreciated.
Many thanks!


Below some additional infos:

[root@server1 nextcloud]# systemctl status coolwsd -l
● coolwsd.service - Collabora Online WebSocket Daemon
   Loaded: loaded (/usr/lib/systemd/system/coolwsd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2022-03-05 06:41:27 CET; 2h 36min ago
 Main PID: 911 (coolwsd)
   CGroup: /system.slice/coolwsd.service
           ├─ 911 /usr/bin/coolwsd --version --o:sys_template_path=/opt/cool/systemplate --o:child_root_path=/opt/cool/child-roots --o:file_server_root_path=/usr/share/coolwsd
           ├─3462 /usr/bin/coolforkit --losubpath=lo --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-vbhagk50 --rlimits=limit_virt_mem_mb:0;limit_stack_mem_kb:8000;limit_file_size_mb:0;limit_num_open_files:0 --version --ui=default
           └─3530 /usr/bin/coolforkit --losubpath=lo --systemplate=/opt/cool/systemplate --lotemplate=/opt/collaboraoffice --childroot=/opt/cool/child-roots/ --clientport=9980 --masterport=coolwsd-vbhagk50 --rlimits=limit_virt_mem_mb:0;limit_stack_mem_kb:8000;limit_file_size_mb:0;limit_num_open_files:0 --version --ui=default

Mar 05 07:02:47 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:02:47.465846 +0100 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: 15dc78e| wsd/FileServer.cpp:499
Mar 05 07:02:47 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:02:47.847085 +0100 [ websrv_poll ] ERR  FileServerRequestHandler::NotAuthenticated: No authentication information found| wsd/FileServer.cpp:693
Mar 05 07:02:55 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:02:55.047379 +0100 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: 15dc78e| wsd/FileServer.cpp:499
Mar 05 07:02:55 server1.home.lan coolwsd[911]: wsd-00911-03538 2022-03-05 07:02:55.047489 +0100 [ admin ] WRN  Ignoring attempted read from 22| ./net/Socket.hpp:1095
Mar 05 07:03:00 server1.home.lan coolwsd[911]: wsd-00911-03538 2022-03-05 07:03:00.669436 +0100 [ admin ] WRN  Ignoring attempted read from 22| ./net/Socket.hpp:1095
Mar 05 07:03:00 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:03:00.790224 +0100 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: 15dc78e| wsd/FileServer.cpp:499
Mar 05 07:03:03 server1.home.lan coolwsd[911]: wsd-00911-03538 2022-03-05 07:03:03.375948 +0100 [ admin ] WRN  Ignoring attempted read from 22| ./net/Socket.hpp:1095
Mar 05 07:03:03 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:03:03.402989 +0100 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: 15dc78e| wsd/FileServer.cpp:499
Mar 05 07:03:28 server1.home.lan coolwsd[911]: wsd-00911-03538 2022-03-05 07:03:28.467918 +0100 [ admin ] WRN  Ignoring attempted read from 22| ./net/Socket.hpp:1095
Mar 05 07:03:28 server1.home.lan coolwsd[911]: wsd-00911-03537 2022-03-05 07:03:28.611551 +0100 [ websrv_poll ] WRN  client - server version mismatch, disabling browser cache. Expected: 15dc78e| wsd/FileServer.cpp:499
[root@server1 nextcloud]#
  • Connection to Collabora from nethserver admin page seems ok.

  • I also tried to use a collabora demo server - same issue.

  • /var/log/messages log for coolwsd (errors only)

[root@server1 nextcloud]# more /var/log/messages |grep 'cool.*ERR'
Mar  5 05:46:31 server1 coolwsd: wsd-03880-03884 2022-03-05 05:46:31.933884 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-g3KcanbNeFObFuap/callbackwrapper:] only: File not found| common/FileUtil.cpp:286
Mar  5 05:46:31 server1 coolwsd: wsd-03880-03884 2022-03-05 05:46:31.934341 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-g3KcanbNeFObFuap/] only: File not found| common/FileUtil.cpp:286
Mar  5 06:10:40 server1 coolwsd: wsd-03880-03884 2022-03-05 06:10:40.533096 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-3ZC9PG5IktYcCTx1/callbackwrapper:] only: File not found| common/FileUtil.cpp:286
Mar  5 06:10:40 server1 coolwsd: wsd-03880-03884 2022-03-05 06:10:40.533293 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-3ZC9PG5IktYcCTx1/] only: File not found| common/FileUtil.cpp:286
Mar  5 06:10:41 server1 coolwsd: wsd-03880-03884 2022-03-05 06:10:41.249874 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-hNzT0Wkeu0G6ZScG/callbackwrapper:] only: File not found| common/FileUtil.cpp:286
Mar  5 06:10:41 server1 coolwsd: wsd-03880-03884 2022-03-05 06:10:41.250111 +0100 [ prisoner_poll ] ERR  Failed to remove [/opt/cool/child-roots/tmp/incoming/cool-hNzT0Wkeu0G6ZScG/] only: File not found| common/FileUtil.cpp:286
Mar  5 06:41:59 server1 coolwsd: wsd-00911-00911 2022-03-05 06:41:59.612326 +0100 [ coolwsd ] ERR  Failed to open directory [/usr/bin/browser/welcome] (ENOENT: No such file or directory)| wsd/FileServer.cpp:737
Mar  5 06:41:59 server1 coolwsd: wsd-00911-00911 2022-03-05 06:41:59.826317 +0100 [ coolwsd ] ERR  #16 Bind to location coolwsd-vbhagk50 result - 0 (EOPNOTSUPP: Operation not supported)| net/Socket.cpp:1005
Mar  5 07:02:38 server1 coolwsd: wsd-00911-03537 2022-03-05 07:02:38.626855 +0100 [ websrv_poll ] ERR  FileServerRequestHandler::NotAuthenticated: No authentication information found| wsd/FileServer.cpp:693
Mar  5 07:02:47 server1 coolwsd: wsd-00911-03537 2022-03-05 07:02:47.847085 +0100 [ websrv_poll ] ERR  FileServerRequestHandler::NotAuthenticated: No authentication information found| wsd/FileServer.cpp:693
[root@server1 nextcloud]#
  • There is no logging in /var/lib/nethserver/nextcloud/nextcloud.log when I open a file on nextcloud for online editing with collabora.

  • Also no log at all in /var/opt/rh/rh-php73/log/php-fpm/error-nextcloud.log

  • webbrowser console errors:

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension:157:351


Uncaught 
Exception { name: "", message: "", result: 2153381986, filename: "https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7", lineNumber: 25, columnNumber: 0, data: null, stack: "trigger@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:66171\ntrigger/<@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:66457\neach@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:14:2654\neach@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:14:1326\ntrigger@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:66432\no</</e.fn[n]@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:959:9051\nshowEditor@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:227924\nshowEditor/<@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:223140\nsetTimeout handler*showEditor@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:223122\nloadDocument@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:228843\ninitSession/<@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:228782\nl@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:23982\nadd@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:24262\ninitSession@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:228763\n@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:229814\nu@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:25700\nDeferred/then/a/</c<@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:26002\nsetTimeout handler*Deferred/then/a/<@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:26211\nl@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:23982\nadd@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:24262\nDeferred/then/<@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:26308\no</e.Deferred@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:959:11332\nthen@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:26236\nC.fn.ready@https://server1FQDN/nextcloud/core/js/dist/main.js?v=9b03f8f7:25:27534\n@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:229598\n@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:230032\n@https://server1FQDN/nextcloud/apps/richdocuments/js/richdocuments-document.js?v=9b03f8f7:2:230036\n" }
jquery.js:510


Content Security Policy: The page’s settings blocked the loading of a resource at https://collaboraFQDN/browser/15dc78e/cool.html?WOPISrc=https%3A%2F%2Fserver1FQDN%2Fnextcloud%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F35343_ocxfe4sbc75x&title=testMappe1.xlsx&lang=de&closebutton=1&revisionhistory=1 (“form-action”). jquery.js:8288:11
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension:157:351
FAILED Office.vue:198
    loadingTimeout Office.vue:198
    (Async: setTimeout handler)
    load Office.vue:197
    mounted Office.vue:184
    VueJS 19
    r Viewer.vue:388
    c runtime.js:63
    _invoke runtime.js:294
    g runtime.js:119
    ka viewer-main.js:2
    a viewer-main.js:2
    (Async: promise callback)
    ka viewer-main.js:2
    a viewer-main.js:2
    Ba viewer-main.js:2
    Ba viewer-main.js:2
    openFile Viewer.vue:448
    file Viewer.vue:263
    VueJS 5
  • installed packages:
collaboraoffice                               21.06.9        21.06.9-1
collaboraoffice6.4                            6.4.10.34      6.4.10.34-34
collaboraoffice6.4-dict-en                    6.4.10.34      6.4.10.34-34
collaboraoffice6.4-ure                        6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-calc                  6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-core                  6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-draw                  6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-en-US                 6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-extension-pdf-import  6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-graphicfilter         6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-images                6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-impress               6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-ooofonts              6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-ooolinguistic         6.4.10.34      6.4.10.34-34
collaboraofficebasis6.4-writer                6.4.10.34      6.4.10.34-34
collaboraofficebasis-calc                     21.06.9        21.06.9-1
collaboraofficebasis-core                     21.06.9        21.06.9-1
collaboraofficebasis-draw                     21.06.9        21.06.9-1
collaboraofficebasis-en-US                    21.06.9        21.06.9-1
collaboraofficebasis-extension-pdf-import     21.06.9        21.06.9-1
collaboraofficebasis-graphicfilter            21.06.9        21.06.9-1
collaboraofficebasis-images                   21.06.9        21.06.9-1
collaboraofficebasis-impress                  21.06.9        21.06.9-1
collaboraofficebasis-math                     21.06.9        21.06.9-1
collaboraofficebasis-ooofonts                 21.06.9        21.06.9-1
collaboraofficebasis-ooolinguistic            21.06.9        21.06.9-1
collaboraofficebasis-writer                   21.06.9        21.06.9-1
collaboraoffice-dict-en                       21.06.9        21.06.9-1
collaboraoffice-ure                           21.06.9        21.06.9-1

nethserver-collabora 0.1.6 0.1.6-1.ns7

nethserver-nextcloud 1.19.3 1.19.3-1.ns7

  • coolwsd config:
[root@server1 share]# config show coolwsd
coolwsd=service
    AllowWopiHost=
    VirtualHost=<SERVER1FQDN>
    status=enabled
[root@server1 share]# #
1 Like

I could reproduce the issue, updating the richdocuments Nextcloud app to 5.0.3 helped in my case.

Update on CLI:

occ app:update richdocuments

2 Likes

Perfect, this solved the issue. Many thanks for the fast reply :smiley:

1 Like