首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >ONLYOFFICE开发人员版演示问题-错误downloadFile

ONLYOFFICE开发人员版演示问题-错误downloadFile
EN

Stack Overflow用户
提问于 2020-07-07 14:14:30
回答 3查看 1.2K关注 0票数 0

我使用以下命令在本地windows计算机上安装和运行OnlyOffice停靠映像:

代码语言:javascript
运行
复制
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:

代码语言:javascript
运行
复制
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/开始工作。但是,当我试图创建、打开或上传文档时,我会得到以下错误:

以及日志文件中的错误:

代码语言:javascript
运行
复制
[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上进行测试,但问题是一样的。有什么办法解决吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2020-07-26 14:27:24

根据支持部门的回答,最新版本(5.5.3)的OnlyOffice不适用于Windows:

不幸的是,目前我们不建议使用这种安装Document的方法。如果您想使用码头安装,请在*NIX系统上使用此Document安装。

我在CentOs服务器上运行码头映像。现在一切都如期而至。

票数 0
EN

Stack Overflow用户

发布于 2020-07-17 07:25:19

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

参考文献:

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

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

浅谈如何从NodeJS运行本地主机服务器

Node.js错误:连接ECONNREFUSED

票数 1
EN

Stack Overflow用户

发布于 2021-03-29 04:44:31

我也遇到了同样的问题,在尝试了一段时间之后,我尝试了一下文档,它成功了,您必须在端口80中运行对接映像,这将解决错误。

代码语言:javascript
运行
复制
docker run -i -t -d -p 80:80 --restart=always -v C:/work/only_office/logs:/var/log/onlyoffice onlyoffice/documentserver-de

我在寻找合适的方法来改变港口。如果你发现了告诉我。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62777276

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档