CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.78k stars 681 forks source link

Document upload failed error message points to wrong url #7956

Open pedropintosilva opened 8 months ago

pedropintosilva commented 8 months ago

Describe the Bug

Thanks to @talesam for testing and promptly reporting back! :tada:

I'm trying to run Collabora locally on my desktop, but I'm getting the following error:
"Document upload failed
A failure occurred while establishing the socket connection, or the socket connection was closed unexpectedly. The reverse proxy may be misconfigured, contact your administrator. For more information about proxy configuration see: https://sdk.collaboraonline.com/installation/Proxy_settings.html"

https://sdk.collaboraonline.com/installation/Proxy_settings.html is wrong the correct link should be : https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html

I was expecting the errorMessages.websocketproxyfailure in browser/src/errormessages.js to be the culprit but it seems correct:

errorMessages.websocketproxyfailure = _('Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout https://sdk.collaboraonline.com/docs/installation/Proxy_settings.html');

@talesam could you please state what are the versions on your end? And if possible where that message appeared (if in console, popup from Collabora Online UI or popup for Nextcloud UI)

talesam commented 8 months ago

It happens in all 23 versions, I tested them all. It does not create the correct configuration of coolwsd.xml, the part to allow the host to communicate with collabora is missing

pedropintosilva commented 8 months ago

cc: @Rash419

Rash419 commented 8 months ago

Alright, can you share the logs ?

talesam commented 8 months ago

Let's go in parts, I'll tell you what I did... I used Collabora version 22 without needing to mount coolwsd.xml, but I started having errors and I looked a lot and didn't find a solution, so I went back to 22 and it worked. So I went into the container and checked the coolwsd.xml file from version 22 and 23, one of the things is that version 23 did not configure the server available to access collabora, so I got version 22 of the file and edited it on top and I used it in version 23 and it worked perfectly, so now I use it mounted.

version: '3.9'

services:
  collabora:
    container_name: collabora
    #image: collabora/code:22.05.14.3.1
    image: collabora/code:23.05.6.4.1

    restart: always

    environment:
      - username=admin
      - password=MYPASSWORD
      - aliasgroup1=https://cloud.talesam.org:443
      - extra_params=-o:welcome.enable=false
      - dictionaries=en_US es_ES pt_BR pt_PT
    volumes:
      - /home/tales/Docker/Collabora/fonts/truetype:/usr/share/fonts/truetype
      - /home/tales/Docker/Collabora/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype
      - /home/tales/Docker/Collabora/coolwsd.xml:/etc/coolwsd/coolwsd.xml
    expose:
      - 9980
    networks:
      - collabora-net
      - npm-net

networks:
  collabora-net:
    name: collabora-net
  npm-net:
    external: true

Now I'm testing again without the modified cooldws.xml file and it's accessing normally. I found the error.

kit-00027-00025 2024-01-05 22:59:20.658203 +0000 [ kit_spare_001 ] TRC  #18: Resetting thread affinity while in transit (was 0xffffa441e020)| net/Socket.hpp:343
kit-00027-00025 2024-01-05 22:59:20.658213 +0000 [ kit_spare_001 ] TRC  #18: Set socket buffer size to 262144| net/Socket.hpp:254
wsd-00001-00024 2024-01-05 22:59:20.658212 +0000 [ prisoner_poll ] TRC  #18: StreamSocket ctor| net/Socket.hpp:945
wsd-00001-00024 2024-01-05 22:59:20.658215 +0000 [ prisoner_poll ] TRC  #18: Connected to WS Handler 0xffff840023c0| net/WebSocketHandler.hpp:185
wsd-00001-00024 2024-01-05 22:59:20.658217 +0000 [ prisoner_poll ] TRC  #18: Prisoner connected| wsd/COOLWSD.cpp:3731
wsd-00001-00024 2024-01-05 22:59:20.658225 +0000 [ prisoner_poll ] DBG  #16: Accepted socket #18 is UDS - address uds-to-pid-27 and uid/gid 100/101| net/Socket.cpp:1032
wsd-00001-00024 2024-01-05 22:59:20.658232 +0000 [ prisoner_poll ] TRC  #16: Accepted client #18| net/ServerSocket.hpp:107
wsd-00001-00024 2024-01-05 22:59:20.658235 +0000 [ prisoner_poll ] TRC  Inserting socket #18, address [uds-to-pid-27], into prisoner_poll| net/Socket.hpp:734
wsd-00001-00024 2024-01-05 22:59:20.658237 +0000 [ prisoner_poll ] TRC  #18: Resetting thread affinity while in transit (was 0xffff89ab6040)| net/Socket.hpp:343
wsd-00001-00024 2024-01-05 22:59:20.658243 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #16: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658246 +0000 [ prisoner_poll ] TRC  #17: Handling poll events of prisoner_poll at index 1 (of 2): 0x0| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658249 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #17: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658252 +0000 [ prisoner_poll ] TRC  #16: setupPollFds getPollEvents: 0x1| net/Socket.hpp:861
wsd-00001-00024 2024-01-05 22:59:20.658254 +0000 [ prisoner_poll ] TRC  #17: setupPollFds getPollEvents: 0x1| net/Socket.hpp:861
wsd-00001-00024 2024-01-05 22:59:20.658256 +0000 [ prisoner_poll ] TRC  ppoll start, timeoutMicroS: 5000000 size 2| net/Socket.cpp:346
wsd-00001-00024 2024-01-05 22:59:20.658261 +0000 [ prisoner_poll ] TRC  Poll completed with 1 live polls max (5000000us)| net/Socket.cpp:364
wsd-00001-00024 2024-01-05 22:59:20.658263 +0000 [ prisoner_poll ] TRC  #7: Handling events of wakeup pipe: 0x1| net/Socket.cpp:368
wsd-00001-00024 2024-01-05 22:59:20.658265 +0000 [ prisoner_poll ] TRC  Wakeup pipe read 1 bytes| net/Socket.cpp:376
wsd-00001-00024 2024-01-05 22:59:20.658268 +0000 [ prisoner_poll ] TRC  Inserting 1 new sockets after the existing 2| net/Socket.cpp:388
wsd-00001-00024 2024-01-05 22:59:20.658270 +0000 [ prisoner_poll ] TRC  #18: Thread affinity set to 0xffff89ab6040 (was 0)| net/Socket.hpp:332
wsd-00001-00024 2024-01-05 22:59:20.658274 +0000 [ prisoner_poll ] TRC  Invoking 0 callbacks| net/Socket.cpp:405
wsd-00001-00024 2024-01-05 22:59:20.658276 +0000 [ prisoner_poll ] TRC  PrisonerPoll - wakes up with 0 new children and 0 brokers and 1 kits forking| wsd/COOLWSD.cpp:3425
wsd-00001-00024 2024-01-05 22:59:20.658282 +0000 [ prisoner_poll ] TRC  Rebalance children to 1, have 0 and 1 outstanding requests| wsd/COOLWSD.cpp:568
wsd-00001-00024 2024-01-05 22:59:20.658285 +0000 [ prisoner_poll ] TRC  PollSocket container size has changed from 2 to 3| net/Socket.cpp:432
wsd-00001-00024 2024-01-05 22:59:20.658287 +0000 [ prisoner_poll ] TRC  #17: Handling poll events of prisoner_poll at index 1 (of 2): 0x0| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658288 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #17: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658291 +0000 [ prisoner_poll ] TRC  #16: Handling poll events of prisoner_poll at index 0 (of 2): 0x0| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658293 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #16: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658294 +0000 [ prisoner_poll ] TRC  #16: setupPollFds getPollEvents: 0x1| net/Socket.hpp:861
wsd-00001-00024 2024-01-05 22:59:20.658296 +0000 [ prisoner_poll ] TRC  #17: setupPollFds getPollEvents: 0x1| net/Socket.hpp:861
wsd-00001-00024 2024-01-05 22:59:20.658299 +0000 [ prisoner_poll ] TRC  #18: setupPollFds getPollEvents: 0x1| net/Socket.hpp:861
wsd-00001-00024 2024-01-05 22:59:20.658301 +0000 [ prisoner_poll ] TRC  ppoll start, timeoutMicroS: 5000000 size 3| net/Socket.cpp:346
wsd-00001-00024 2024-01-05 22:59:20.658303 +0000 [ prisoner_poll ] TRC  Poll completed with 1 live polls max (5000000us)| net/Socket.cpp:364
wsd-00001-00024 2024-01-05 22:59:20.658305 +0000 [ prisoner_poll ] TRC  #7: Handling events of wakeup pipe: 0x0| net/Socket.cpp:368
wsd-00001-00024 2024-01-05 22:59:20.658309 +0000 [ prisoner_poll ] TRC  #18: Handling poll events of prisoner_poll at index 2 (of 3): 0x1| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658322 +0000 [ prisoner_poll ] TRC  #18: Read 3105 bytes in addition to 0 buffered bytes| net/Socket.hpp:1148
wsd-00001-00024 2024-01-05 22:59:20.658326 +0000 [ prisoner_poll ] TRC  #18: Incoming data buffer 3105 bytes, read result: 3105, events: 0x1 (not closed)| net/Socket.hpp:1320
wsd-00001-00024 2024-01-05 22:59:20.658339 +0000 [ prisoner_poll ] TRC  Parsing header given 159 bytes: User-Foo: Adminbits
Sec-WebSocket-Key: HGHZWWGS5S8j/DJtfcdwCQ==
Sec-WebSocket-| net/HttpRequest.cpp:123
wsd-00001-00024 2024-01-05 22:59:20.658353 +0000 [ prisoner_poll ] TRC  Read 157 bytes of header. hasContentLength: false, contentLength: -1, chunked: false:
User-Foo: Adminbits
Sec-WebSocket-Key: HGHZWWGS5S8j/DJtfcdwCQ==
Sec-WebSocket-Version: 13
Accept-Language: en
Cache-Control: no-cache
Pragma: no-cache
| net/HttpRequest.cpp:162
wsd-00001-00024 2024-01-05 22:59:20.658357 +0000 [ prisoner_poll ] TRC  #18: Child connection with URI [/coolws/newchild?jailid=PrjKat8x7FSgdcib&version=%7B%22BuildConfig%22:%22%27--enable-mpl-subset%27%20%27--with-vendor=Collabora%27%20%27--disable-community-flavor%27%20%27--with-branding=icon-themes%2Fgalaxy%2Fbrand_cp%27%20%27--with-system-dicts%27%20%27--with-myspell-dicts%27%20%27--with-system-zlib%27%20%27--disable-poppler%27%20%27--enable-cairo-rgba%27%20%27--without-system-cairo%27%20%27--without-system-fontconfig%27%20%27--without-system-freetype%27%20%27--without-system-graphite%27%20%27--without-system-harfbuzz%27%20%27--without-system-openssl%27%20%27--without-system-libpng%27%20%27--without-system-libxml%27%20%27--without-system-jpeg%27%20%27--without-system-expat%27%20%27--without-system-curl%27%20%27--without-system-icu%27%20%27--without-system-nss%27%20%27--without-system-jars%27%20%27--without-system-postgresql%27%20%27--without-java%27%20%27--without-junit%27%20%27--without-help%27%20%27--with-linker-hash-style=both%27%20%27--with-fonts%27%20%27--enable-noto-font%27%20%27--with-galleries=no%27%20%27--with-theme=colibre%20colibre_svg%27%20%27--with-external-thes-dir=%2Fusr%2Fshare%2Fmythes%27%20%27--with-external-hyph-dir=%2Fusr%2Fshare%2Fhyphen%27%20%27--with-external-dict-dir=%2Fusr%2Fshare%2Fhunspell%27%20%27--disable-dbus%27%20%27--enable-extension-integration%27%20%27--disable-odk%27%20%27--disable-kf5%27%20%27--disable-gtk3%27%20%27--disable-qt5%27%20%27--disable-gstreamer-1-0%27%20%27--disable-evolution2%27%20%27--disable-gio%27%20%27--disable-gui%27%20%27--disable-scripting-beanshell%27%20%27--disable-scripting-javascript%27%20%27--disable-ext-wiki-publisher%27%20%27--disable-report-builder%27%20%27--disable-ext-nlpsolver%27%20%27--disable-sdremote%27%20%27--disable-sdremote-bluetooth%27%20%27--disable-postgresql-sdbc%27%20%27--disable-firebird-sdbc%27%20%27--disable-randr%27%20%27--disable-ext-numbertext%27%20%27--enable-epm%27%20%27--enable-python=internal%27%20%27--disable-online-update%27%20%27--disable-dconf%27%20%27--enable-mergelibs%27%20%27--with-package-format=deb%20rpm%27%20%27--enable-release-build%27%20%27--with-lang=ar%20bg%20ca%20cs%20da%20de%20el%20en-US%20en-GB%20eo%20es%20eu%20fi%20fr%20gl%20he%20hr%20hu%20id%20is%20it%20ja%20ko%20lo%20nb%20nl%20oc%20pl%20pt%20pt-BR%20sq%20ru%20sk%20sl%20sv%20tr%20uk%20vi%20zh-CN%20zh-TW%27%20%27--disable-lotuswordpro%27%20%27--disable-lpsolve%27%20%27--enable-symbols%27%20%27--enable-sal-log%27%20%27--without-templates%27%20%27--with-external-tar=%2Fhome%2Fcollabora%2Fjenkins%2Fexternal%27%20%27--disable-symbols%27%20%27--with-package-format=deb%27%20%27--srcdir=%2Fhome%2Fcollabora%2Fjenkins%2Fworkspace%2Fcore-co-22.05-for-arm64-PI%27%20%27--enable-option-checking=fatal%27%22%2C%22BuildId%22:%22058f614e11f900235be7419e98030535979436de%22%2C%22ProductExtension%22:%22.6.4%22%2C%22ProductName%22:%22Collabora%20Office%22%2C%22ProductVersion%22:%2223.05%22%2C%22tunnelled_dialog_image_cache_size%22:%22100%22%7D]| wsd/COOLWSD.cpp:3821
wsd-00001-00024 2024-01-05 22:59:20.658382 +0000 [ prisoner_poll ] TRC  #18: New child spawned after 3209ms of requesting| wsd/COOLWSD.cpp:3848
wsd-00001-00024 2024-01-05 22:59:20.658405 +0000 [ prisoner_poll ] INF  #18: New child [27], jailId: PrjKat8x7FSgdcib| wsd/COOLWSD.cpp:3880
wsd-00001-00024 2024-01-05 22:59:20.658407 +0000 [ prisoner_poll ] TRC  #18: Calling make_shared<ChildProcess>, for NewChildren?| wsd/COOLWSD.cpp:3886
wsd-00001-00024 2024-01-05 22:59:20.658409 +0000 [ prisoner_poll ] TRC  #18: Upgrading to WebSocket| net/WebSocketHandler.hpp:945
wsd-00001-00024 2024-01-05 22:59:20.658414 +0000 [ prisoner_poll ] INF  #18: WebSocket version: 13, key: [HGHZWWGS5S8j/DJtfcdwCQ==], protocol: [chat]| net/WebSocketHandler.hpp:955
wsd-00001-00024 2024-01-05 22:59:20.658428 +0000 [ prisoner_poll ] TRC  #18: Sending WS Upgrade response: Date: Fri, 05 Jan 2024 22:59:20
Server: COOLWSD HTTP Server 23.05.6.4
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: 4MQdQIslT5eRMCroKsutnZQruwI=
| net/WebSocketHandler.hpp:967
wsd-00001-00024 2024-01-05 22:59:20.658442 +0000 [ prisoner_poll ] TRC  #18: Wrote 201 bytes of 201 buffered data| net/Socket.hpp:1453
wsd-00001-00024 2024-01-05 22:59:20.658447 +0000 [ prisoner_poll ] INF  ChildProcess ctor [27].| wsd/COOLWSD.hpp:64
wsd-00001-00024 2024-01-05 22:59:20.658451 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #18: Type::MOVE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658453 +0000 [ prisoner_poll ] TRC  #18: Resetting thread affinity while in transit (was 0xffff89ab6040)| net/Socket.hpp:343
wsd-00001-00024 2024-01-05 22:59:20.658456 +0000 [ prisoner_poll ] TRC  #18: Calling addNewChild in disposition's move thing to add to NewChildren| wsd/COOLWSD.cpp:3905
wsd-00001-00024 2024-01-05 22:59:20.658458 +0000 [ prisoner_poll ] TRC  Adding a new child 27 to NewChildren, have 0 outstanding requests| wsd/COOLWSD.cpp:631
wsd-00001-00024 2024-01-05 22:59:20.658460 +0000 [ prisoner_poll ] INF  Have 1 spare child after adding [27]. Notifying.| wsd/COOLWSD.cpp:637
wsd-00001-00024 2024-01-05 22:59:20.658490 +0000 [ prisoner_poll ] TRC  #17: Handling poll events of prisoner_poll at index 1 (of 3): 0x0| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658494 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #17: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658497 +0000 [ prisoner_poll ] TRC  #16: Handling poll events of prisoner_poll at index 0 (of 3): 0x0| net/Socket.cpp:460
wsd-00001-00024 2024-01-05 22:59:20.658499 +0000 [ prisoner_poll ] TRC  Executing SocketDisposition of #16: Type::CONTINUE| net/Socket.cpp:695
wsd-00001-00024 2024-01-05 22:59:20.658500 +0000 [ prisoner_poll ] TRC  Removing 1 socket of 3 total| net/Socket.cpp:495
wsd-00001-00024 2024-01-05 22:59:20.658503 +0000 [ prisoner_poll ] TRC  #18: Removing socket (at 2 of 3) from prisoner_poll to have 2 sockets| net/Socket.cpp:502
Ready to accept connections on port 9980.
wsd-00001-00001 2024-01-05 22:59:20.658539 +0000 [ coolwsd ] TRC  Have 1 new children.| wsd/COOLWSD.cpp:6028
wsd-00001-00001 2024-01-05 22:59:20.658873 +0000 [ coolwsd ] INF  WSD initialization complete: setting log-level to [warning] as configured.| wsd/COOLWSD.cpp:6043
wsd-00001-00001 2024-01-05 22:59:20.659333 +0000 [ coolwsd ] WRN  Waking up dead poll thread [main], started: false, finished: false| net/Socket.hpp:716
wsd-00001-00030 2024-01-05 22:59:52.841341 +0000 [ websrv_poll ] ERR  Poco::Net::DNS::resolve("144.22.139.77") failed: Host not found: 144.22.139.77| wsd/COOLWSD.cpp:4088
wsd-00001-00030 2024-01-05 22:59:52.841399 +0000 [ websrv_poll ] WRN  convert-to: Requesting address is denied: 144.22.139.77| wsd/COOLWSD.cpp:4095
frk-00025-00025 2024-01-05 23:00:02.261640 +0000 [ forkit ] WRN  The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/hosts] is out-of-date. Will have to copy sysTemplate to jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:525
wsd-00001-00032 2024-01-05 23:00:02.281945 +0000 [ docbroker_001 ] ERR  No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/Storage.cpp:294
wsd-00001-00032 2024-01-05 23:00:02.282081 +0000 [ docbroker_001 ] ERR  loading document exception: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/DocumentBroker.cpp:2640
wsd-00001-00032 2024-01-05 23:00:02.282107 +0000 [ docbroker_001 ] ERR  Failed to add session to [https%3A%2F%2Fcloud.talesam.org%3A443%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F2407296_ock9ngqvqfu1] with URI [https://cloud.talesam.org/index.php/apps/richdocuments/wopi/files/2407296_ock9ngqvqfu1?access_token=8BF9GfCbWwubRcNTTMFjiporM8ECRYaF&access_token_ttl=0]: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/DocumentBroker.cpp:2602
wsd-00001-00032 2024-01-05 23:00:02.282124 +0000 [ docbroker_001 ] ERR  Unauthorized Request while starting session on https%3A%2F%2Fcloud.talesam.org%3A443%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F2407296_ock9ngqvqfu1 for socket #25. Terminating connection. Error: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/COOLWSD.cpp:5317
kit-00027-00025 2024-01-05 22:59:20.658217 +0000 [ kit_spare_001 ] INF  New kit client websocket inserted.| kit/Kit.cpp:3233
kit-00027-00025 2024-01-05 22:59:20.658219 +0000 [ kit_spare_001 ] INF  Kit initialization complete: setting log-level to [warning] as configured.| kit/Kit.cpp:3238
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
wsd-00001-00034 2024-01-05 23:00:02.767437 +0000 [ docbroker_002 ] ERR  No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/Storage.cpp:294
wsd-00001-00034 2024-01-05 23:00:02.767544 +0000 [ docbroker_002 ] ERR  loading document exception: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/DocumentBroker.cpp:2640
wsd-00001-00034 2024-01-05 23:00:02.767560 +0000 [ docbroker_002 ] ERR  Failed to add session to [https%3A%2F%2Fcloud.talesam.org%3A443%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F2407296_ock9ngqvqfu1] with URI [https://cloud.talesam.org/index.php/apps/richdocuments/wopi/files/2407296_ock9ngqvqfu1?access_token=8BF9GfCbWwubRcNTTMFjiporM8ECRYaF&access_token_ttl=0&permission=edit]: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/DocumentBroker.cpp:2602
wsd-00001-00034 2024-01-05 23:00:02.767576 +0000 [ docbroker_002 ] ERR  Unauthorized Request while starting session on https%3A%2F%2Fcloud.talesam.org%3A443%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F2407296_ock9ngqvqfu1 for socket #25. Terminating connection. Error: No acceptable WOPI hosts found matching the target host [cloud.talesam.org] in config| wsd/COOLWSD.cpp:5317
wsd-00001-00034 2024-01-05 23:00:02.775376 +0000 [ docbroker_002 ] ERR  #18: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1138
wsd-00001-00034 2024-01-05 23:00:02.775507 +0000 [ docbroker_002 ] WRN  #18: Unassociated Kit (33) disconnected unexpectedly| wsd/COOLWSD.cpp:3763
frk-00025-00025 2024-01-05 23:00:02.819432 +0000 [ forkit ] WRN  The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/hosts] is out-of-date. Will have to copy sysTemplate to jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:525
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted
sh: 1: /usr/bin/coolmount: Operation not permitted

here I was using it like this:

   - aliasgroup1=https://servercolabora,https://servernextcloud:443

So I removed the server "https://servercolabora" and it started working again without the external configuration file.

talesam commented 8 months ago

My application: https://github.com/biglinux/biglinux-docker-nextcloud-plus

I'm creating an application in Docker that you install and already have a nextcloud running with Collabora, but I'm having difficulty running Collabora locally, if anyone can help me, the error I'm having when opening a file is:

"Document upload failed A failure occurred while establishing the socket connection, or the socket connection was closed unexpectedly. The reverse proxy may be misconfigured, contact your administrator. For more information about proxy configuration see: https://sdk.collaboraonline.com/installation/Proxy_settings.html"

video: https://cloud.talesam.org/s/LypcArLaRCGdZwa

log collabora: https://bitbin.it/b9fxWky7/raw/

log nextcloud: https://bitbin.it/LyWV3098/raw/

Rash419 commented 8 months ago
wsd-00001-00001 2024-01-05 13:22:23.485875 +0000 [ coolwsd ] WRN  Waking up dead poll thread [main], started: false, finished: false| net/Socket.hpp:718
wsd-00001-00031 2024-01-05 13:22:45.139636 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00031 2024-01-05 13:23:15.267808 +0000 [ websrv_poll ] ERR  #25: Looks like SSL/TLS traffic on plain http port| wsd/COOLWSD.cpp:4131
wsd-00001-00001 2024-01-05 13:23:23.979953 +0000 [ coolwsd ] WRN  Failed to update the infobar. Got: 400 (Bad Request) Bad Request| wsd/COOLWSD.cpp:5873
frk-00026-00026 2024-01-05 13:23:31.763921 +0000 [ forkit ] WRN  The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/hosts] is out-of-date. Will have to copy sysTemplate to jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:529
wsd-00001-00045 2024-01-05 13:23:31.764021 +0000 [ docbroker_001 ] ERR  #30: Read failed, have 0 buffered bytes (ECONNREFUSED: Connection refused)| net/Socket.hpp:1139
wsd-00001-00045 2024-01-05 13:23:31.764524 +0000 [ docbroker_001 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1447
wsd-00001-00045 2024-01-05 13:23:31.764541 +0000 [ docbroker_001 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| net/Socket.hpp:1447
wsd-00001-00045 2024-01-05 13:23:31.764578 +0000 [ docbroker_001 ] ERR  WOPI::CheckFileInfo failed for URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0]: 0 (Unknown) . Headers:     Body: []| wsd/Storage.cpp:712
wsd-00001-00045 2024-01-05 13:23:31.764637 +0000 [ docbroker_001 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2640
wsd-00001-00045 2024-01-05 13:23:31.764655 +0000 [ docbroker_001 ] ERR  Failed to add session to [http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x] with URI [http://localhost:8286/index.php/apps/richdocuments/wopi/files/208_ocegxcyz7p9x?access_token=dfLaEbFd1OBWUFzR6I745t15yfZb6ZPk&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:2602
wsd-00001-00045 2024-01-05 13:23:31.764670 +0000 [ docbroker_001 ] ERR  Storage error while starting session on http%3A%2F%2Flocalhost%3A8286%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F208_ocegxcyz7p9x for socket #25. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/COOLWSD.cpp:5330

This seems to be network problem. Can you explain a bit about your network structure ? Do you use reverse proxy etc ? it seems like you are trying to access collabora with "http" protocol but collabora is configured to use https

talesam commented 8 months ago

I'm not using a reverse proxy, I want to configure it locally, and disable SSL in the collabora configuration file. The project is here, if you want to take a look and contribute, you are welcome.

https://github.com/biglinux/biglinux-docker-nextcloud-plus