Skip to content

Cannot open documents anymore: Socket connection could not be established or was unexpectedly closed #4551

@MichaelSch

Description

@MichaelSch

Describe the bug
Since 2 days I am not able to open documents anymore within Nextcloud. I always get the error: “Socket connection could not be established or was unexpectedly closed. The reverse proxy may be misconfigured…”.

I recently updated to Hub 10 and Nextcloud Office 8.6.2. Apart from that I changed no configs and during my debbuging found out that Collabora is crashing in the docker container everytime I try to open a document.

wsd-00001-00039 2025-03-06 19:10:23.784357 +0000 [ docbroker_001 ] WRN  Cannot forward to unknown ClientSession [00c]: getclipboard| wsd/DocumentBroker.cpp:4824
wsd-00001-00039 2025-03-06 19:10:23.802575 +0000 [ docbroker_001 ] WRN  #38: Unassociated Kit (41) disconnected unexpectedly| wsd/COOLWSD.cpp:2925
wsd-00001-00039 2025-03-06 19:10:23.802597 +0000 [ docbroker_001 ] WRN  #38: Unknown Kit process closed with pid -1| wsd/COOLWSD.cpp:2936
wsd-00001-00024 2025-03-06 19:10:23.912743 +0000 [ asyncdns ] SIG   Fatal signal received: SIGABRT code: 18446744073709551610 for address: 0x3e900000001
Recent activity:
	coolwsd init
	initialized SSL
	spawning new forkit
	added child 31
	coolwsd accepting connections
	coolwsd running
	added child 38
	added child 36
	added child 37
	added child 41
	added child 42
	added child 43
	added child 44
	added child 45

Backtrace 1 - wsd 24.04.13.1 3dc280be53:
/usr/bin/coolwsd(_ZN7SigUtil13dumpBacktraceEv+0x73)[0x7fc6a3]
/usr/bin/coolwsd[0x7fcacd]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050)[0x7fb38fdae050]
/lib/x86_64-linux-gnu/libc.so.6(+0x8aebc)[0x7fb38fdfcebc]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x12)[0x7fb38fdadfb2]
/lib/x86_64-linux-gnu/libc.so.6(abort+0xd3)[0x7fb38fd98472]
/usr/bin/coolwsd[0x5be53f]
/lib/x86_64-linux-gnu/libc.so.6(+0x3c050)[0x7fb38fdae050]
/lib/x86_64-linux-gnu/libc.so.6(+0x152aab)[0x7fb38fec4aab]
/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt15basic_streambufIcSt11char_traitsIcEE6xsputnEPKcl+0x58)[0x7fb390197618]
/lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l+0x16d)[0x7fb39018988d]
/usr/bin/coolwsd(_ZN10SocketPoll6wakeupEv+0xfb)[0x5ffc0b]
/usr/bin/coolwsd(_ZNSt17_Function_handlerIFvSt10shared_ptrI12StreamSocketEN3net18AsyncConnectResultEEZN4http7Session12asyncConnectER10SocketPollEUlS2_S4_E_E9_M_invokeERKSt9_Any_dataOS2_OS4_+0x25d)[0x66cb8d]
/usr/bin/coolwsd[0x843509]
/usr/bin/coolwsd(_ZN3net8AsyncDNS10resolveDNSEv+0x6dd)[0x846b1d]
/usr/bin/coolwsd[0xc20bd3]
/lib/x86_64-linux-gnu/libc.so.6(+0x891c4)[0x7fb38fdfb1c4]
/lib/x86_64-linux-gnu/libc.so.6(__clone+0x40)[0x7fb38fe7aac0]
kit-00045-00045 2025-03-06 19:10:24.082234 +0000 [ kit_spare_009 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00044-00044 2025-03-06 19:10:24.082249 +0000 [ kit_spare_008 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00043-00043 2025-03-06 19:10:24.082251 +0000 [ kit_spare_007 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00042-00042 2025-03-06 19:10:24.082256 +0000 [ kit_spare_006 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
frk-00026-00040 2025-03-06 19:10:24.082360 +0000 [ subforkit_001 ] ERR  #21: ForKit connection lost without exit arriving from wsd. Setting TerminationFlag| kit/ForKit.cpp:210
kit-00038-00038 2025-03-06 19:10:24.082473 +0000 [ kit_spare_004 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00037-00037 2025-03-06 19:10:24.082528 +0000 [ kit_spare_003 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00036-00036 2025-03-06 19:10:24.082533 +0000 [ kit_spare_002 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195
kit-00031-00031 2025-03-06 15:04:29.035801 +0000 [ kit_spare_001 ] INF  New kit client websocket inserted.| kit/Kit.cpp:3786
kit-00031-00031 2025-03-06 15:04:29.035803 +0000 [ kit_spare_001 ] INF  Kit initialization complete: setting log-level to [warning] as configured.| kit/Kit.cpp:3800
kit-00031-00031 2025-03-06 19:10:24.082610 +0000 [ kit_spare_001 ] ERR  #24: Kit for DocBroker [] connection lost without exit arriving from wsd. Setting TerminationFlag| kit/KitWebSocket.cpp:195

After that I installed the built in CODE document server. I was not able to open any document as well.

I just downgraded the Nextcloud Office app to version 8.5.2 and I can open and edit documents. After updating to 8.6.2 once more it's broken. Therefore I think this is related to the app and not the config of my setup.

To Reproduce
Steps to reproduce the behavior:

  1. Update Nextcloud Office to 8.6.2.
  2. Try to open a document
  3. See error “Socket connection could not be established or was unexpectedly closed. The reverse proxy may be misconfigured…”

Expected behavior
I can open and edit documents

Client details:

  • OS: Windows, Linux, MacOS, iOS
  • Browser: Firefox, Edge, Safari

Server details

Operating system: Debian 12

Web server: Apache

Database: MariaDB

PHP version:

Nextcloud version: 31.0.0

Version of the richdocuments app 8.6.2

Version of Collabora Online 24.04.13.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions