onlyoffice


#1

docker 集成onlyoffice ,无法进行在线预览
image
[2019-12-09T20:37:20.986] [ERROR] nodeJS - postData error: docId = 405073bab77e74cb9413;url = http://10.10.0.159:8080/onlyoffice/editor-callback/;data = {“key”:“405073bab77e74cb9413”,“status”:1,“users”:[“uid-1575963122159”],“actions”:[{“type”:1,“userid”:“uid-1575963122159”}]}
Error: connect EHOSTUNREACH 10.10.0.159:8080
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2019-12-09T20:37:22.022] [ERROR] nodeJS - error downloadFile:url=http://10.10.0.159/seafhttp/files/5fea69fc-9f8d-44c2-937d-619fe903f7c5/3.docx;attempt=1;code:EHOSTUNREACH;connect:null;(id=405073bab77e74cb9413)
Error: connect EHOSTUNREACH 10.10.0.159:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[2019-12-09T20:37:24.027] [ERROR] nodeJS - error downloadFile:url=http://10.10.0.159/seafhttp/files/5fea69fc-9f8d-44c2-937d-619fe903f7c5/3.docx;attempt=2;code:EHOSTUNREACH;connect:null;(id=405073bab77e74cb9413)
Error: connect EHOSTUNREACH 10.10.0.159:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
[2019-12-09T20:37:26.035] [ERROR] nodeJS - error downloadFile:url=http://10.10.0.159/seafhttp/files/5fea69fc-9f8d-44c2-937d-619fe903f7c5/3.docx;attempt=3;code:EHOSTUNREACH;connect:null;(id=405073bab77e74cb9413)
Error: connect EHOSTUNREACH 10.10.0.159:80
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2019-12-09T20:39:24.907] [ERROR] nodeJS - postData error: docId = 405073bab77e74cb9413;url = http://10.10.0.159:8080/onlyoffice/editor-callback/;data = {“key”:“405073bab77e74cb9413”,“status”:1,“users”:[“uid-1575963246063”],“actions”:[{“type”:1,“userid”:“uid-1575963246063”}]}
Error: connect EHOSTUNREACH 10.10.0.159:8080
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)


#2

这报错看起来像是网络方面的问题,具体是什么问题得你自己分析下了


#3

我网络没有问题,我估计是我自己端口映射出了问题,不知道怎么映射


#4

我指的是服务器上的网络环境,比如防火墙,路由表之类的。


#5

我也出现了类似的问题,报网络不可达,但直接在其它电脑浏览器中输入地址是可以访问的。

在同一台机器上部署了seafile, frpc, 本机及外网机器都可以上传下载;
之后用docker部署了onlyoffice. 使用seafile管理员登录,下载成功,可以预览,但有上面这个无法保存的对话框。

但当切换成 seafile普通成员账号后, 连预览都不行了, 后台也是下载失败的日志:

[2019-12-10T17:35:55.735] [ERROR] nodeJS - error downloadFile:url=http://公网ip:8080/seafhttp/files/b2de2241-3721-42f9-b3de-022839c0028d/seafile-tutorial.doc;attempt=2;code:EHOSTUNREACH;connect:null;(id=01d4ae409a257770717e)
Error: connect EHOSTUNREACH 公网ip:8080
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)

#6

经过验证,发现.md格式支持在线编辑,但是.word和.excel模式不支持