ONLYOFFICE Developer Edition 演示问题——下载文件错误

ONLYOFFICE Developer Edition demo issue - error downloadFile

我使用以下命令在本地 windows 机器上安装了 运行 OnlyOffice docker 图像:

docker run -i -t -d -p 9950:80 --restart=always -v C:/work/only_office/logs:/var/log/onlyoffice onlyoffice/documentserver-de

然后 运行 本页描述的命令 - http://localhost:9950/welcome/ 用于测试 OnlyOffilce:

docker exec 2a9aa47c18a2 sudo supervisorctl start ds:example
docker exec 2a9aa47c18a2 sudo sed "s,autostart=false,autostart=true," -i /etc/supervisor/conf.d/ds-example.conf

此页面 - http://localhost:9950/example/ 开始工作。但是当我尝试创建、打开或上传文档时出现此错误:
以及日志文件中的错误:

[2020-07-07T12:30:24.892] [ERROR] nodeJS - error downloadFile:url=http://127.0.0.1:9950/example/files/172.17.0.1/new%20(2).docx;attempt=1;code:ECONNREFUSED;connect:null;(id=172.17.0.1http___127.0.0.1_9950_example_files_172.17.0.1_new_20_2_.docx1594125018845)
Error: connect ECONNREFUSED 127.0.0.1:9950
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
[2020-07-07T12:30:25.894] [ERROR] nodeJS - error downloadFile:url=http://127.0.0.1:9950/example/files/172.17.0.1/new%20(2).docx;attempt=2;code:ECONNREFUSED;connect:null;(id=172.17.0.1http___127.0.0.1_9950_example_files_172.17.0.1_new_20_2_.docx1594125018845)
Error: connect ECONNREFUSED 127.0.0.1:9950
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
[2020-07-07T12:30:26.897] [ERROR] nodeJS - error downloadFile:url=http://127.0.0.1:9950/example/files/172.17.0.1/new%20(2).docx;attempt=3;code:ECONNREFUSED;connect:null;(id=172.17.0.1http___127.0.0.1_9950_example_files_172.17.0.1_new_20_2_.docx1594125018845)
Error: connect ECONNREFUSED 127.0.0.1:9950
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

[2020-07-07T12:30:24.881] [ERROR] nodeJS - postData error: docId = 172.17.0.1http___127.0.0.1_9950_example_files_172.17.0.1_new_20_2_.docx1594125018845;url = http://127.0.0.1:9950/example/track?filename=new%20(2).docx&useraddress=172.17.0.1;data = {"key":"172.17.0.1http___127.0.0.1_9950_example_files_172.17.0.1_new_20_2_.docx1594125018845","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}]}
Error: connect ECONNREFUSED 127.0.0.1:9950
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)

我尝试关闭防火墙并在另一台 Windows PC 上进行测试,但问题是一样的。有什么解决办法吗?

看看这个。似乎某些进程在您使用的端口上 运行。尝试切换您的端口。

参考文献:

"The ECONNREFUSED Connection refused by the server 错误,是 Filezilla FTP 客户端返回的常见错误。此错误表明用户正在尝试连接到您的服务器,但无法连接到端口。

https://community.progress.com/s/article/Connection-Error-ECONNREFUSED-Connection-refused-by-the-server

Node.js Error: connect ECONNREFUSED

根据支持人员的回答,OnlyOffice 当前最新版本 (5.5.3) 无法在 Windows docker 上运行:

Unfortunately, at the moment we do not recommend using this method of installing Document Server. If you would like to use a docker installation, please use this Document Server installation guide on *NIX systems.

我在 CentOs 服务器上 运行 docker 图片。现在一切正常。

我遇到了同样的问题,尝试了一段时间后,我只是尝试按照文档操作,它成功了,你必须 运行 端口 80 中的 docker 图像,这将解决错误.

docker run -i -t -d -p 80:80 --restart=always -v C:/work/only_office/logs:/var/log/onlyoffice onlyoffice/documentserver-de

我正在搜索以正确的方式更改端口。如果你知道了请告诉我。