Collabora CODE and NextCloud Integration Shows Blank Editing Page and Spinning Circle



  • Trying to get NextCloud and Collabora CODE working. What we are doing is a little more advanced than any guide we've found, so we suspect that the issue is from that.

    In our setup... we have an NGinx Reverse Proxy, but this sits on its own server in front of both of the other workloads. NextCloud has its own server. Collabora has its own server. Collabora was built with Docker.

    Right now, we've made it a long way. Collabora is up and running and can be accessed from the outside through the reverse proxy. We can bring up the admin console and see the status of the system over HTTPS. So that is good.

    NextCloud has been in production for a long time, no issues there.

    We added the Collabora App, and entered the external name of the Collabora server. It gives a "saves with with error" and says to use the same protocol, but we are, so that is confusing. But does not seem to be an issue.

    We had to add a hosts file entry for the Collabora server to NextCloud so that it would know to point to the reverse proxy internally. After doing this, things started to almost work. We know that the certificate works now.

    When we go to open a document in NextCloud, it clearly connects to Collabora now and starts to open the document. The Collabora console lists the file being opened. But on NextCloud, we just get a spinning wheel and the screen stays blank otherwise. So we are close, but no cigar.

    Any idea where to look or where to start?



  • Getting the following logs from the docker container:

    wsd-00026-00053 2018-11-22 17:36:11.045672 [ docbroker_005 ] ERR  Cannot get file info from WOPI storage uri [https://nc.domain.com/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o?access_token=2mcS0atAQxZXjW25Be3rTmQexxAHHddO&access_token_ttl=0&permission=edit]. Error: Connection refused| wsd/Storage.cpp:446
    
    wsd-00026-00053 2018-11-22 17:36:11.048893 [ docbroker_005 ] ERR  Failed to add session to [/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o] with URI [https://nc.domain.com/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o?access_token=2mcS0atAQxZXjW25Be3rTmQexxAHHddO&access_token_ttl=0&permission=edit]: Connection refused| wsd/DocumentBroker.cpp:1041
    
    wsd-00026-00053 2018-11-22 17:36:11.049298 [ docbroker_005 ] ERR  Error while loading : Connection refused| wsd/LOOLWSD.cpp:2534
    

    Searching around, I found it could be related to the docker container not resolving the ip address properly, in this case it needing to be the internal ip.



  • @Romo said in Collabora CODE and NextCloud Integration Shows Blank Editing Page and Spinning Circle:

    Getting the following logs from the docker container:

    wsd-00026-00053 2018-11-22 17:36:11.045672 [ docbroker_005 ] ERR  Cannot get file info from WOPI storage uri [https://nc.domain.com/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o?access_token=2mcS0atAQxZXjW25Be3rTmQexxAHHddO&access_token_ttl=0&permission=edit]. Error: Connection refused| wsd/Storage.cpp:446
    
    wsd-00026-00053 2018-11-22 17:36:11.048893 [ docbroker_005 ] ERR  Failed to add session to [/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o] with URI [https://nc.domain.com/apps/richdocuments/wopi/files/59572_ocxqc3gr3v6o?access_token=2mcS0atAQxZXjW25Be3rTmQexxAHHddO&access_token_ttl=0&permission=edit]: Connection refused| wsd/DocumentBroker.cpp:1041
    
    wsd-00026-00053 2018-11-22 17:36:11.049298 [ docbroker_005 ] ERR  Error while loading : Connection refused| wsd/LOOLWSD.cpp:2534
    

    Searching around, I found it could be related to the docker container not resolving the ip address properly, in this case it needing to be the internal ip.

    The internal ip without a valid cert? Wondering for my home lab setup that has the same nginx reverse proxy in front of both services.



  • Just got it working, it was indeed a DNS issue. When launching the docker container I added the --add-host name:ip option to add an entry to the hosts file that pointed to the internal ip of our nextcloud server and that made it properly work.

    0_1543340489749_collabora-2.png

    Its now properly working 🙂



  • @Romo said in Collabora CODE and NextCloud Integration Shows Blank Editing Page and Spinning Circle:

    Just got it working, it was indeed a DNS issue. When launching the docker container I added the --add-host name:ip option to add an entry to the hosts file that pointed to the internal ip of our nextcloud server and that made it properly work.

    0_1543340489749_collabora-2.png

    Its now properly working 🙂

    I'll have to try that tonight!