No acceptable WOPI hosts found matching the target host

Hi all,

I have installed collabora docker image on ubuntu 16.04 and set up apache as per the instructions on the collabora site (Nextcloud Office - Self-hosted online office suite) You have to scroll donw to the section titled “Getting Started in 3 Steps”.

I got a letsencrypt certificate and it all looked to easy to be try… and it was. If I clicked on any doc to edit I just get a half loaded collabora UI with a spinning circle saying “connecting”. The only issue I can see is the error below from the docker instance logs.

[ docbroker_003 ] ERR Exception while invoking poll [docbroker_003] callback: No acceptable WOPI hosts found matching the target host [nextcloud.abc.co.za] in config.| ./net/Socket.hpp:382

I have no idea how to fix this. I have searched and found people with similar problems but their solutions do not work for me. For example it seems the documentation has been updated for the correct apache config. I assume this is some kind of DNS error but the site in pingable by dns name from the host.

I can also resolve the host name of the nextcloud server from within the docker image “openssl s_client -connect nextcloud.abc.co.za:443” works fine from within the container

Any ideas?

2 Likes

Ok found the issue. It is mentioned in the troubleshooting section on the collabora site but you have to scroll to see it. When you start the docker image the domain environment variable passed to docker should be the domain name of the nextcloud server and not the collabora server!

3 Likes

Wow! I really hope they clarify that in the docs had the same issue, thank you for sharing!!

Hello,

I have this problem. I’m running NextCloud as Plugin on a Plesk server.
I created a separate server for Collabora and run the docker command with the hostname for Plesk.

If I run "docker logs " I got this errors at the end:

wsd-00007-00048 2021-01-07 22:31:18.561350 [ docbroker_002 ] ERR No acceptable WOPI hosts found matching the target host [newtws.com] in config.| wsd/Storage.cpp:292

wsd-00007-00048 2021-01-07 22:31:18.561457 [ docbroker_002 ] ERR loading document exception: No acceptable WOPI hosts found matching the target host [newtws.com] in config.| wsd/DocumentBroker.cpp:1428

my Plesk server is “panel.newtws.com” at 45.62.203.200
What can I do to solve this?

Thanks.

Thank you! Just saved me quite a bit of searching and messing about.

Ref: CODE Documentation

The environment variables have been modified with the versions above or equal to 21.11.3.6

What was previously used to specify the nextcloud server
-e "domain=my_nice_domain\\.with_dot_escaped\\.org"
does not exist any more (probably because it has been implemented, that several document origins might be used for one collabora_host).

Therefore, replace it with:
-e "aliasgroup1=https://my_nice_domain\\.with_dot_escaped\\.org:443"

HINT: the port number (here 443) was not present with the “domain=” previous format. It was given in the linked documentation, so I reproduced it with the port number. No idea if a missing port number can broke again the configuration. (Did not test and won’t, because it works as expected when explicitly provided)

===
I assume that if you are here, it is because you have an easy configuration with a one(collabora)-to-one(nextcloud) constellation. If not, got seek about collabora and this new aliasgroup1 concept…

1 Like

Hello,

i also using the Collabora with Nextcloud Hub 4. But not possible to get Collabora working.

My Compose file

version: '3'
services:
  code:
    image: collabora/code:latest
    restart: always
    container_name: collabora
    cap_add:
      - MKNOD
    environment:
      - dictionaries=de_DE
      - aliasgroup1=https://cloud.domain.tld:443
      - username=admin
      - password=********
      - extra_params=--o ssl.enable=false --o ssl.termination=true
    ports:
      - 9980:9980

Error log:

collabora  | wsd-00001-00076 2023-03-27 19:24:33.226879 +0000 [ docbroker_006 ] ERR  Failed to add session to [https://cloud.domain.tld:443/index.php/apps/richdocuments/wopi/files/1538489_oc6n3y7swbbw] with URI [https://cloud.domain.tld/index.php/apps/richdocuments/wopi/files/1538489_oc6n3y7swbbw?access_token=0OodxrN4MsPdqZM5j1MVQGWUa58Hm2yU&access_token_ttl=1679981055000&permission=edit]: No acceptable WOPI hosts found matching the target host [cloud.domain.tld] in config| wsd/DocumentBroker.cpp:2418
collabora  | wsd-00001-00076 2023-03-27 19:24:33.226892 +0000 [ docbroker_006 ] ERR  Unauthorized Request while starting session on https://cloud.domain.tld:443/index.php/apps/richdocuments/wopi/files/1538489_oc6n3y7swbbw for socket #24. Terminating connection. Error: No acceptable WOPI hosts found matching the target host [cloud.domain.tld] in config| wsd/COOLWSD.cpp:4936

i also tried it with

aliasgroup1=https://my_nice_domain\\.with_dot_escaped\\.org:443

but not working. Whats wrong?

take a look at this post Important changes regarding COOL/CODE docker versions from v21.11.3.6 on (multiple domains setup) - #2 by wwe you will find working example there

i installed collabora last week on the host (coolwsd) turned off Docker.

With the latest Collabora Update (Version 8.0.1) in Nextcloud everything is working fine.

assume i’m going to install the latest version, I have to nextcloud instances to use collabora server
nextcloud instance domain 1 : nextcloud.fantasy.com
nextcloud instance domain 1 : nextcloud.wonderful.com

I look over the collabora official documentation about the docker installation, however it’s hard for me to understand what it writes
docker run -t -d -p 127.0.0.1:9980:9980 -e "aliasgroup1=https://<domain1>:443,https://<your-dot-escaped-aliasname1>|<your-dot-escaped-aliasname2>:443" -e "aliasgroup2=https://<domain2>:443" -e "username=admin" -e "password=S3cRet" --restart always collabora/code
How to modify this to what i need according to the documentation?

Finally I got my two Nextcloud instances working with one collabora server, here is my docker config
docker run -t -d -p 0.0.0.0:9980:9980 -e "aliasgroup1=https://nextcloud\.fantasy\.com:443" -e "aliasgroup2=https://nextcloud\.wonderful\.com:443" -e "username=adminadmin" -e "password=ChangeMe" -e "extra_params=--o:ssl.enable=false --o:ssl.termination=true" --name collabora --restart always --cap-add MKNOD collabora/code

1 Like