[Collabora Online Docker image] Cannot access a file on SMB external storage

Hello, i’ve installed Nextcloud with collabora following the guide on ubuntu 16.04 on aws machine for trial.
No problem at all, all works. Attached plugin for LDAP connected to our DC so i can login with my AD credential, its working good.
I’ve enabled external storage at attached it to a remote folder on our file server (windows)
I can edit without any problem any files that resied in /data/user in my nextcloud machine with collabora suite but when i try to open a xls or doc file from the mounted external storage collabora throw me an error.
SSL cert are ok.

ps: i’ve tried to copy the log but the interface cannot let me made more than 2 link, so i’ve put the file on gdrive here https://drive.google.com/open?id=0B2EFOK-7yzp3NnBNckMxNGE5Rnc

No one has these issue with external storage SMB?

Hello execcr.
I don’t see much errors in the provided logs.
Sounds like a permission issue. Do the www-data user have read & write access on the files ?
How have you mounted your SMB shares ?
Are you using the SMB driver of the external storage app or have you mounted it on the server using cifs-utils and then used the local driver of the external storage app ?
Or any other method ?
Regards.
Aal.

Hello sorry for the long delay and thanks for the kind response!
So, i’ve used the External Storage Support plugin (0.5.2).
Then in my user settings i’ve connected my private shared folder on out w2012r2 file server (aws-intranet vpn). i’ve used always the web user config panel, no operation has been made via CLI on the server and cifs-util)

Thanks a lot

I also am having this issue. I am running version 11, and 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 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.”.

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 [ client_ws_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 [ client_ws_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 [ client_ws_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 [ client_ws_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 [ client_ws_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 [ client_ws_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”}

Hi,

I have the same issue, running Nextcloud 11 and Collabora 2.1.2 on UCS. Editing files stored directly in Nextcloud is fine, trying to open a file located in an CIFS External Storage the Collabora UI loads but gives me an error: “Failed to read document from storage. Please contact your storage server () administrator.”.

“docker logs” for the collabora container says:

wsd-00025-00033 20:13:33.187401 [ websrv_poll ] WRN  WOPI host did not pass optional access_token_ttl| wsd/FileServer.cpp:355
wsd-00025-00056 20:13:35.612740 [ docbroker_004 ] ERR  WOPI::CheckFileInfo failed with 403 Forbidden| wsd/Storage.cpp:467
wsd-00025-00056 20:13:35.613429 [ docbroker_004 ] ERR  Failed to add session to [my.host.fqdn:443/nextcloud/index.php/apps/richdocuments/wopi/files/102136_oczu9i0qehmt] with URI [https://my.host.fqdn/nextcloud/index.php/apps/richdocuments/wopi/files/102136_oczu9i0qehmt?access_token=8lXq9EyyzJg0AC8qFa3xJIqrUxdFYxU4&access_token_ttl=0&permission=edit]: WOPI::CheckFileInfo failed| wsd/DocumentBroker.cpp:801
wsd-00025-00056 20:13:35.613992 [ docbroker_004 ] WRN  Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:285
wsd-00025-00056 20:13:35.614397 [ docbroker_004 ] WRN  Child session [0010] not found to forward message: load url=https://my.host.fqdn/nextcloud/index.php/apps/richdocuments/wopi/files/102136_oczu9i0qehmt?access_token=8lXq9EyyzJg0AC8qFa3xJIqrUxdFYxU4&access_token_ttl=0&permission=edit readonly=0 lang=de| wsd/DocumentBroker.cpp:1278
wsd-00025-00056 20:13:35.625816 [ docbroker_004 ] ERR  Socket #15 SSL BIO error: closed (0).| ./net/SslSocket.hpp:255
wsd-00025-00056 20:13:35.625945 [ docbroker_004 ] ERR  Socket #15 SSL BIO error: error:140D00CF:SSL routines:SSL_write:protocol is shutdown (errno: Success)| ./net/SslSocket.hpp:273
wsd-00025-00056 20:13:35.626048 [ docbroker_004 ] WRN  ToClient-0010: Exception while closing socket for docKey [my.host.fqdn:443/nextcloud/index.php/apps/richdocuments/wopi/files/102136_oczu9i0qehmt]: error:140D00CF:SSL routines:SSL_write:protocol is shutdown| wsd/ClientSession.cpp:816
wsd-00025-00026 20:13:36.615369 [ prisoner_poll ] WRN  Waking up dead poll thread [docbroker_004], started: true, finished: true| ./net/Socket.hpp:507
wsd-00025-00026 20:13:36.615429 [ prisoner_poll ] WRN  Waking up dead poll thread [docbroker_004], started: true, finished: true| ./net/Socket.hpp:507
wsd-00025-00026 20:13:36.615455 [ prisoner_poll ] WRN  Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:1363
wsd-00025-00026 20:13:36.615577 [ prisoner_poll ] WRN  Waking up dead poll thread [docbroker_004], started: false, finished: true| ./net/Socket.hpp:507
wsd-00025-00026 20:13:36.615606 [ prisoner_poll ] WRN  Waking up dead poll thread [docbroker_004], started: false, finished: true| ./net/Socket.hpp:507

Can I do some further debugging?

Hi,

I have the same issue with Nextcloud 12 and Collabora . Editing files stored directly in Nextcloud is fine, trying to open a file located in an External Storage the Collabora gives the error: “Failed to read document from storage. Please contact your storage server (cloud.xx.com) administrator.”.