"Quick tryout" not working?

I’m trying to setup the test Collabora+NextCloud deployment as described here, using the freshly released 6.4.14.2 doker image. I launched the CODE and NextCloud containers exactly as prescribed, set up the Collabora Online server in Nextcloud by using my machine IP on local network (192.168.1.122), and then created an ODS document in NextCloud. The result is that the document cannot be opened in CODE, with various error messages ranging from “Cleaning up the document from the last session” to the infamous “Well, this is embarassing” and finally “The server has been disconnected”. The CODE logs say:

wsd-00001-00165 2021-11-05 15:32:53.687934 [ docbroker_011 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:682
wsd-00001-00165 2021-11-05 15:32:53.688008 [ docbroker_011 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00165 2021-11-05 15:32:53.688032 [ docbroker_011 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00165 2021-11-05 15:32:53.688061 [ docbroker_011 ] ERR  WOPI::CheckFileInfo failed for URI [http://localhost/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt?access_token=MCGqgNd7Xz0XAMWDluAoYQz8uXCEef0z&access_token_ttl=0]: 0 . Headers:         Body: []| wsd/Storage.cpp:715
wsd-00001-00165 2021-11-05 15:32:53.688126 [ docbroker_011 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1926
wsd-00001-00165 2021-11-05 15:32:53.688146 [ docbroker_011 ] ERR  Failed to add session to [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt] with URI [http://localhost/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt?access_token=MCGqgNd7Xz0XAMWDluAoYQz8uXCEef0z&access_token_ttl=0]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1888
wsd-00001-00165 2021-11-05 15:32:53.688165 [ docbroker_011 ] ERR  Storage error while starting session on /index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt for socket #22. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/LOOLWSD.cpp:3612
wsd-00001-00165 2021-11-05 15:32:53.688269 [ docbroker_011 ] WRN  Ignoring attempted read from 22| ./net/Socket.hpp:1021
wsd-00001-00165 2021-11-05 15:32:53.688278 [ docbroker_011 ] ERR  Invalid or unknown session [025] to remove.| wsd/DocumentBroker.cpp:1969
wsd-00001-00035 2021-11-05 15:32:54.088134 [ websrv_poll ] WRN  DocBroker with docKey [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt] that is marked to be destroyed. Rejecting client request.| wsd/LOOLWSD.cpp:2161
wsd-00001-00035 2021-11-05 15:32:54.088300 [ websrv_poll ] ERR  Error while handling Client WS Request: Failed to create DocBroker with docKey [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt].| wsd/LOOLWSD.cpp:3641
wsd-00001-00035 2021-11-05 15:32:54.088342 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00035 2021-11-05 15:32:54.088376 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00035 2021-11-05 15:32:54.088393 [ websrv_poll ] WRN  Socket #29 is shutting down but 64 bytes couldn't be flushed and still remain in the output buffer.| ./net/WebSocketHandler.hpp:765
wsd-00001-00035 2021-11-05 15:32:54.088417 [ websrv_poll ] ERR  #29: attempted to remove: 756 which is > size: 0 clamped to 0| ./net/Socket.hpp:1120
wsd-00001-00035 2021-11-05 15:32:54.088445 [ websrv_poll ] WRN  Ignoring attempted read from 29| ./net/Socket.hpp:1021
wsd-00001-00035 2021-11-05 15:32:54.088465 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00035 2021-11-05 15:32:54.500462 [ websrv_poll ] WRN  DocBroker with docKey [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt] that is marked to be destroyed. Rejecting client request.| wsd/LOOLWSD.cpp:2161
wsd-00001-00035 2021-11-05 15:32:54.500559 [ websrv_poll ] ERR  Error while handling Client WS Request: Failed to create DocBroker with docKey [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt].| wsd/LOOLWSD.cpp:3641
wsd-00001-00035 2021-11-05 15:32:54.500581 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00035 2021-11-05 15:32:54.500599 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00035 2021-11-05 15:32:54.500608 [ websrv_poll ] WRN  Socket #29 is shutting down but 64 bytes couldn't be flushed and still remain in the output buffer.| ./net/WebSocketHandler.hpp:765
wsd-00001-00035 2021-11-05 15:32:54.500631 [ websrv_poll ] ERR  #29: attempted to remove: 756 which is > size: 0 clamped to 0| ./net/Socket.hpp:1120
wsd-00001-00035 2021-11-05 15:32:54.500653 [ websrv_poll ] WRN  Ignoring attempted read from 29| ./net/Socket.hpp:1021
wsd-00001-00035 2021-11-05 15:32:54.500669 [ websrv_poll ] ERR  #29: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00030 2021-11-05 15:32:55.688567 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:2248
wsd-00001-00167 2021-11-05 15:32:56.525504 [ docbroker_012 ] WRN  Waking up dead poll thread [HttpSynReqPoll], started: false, finished: false| ./net/Socket.hpp:682
wsd-00001-00167 2021-11-05 15:32:56.525614 [ docbroker_012 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00167 2021-11-05 15:32:56.525655 [ docbroker_012 ] ERR  #30: Socket write returned -1 (EPIPE: Broken pipe)| ./net/Socket.hpp:1284
wsd-00001-00167 2021-11-05 15:32:56.525713 [ docbroker_012 ] ERR  WOPI::CheckFileInfo failed for URI [http://localhost/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt?access_token=MCGqgNd7Xz0XAMWDluAoYQz8uXCEef0z&access_token_ttl=0&permission=edit]: 0 . Headers:       Body: []| wsd/Storage.cpp:715
wsd-00001-00167 2021-11-05 15:32:56.525883 [ docbroker_012 ] ERR  loading document exception: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1926
wsd-00001-00167 2021-11-05 15:32:56.525948 [ docbroker_012 ] ERR  Failed to add session to [/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt] with URI [http://localhost/index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt?access_token=MCGqgNd7Xz0XAMWDluAoYQz8uXCEef0z&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed: | wsd/DocumentBroker.cpp:1888
wsd-00001-00167 2021-11-05 15:32:56.526009 [ docbroker_012 ] ERR  Storage error while starting session on /index.php/apps/richdocuments/wopi/files/135_oc0j1uhi7ezt for socket #21. Terminating connection. Error: WOPI::CheckFileInfo failed: | wsd/LOOLWSD.cpp:3612
wsd-00001-00167 2021-11-05 15:32:56.526258 [ docbroker_012 ] WRN  Ignoring attempted read from 21| ./net/Socket.hpp:1021
wsd-00001-00167 2021-11-05 15:32:56.526296 [ docbroker_012 ] ERR  Invalid or unknown session [028] to remove.| wsd/DocumentBroker.cpp:1969
wsd-00001-00030 2021-11-05 15:32:58.526729 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:2248

I read tons of posts reporting similar problems, but none for the quick tryout setup. Since the procedure is extremely simple I believe I followed it correctly, but still it doesn’t work, so I’d say either my system is flawed or the quick tryout instructions are.
Any help/suggestion is greatly appreciated, thanks in advance.

This looks like the problem:

For whatever reason CODE cannot connect to the WOPI server (usually Nextcloud) that you’ve got installed. If you enter this docker container - can you confirm it can access localhost over http ? - sounds like a silly question but …

Presumably we can improve this error reporting “I can’t load your document from the WOPI server I got” would be a better description I think.

Oh - and -re-reading- the link you gave me it says:

Note 2: Do not use localhost or 127.0.0.1 instead of IP address of your computer, because these addresses do not resolve from the containers.

From the WOPI URL error you pasted above - the problem is you used ‘localhost’ and it does not resolve. Can you double-check? if so - can you think of a way we can make the documentation easier to understand there ?

Hi Michael, as I wrote in my first post I strictly followed the instructions and configured NextCloud with the IP of my machine:

I also saw the references to localhost in the CODE error log but I couldn’t figure out the reason. Finally, from within the CODE container I can ping both the host (192.168.1.122) and the NextCloud container (172.170.2), and a curl get to http://192.168.1.122:80 returns an error page from NextCloud saying that this site needs Javascript to be enabled, so yes I can contact NextCloud from CODE over http.
Thank you.

So I have been able to figure out what causes the problem: I was connecting to NextCloud with my browser by using localhost instead of the IP address. The browser used this url for sending the request to CODE, which then tried to reply to localhost. Accessing to NextCloud with the ip address of my machine fixes everything.
I understand it’s my fault, I overlooked point 3 of the quick tryout guide and assumed that Note 2 was intended just for the Collabora server settings and not for the browser url. I’m really sorry for the noise, thank you for your patience.

Oh - we should make the tryout guide clearer so it is obvious you have to connect to the IP address and not localhost I think =)

Hi. I can access Collabora and I can edit only the first file I click. When i open a second file it says server connecting then disconected, and it gives me the same error as above, unless I wait an absurd amount of time then i can edit that second file. I can eighter open the one or the other.

Can you point me in the right direction to solve this issue?

Hello @abelnc, please can you share the CODE version you experienced this issue on?

Also, perhaps a screen-ecording showing the issue would be great as well.