Collabora not working with SMB share documents

I am having an issue with the Collabora system. I am running version 11, have used the Collabora Online Docker image, am using the External Support plugin (1.1.2) and have the Collabra working fine with local documents, but get an error when trying to view/edit documents on the SMB share. I am able to add, delete, and rename documents on the SMB share from NextCloud, so I don’t believe that it is a permissions issue on the SMB share. In NextCloud the Collabora frames load fine, then give the error “Well, this is embarrassing, we cannot connect to your document. Please try again.”. It looks like from this bug report (https://github.com/owncloud/richdocuments/issues/83) that this was identified and fixed in the Owncloud code, does the same thing need to be done in NextCloud’s code?

Here is what I get in the log file:

“log”:"\u001b[1m\u001b[33mwsd-00025-0027 21:00:19.344393 [ client_req_hdl ] WRN WO_PI host did not pass optional access_token_ttl| wsd/FileServer.cpp:255\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.344848179Z”}
“log”:"\u001b[1m\u001b[31mwsd-00025-25053 21:00:19.641760 [ clientws_0077 ] ERR DocBroker is invalid or premature termination of child process. Service Unavailable.| wsd/LOOLWSD.cpp:896\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.642142229Z”}
“log”:"\u001b[1m\u001b[31mwsd-00025-25053 21:00:19.642391 [ clientws_0077 ] ERR ClientRequestHandler::handleClientRequest: WebSocketErrorMessageException: error: cmd=socket kind=serviceunavailable| wsd/LOOLWSD.cpp:1208\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.642807477Z”}
“log”:"\u001b[1m\u001b[31mwsd-00025-16057 21:00:19.882895 [ clientws_0078 ] ERR WOPI::CheckFileInfo is missing JSON payload\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.883267554Z”}
“log”:"\u001b[1m\u001b[31mwsd-00025-16057 21:00:19.883571 [ clientws_0078 ] ERR Invalid fileinfo for URI [https://nextcloud.mydomain.com/apps/richdocuments/wopi/files/576_ocg06fq9lf61?access_token=56DmAByKrvU3MRRcUixeHCTYwfR2b1bm\u0026access_token_ttl=0\u0026permission=edit].| wsd/DocumentBroker.cpp:314\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.884024558Z”}
“log”:"\u001b[1m\u001b[31mwsd-00025-16057 21:00:19.883632 [ clientws_0078 ] ERR Failed to load document with URI [https://nextcloud.mydomain.com/apps/richdocuments/wopi/files/576_ocg06fq9lf61?access_token=56DmAByKrvU3MRRcUixeHCTYwfR2b1bm\u0026access_token_ttl=0\u0026permission=edit].| wsd/DocumentBroker.cpp:556\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.884049664Z”}
{“log”:"\u001b[1m\u001b[31mwsd-00025-16057 21:00:19.884146 [ clientws_0078 ] ERR Error in client request handler: Failed to load document with URI [https://nextcloud.mydomain.com/apps/richdocuments/wopi/files/576_ocg06fq9lf61?access_token=56DmAByKrvU3MRRcUixeHCTYwfR2b1bm\u0026access_token_ttl=0\u0026permission=edit].| wsd/LOOLWSD.cpp:1038\u001b[0m\r\n",“stream”:“stdout”,“time”:“2017-03-28T21:00:19.884541112Z”}

I’m having the same issue.
Collabora work fine with local documents, dropbox share and sftp share, but it’s not working with smb/cifs share.
“unauthorised WOPI-Host”

Here is my log file :
wsd-00026-00086 09:27:54.524167 [ docbroker_009 ] ERR Socket #15 SSL BIO error: closed (0).| ./net/SslSocket.hpp:255
wsd-00026-00086 09:27:54.524332 [ docbroker_009 ] ERR Socket #15 SSL BIO error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown (errno: Success)| ./net/SslSocket.hpp:273
wsd-00026-00086 09:27:54.524502 [ docbroker_009 ] WRN ToClient-004b: Exception while closing socket for docKey [nextcloud.st-etienne.archi.fr:443/index.php/apps/richdocuments/wopi/files/895154_ocqqjauyvdij]: error:140D00CF:SSL routines:SSL_write:protocol is shutdown| wsd/ClientSession.cpp:805
wsd-00026-00027 09:27:54.536338 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_009], started: true, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:27:54.536446 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_009], started: true, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:27:54.536639 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_009], started: false, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:27:54.536660 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_009], started: false, finished: true| ./net/Socket.hpp:507
wsd-00026-00034 09:28:06.343098 [ websrv_poll ] WRN WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:317
wsd-00026-00093 09:28:07.297547 [ docbroker_00a ] WRN Missing JSON property [HidePrintOption]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297610 [ docbroker_00a ] WRN Missing JSON property [HideSaveOption]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297636 [ docbroker_00a ] WRN Missing JSON property [HideExportOption]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297667 [ docbroker_00a ] WRN Missing JSON property [EnableOwnerTermination]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297690 [ docbroker_00a ] WRN Missing JSON property [DisablePrint]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297713 [ docbroker_00a ] WRN Missing JSON property [DisableExport]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297740 [ docbroker_00a ] WRN Missing JSON property [DisableCopy]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.297773 [ docbroker_00a ] WRN Missing JSON property [LastModifiedTime]| wsd/Storage.cpp:387
wsd-00026-00093 09:28:07.600829 [ docbroker_00a ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:285
wsd-00026-00093 09:28:09.017352 [ docbroker_00a ] ERR Socket #15 SSL BIO error: closed (0).| ./net/SslSocket.hpp:255
wsd-00026-00093 09:28:09.017622 [ docbroker_00a ] ERR Socket #15 SSL BIO error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown (errno: Success)| ./net/SslSocket.hpp:273
wsd-00026-00093 09:28:09.017840 [ docbroker_00a ] WRN ToClient-004d: Exception while closing socket for docKey [nextcloud.st-etienne.archi.fr:443/index.php/apps/richdocuments/wopi/files/895077_ocqqjauyvdij]: error:140D00CF:SSL routines:SSL_write:protocol is shutdown| wsd/ClientSession.cpp:805
wsd-00026-00027 09:28:09.042306 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_00a], started: true, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:28:09.042369 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_00a], started: true, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:28:09.042446 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_00a], started: false, finished: true| ./net/Socket.hpp:507
wsd-00026-00027 09:28:09.042471 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_00a], started: false, finished: true| ./net/Socket.hpp:507
wsd-00026-00034 09:28:17.340105 [ websrv_poll ] WRN WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:317
wsd-00026-00100 09:28:18.065233 [ docbroker_00b ] ERR WOPI::CheckFileInfo failed and no JSON payload returned. Access denied.| wsd/Storage.cpp:496
wsd-00026-00100 09:28:18.065360 [ docbroker_00b ] ERR Error while handling loading : Access denied.| wsd/LOOLWSD.cpp:2113
wsd-00026-00100 09:28:18.065631 [ docbroker_00b ] WRN Child session [004f] not found to forward message: load url=https://nextcloud.st-etienne.archi.fr/index.php/apps/richdocuments/wopi/files/108667_ocqqjauyvdij?access_token=wrFBCpLVnzh53ctIE8pflLgAu2BzAYQK&access_token_ttl=0&permission=edit readonly=0 lang=fr| wsd/DocumentBroker.cpp:1272
wsd-00026-00100 09:28:18.073688 [ docbroker_00b ] ERR Socket #15 SSL BIO error: closed (0).| ./net/SslSocket.hpp:255
wsd-00026-00100 09:28:18.073748 [ docbroker_00b ] ERR Socket #15 SSL BIO error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown (errno: Success)| ./net/SslSocket.hpp:273

which version of nextcloud, collabora and plugin are you using? I can open documents on smb shares in collabora.

Thanks for your reply.
I have no errors in samba log files.
Which versions of nextcloud and collabora are you using ?

Nextcloud server :
Ubuntu 16.04
Nextcloud 11.0.2 (stable)
Plugin : Collabora Online 1.11.28

Collabora server :
Docker on ubuntu 16.04
Collabora Office 5.3 docker image

Samba server :
Ubuntu 14.04
Samba 4.3.11

LDAP server :
ubuntu 12.04
slapd 2.4.28-1

the difference there is, I am using collabora-docker on the same machine, and not using ldap. Perhaps there is an issue.