【发布时间】:2021-03-12 13:07:48
【问题描述】:
我正在使用 Docker Swarm 和 Collabora 实现 Owncloud,但我有几个问题。
当我打开 Collabora 的文档时,我会收到以下日志:
[docbroker_003] WRN Poco::Net::DNS:: resolveOne ("IP") failed: Host not found: IP | wsd/Storage.cpp: 186
[docbroker_003] ERR loading document exception: Host not found | wsd/DocumentBroker.cpp: 1429
[docbroker_003] ERR Failed to add session to [/apps/richdocuments/wopi/files/14_ock7koz4yimw_0_0] with URI [http://IP:8080/apps/richdocuments/wopi/files/ 14_ock7koz4yimw_0_0 access_token = ALd4bQKRdCqBphrG73XEKZ7CgCiIbbW4 & access_token_ttl = 0]: Host not found | wsd/DocumentBroker.cpp: 1391
但是,主机存在,在容器内我可以成功 curl 这个 URL。
当我通过 DNS(不是 IP)访问 Owncloud 时,我收到此错误
[docbroker_005] ERR No acceptable WOPI hosts found matching the target host [HOST] in config. | wsd/Storage.cpp: 292
[docbroker_005] ERR loading document exception: No acceptable WOPI hosts found matching the target host [HOST] in config. | wsd/DocumentBroker.cpp: 1429
[docbroker_005] ERR Failed to add session to [/apps/richdocuments/wopi/files/14_ock7koz4yimw_0_0] with URI [HOST:8080/apps/ richdocuments/wopi/files/14_ock7koz4yimw_0_0? access_token = X9wFvx_W_4_mhttp the target host [HOST] in config. | wsd/DocumentBroker.cpp: 1391
仅当我将容器网络作为主机时才有效。
在另一个环境中,仅使用 Docker Compose(没有 Swarm)可以完美运行。
有什么想法吗?
来自 Owncloud 和 Collabora 的图像是中心中的最新图像。 Docker 版本为 18.09。
谢谢。
【问题讨论】: