Install collabora office on nextcloud server

install collabora office on nextcloud server,but open is created documents display Sorry, unable to connect to your document. Please Try Again

did you once reboot? (or restart your docker container?)

Yes, restart the server.and have restart my docker(systemctl restart docker)

could you check with this doc https://www.c-rieger.de/nextcloud-and-collabora-nginx/ if your installation is correct?

Looks like the docker start command is wrong

docker run -t -d -p 127.0.0.1:9980:9980 -e “domain=www\.zxycloud\.org” -e “username=admin” -e “password=123456” --restart always --cap-add MKNOD collabora/code:3.0.0.0
This is docker run command
https://www.filezxycloud.club/loleaflet/dist/admin/admin.html this page can normal open but also The same error occurred.

yes,I’ve configured the document you gave, but I still have the same error.

2018-09-09T07:27:19.836102903Z wsd-00026-00044 07:27:19.835451 [ docbroker_003 ] ERR Cannot get file info from WOPI storage uri [https://www.filezxycloud.club/apps/richdocuments/wopi/files/130_ocqjm2442flb?access_token=VkYK3OtTLzCahDTPtqn4OFvTZYaJyhCl&access_token_ttl=0&permission=edit]. Error: DNS error: Temporary DNS error while resolving: www.filezxycloud.club| wsd/Storage.cpp:533
2018-09-09T07:27:19.836140355Z wsd-00026-00044 07:27:19.835556 [ docbroker_003 ] ERR Failed to add session to [www.filezxycloud.club:443/apps/richdocuments/wopi/files/130_ocqjm2442flb] with URI [https://www.filezxycloud.club/apps/richdocuments/wopi/files/130_ocqjm2442flb?access_token=VkYK3OtTLzCahDTPtqn4OFvTZYaJyhCl&access_token_ttl=0&permission=edit]: DNS error| wsd/DocumentBroker.cpp:883
2018-09-09T07:27:19.836146827Z wsd-00026-00044 07:27:19.835586 [ docbroker_003 ] ERR Error while loading : DNS error| wsd/LOOLWSD.cpp:2239
2018-09-09T07:27:19.836487885Z wsd-00026-00044 07:27:19.835623 [ docbroker_003 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:271
2018-09-09T07:27:19.836498669Z wsd-00026-00044 07:27:19.835717 [ docbroker_003 ] WRN Child session [0009] not found to forward message: load url=https://www.filezxycloud.club/apps/richdocuments/wopi/files/130_ocqjm2442flb?access_token=VkYK3OtTLzCahDTPtqn4OFvTZYaJyhCl&access_token_ttl=0&permission=edit readonly=0 lang=zh-CN| wsd/DocumentBroker.cpp:1364
2018-09-09T07:27:19.836502381Z wsd-00026-00044 07:27:19.835743 [ docbroker_003 ] WRN Child session [0009] not found to forward message: useractive| wsd/DocumentBroker.cpp:1364
2018-09-09T07:27:19.836505285Z wsd-00026-00044 07:27:19.835757 [ docbroker_003 ] WRN Attempted ping on non-upgraded websocket!| ./net/WebSocketHandler.hpp:271
2018-09-09T07:27:20.838676028Z wsd-00026-00044 07:27:20.837696 [ docbroker_003 ] ERR No socket associated with WebSocketHandler 0x0x7f63c0012bb0| ./net/WebSocketHandler.hpp:96
2018-09-09T07:27:20.838719717Z wsd-00026-00027 07:27:20.837945 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_003], started: true, finished: true| ./net/Socket.hpp:507
2018-09-09T07:27:20.838727852Z wsd-00026-00027 07:27:20.838004 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_003], started: true, finished: true| ./net/Socket.hpp:507
2018-09-09T07:27:20.838733019Z wsd-00026-00027 07:27:20.838048 [ prisoner_poll ] WRN Prisoner connection disconnected but without valid socket.| wsd/LOOLWSD.cpp:1477
2018-09-09T07:27:20.838737743Z wsd-00026-00027 07:27:20.838101 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_003], started: false, finished: true| ./net/Socket.hpp:507
2018-09-09T07:27:20.838742421Z wsd-00026-00027 07:27:20.838141 [ prisoner_poll ] WRN Waking up dead poll thread [docbroker_003], started: false, finished: true| ./net/Socket.hpp:507

This is docker logs,For help
my nextcloud and collabora is installed the same machine and The DNS record is added to the hosts file


officezxycloud.club is my collabora office domain
filezxycloud.club is my nextcloud’s domain

inside the containers? or on the server that runs docker?

on the server that runs docker,is also installed nextcloud server

if it’s not as well in the /etc/hosts of the docker container, you would get the error message you posted.

Then how do I set it up?

Don’t use a hosts file, use a DNS server.

use a dns server, use the ip address of the nextcloud server or change the docker file of the onlyoffice container.

to test if the wrong /etc/hosts is really the problem ssh into your container and edit the /etc/hosts there. but keep in mind that this change is only temporary and will be lost when you next time create the container.
https://phase2.github.io/devtools/common-tasks/ssh-into-a-container/

ok,I’m try

ok,I try it


Hi
After I opened the document, I looked at the page code and showed that the request to the wopi host was 101 status code.
anything ideas for help me

not sure what you want to say.
but your onlyoffice container couldn’t resolve the name of the nextcloud server. is that fix and you have a new problem?