【问题标题】:ONLYOFFICE Developer Edition demo issue - error downloadFileONLYOFFICE 开发者版演示问题 - 错误下载文件
【发布时间】:2020-07-07 14:14:30
【问题描述】:

我使用以下命令在本地 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 上进行测试,但问题是一样的。任何想法如何解决它?

【问题讨论】:

  • 也许你需要在你的 docker 中加入 ssl 支持。 docker run -i -t -d -p 443:443 -v /your/path
  • 对此发表了回答:)

标签: onlyoffice


【解决方案1】:

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

参考资料:

“服务器拒绝ECONNREFUSED连接错误,是Filezilla FTP客户端返回的常见错误。此错误表示用户正在尝试连接到您的服务器,但无法连接到端口。”

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

ECONNREFUSED on running localhost server from NodeJS

Node.js Error: connect ECONNREFUSED

【讨论】:

    【解决方案2】:

    我遇到了同样的问题,尝试了一段时间后,我只是尝试按照文档进行操作,它确实有效,您必须在端口 80 中运行 docker 映像,这将解决错误。

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

    我正在寻找以适当方式更改端口。如果你发现了,请告诉我。

    【讨论】:

      【解决方案3】:

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

      很遗憾,目前我们不建议使用这种方法 安装文件服务器。如果你想使用 docker 安装,请使用此文档服务器安装guide on *NIX 系统。

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-09-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多