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 (https://nextcloud.com/collaboraonline/) 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…