# No acceptable WOPI hosts found matching the target host

**URL:** <https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392>\
**Category:** 📄 Office\
**Tags:** collabora-online\
**Created:** [May 9, 2017, 6:19pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392 "2017-05-09T18:19:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxc](https://help.nextcloud.com/letter_avatar/mxc/32/5_5575768a8748004e209b776fc1b2916d.png) [@mxc](https://help.nextcloud.com/u/mxc)\
**Post date:** [May 9, 2017, 6:19pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/1 "2017-05-09T18:19:25Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![mxc](https://help.nextcloud.com/letter_avatar/mxc/32/5_5575768a8748004e209b776fc1b2916d.png) [@mxc](https://help.nextcloud.com/u/mxc)\
**Post date:** [May 9, 2017, 8:01pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/2 "2017-05-09T20:01:05Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Bellusterra](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bellusterra/32/9567_2.png) [@Bellusterra](https://help.nextcloud.com/u/Bellusterra)\
**Post date:** [December 18, 2018, 2:21pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/3 "2018-12-18T14:21:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fanpero](https://help.nextcloud.com/letter_avatar/fanpero/32/5_5575768a8748004e209b776fc1b2916d.png) [@fanpero](https://help.nextcloud.com/u/fanpero)\
**Post date:** [January 7, 2021, 10:46pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/4 "2021-01-07T22:46:34Z")

</div>

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](http://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](http://newtws.com)] in config.| wsd/DocumentBroker.cpp:1428

my Plesk server is “[panel.newtws.com](http://panel.newtws.com)” at 45.62.203.200  
What can I do to solve this?

Thanks.

---

<div class="post-metadata">

**Author:** ![adamshand](https://help.nextcloud.com/user_avatar/help.nextcloud.com/adamshand/32/38904_2.png) [@adamshand](https://help.nextcloud.com/u/adamshand)\
**Post date:** [January 29, 2022, 3:24am UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/5 "2022-01-29T03:24:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rLoutrel](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rloutrel/32/45184_2.png) [@rLoutrel](https://help.nextcloud.com/u/rLoutrel)\
**Post date:** [August 15, 2022, 12:15pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/6 "2022-08-15T12:15:09Z")

</div>

Ref: [CODE Documentation](https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html?highlight=acceptable%20wopi%20hosts#setting-the-application-configuration-dynamically-via-environment-variables)

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…

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [March 27, 2023, 7:31pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/7 "2023-03-27T19:31:58Z")

</div>

Hello,

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

My Compose file

```auto
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:

```auto
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

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

```

but not working. Whats wrong?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [April 11, 2023, 7:45pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/8 "2023-04-11T19:45:29Z")

</div>

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](https://help.nextcloud.com/t/important-changes-regarding-cool-code-docker-versions-from-v21-11-3-6-on-multiple-domains-setup/137867/2) you will find working example there

---

<div class="post-metadata">

**Author:** ![Lars\_M](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lars_m/32/23054_2.png) [@Lars\_M](https://help.nextcloud.com/u/Lars_M)\
**Post date:** [April 11, 2023, 8:36pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/9 "2023-04-11T20:36:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![weasam](https://help.nextcloud.com/letter_avatar/weasam/32/5_5575768a8748004e209b776fc1b2916d.png) [@weasam](https://help.nextcloud.com/u/weasam)\
**Post date:** [August 17, 2023, 9:33am UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/10 "2023-08-17T09:33:52Z")

</div>

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](http://nextcloud.fantasy.com)  
nextcloud instance domain 1 : [nextcloud.wonderful.com](http://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?

---

<div class="post-metadata">

**Author:** ![weasam](https://help.nextcloud.com/letter_avatar/weasam/32/5_5575768a8748004e209b776fc1b2916d.png) [@weasam](https://help.nextcloud.com/u/weasam)\
**Post date:** [December 31, 2023, 8:40am UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/11 "2023-12-31T08:40:29Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 2, 2024, 4:05pm UTC](https://help.nextcloud.com/t/no-acceptable-wopi-hosts-found-matching-the-target-host/12392/12 "2024-12-02T16:05:18Z")

</div>


