查看: 6678|回复: 6

office在线协作应用

升级   0.14%

2

主题

3

回帖

14

积分

注册会员

Rank: 2

积分
14
发表于 2021-4-1 09:36:36 | 显示全部楼层 |阅读模式
office 在线应用合作打开文档时前端弹窗 点击后文档可以正常编辑保存。  使用的onlyoffice为本地部署,officesettings.json 文件配置如下:
{"storageFolder":"file:///download/o2server/local/repository/storage/onlyoffice","storageFolderTemplate":"file:///download/o2server/local/repository/storage/onlyoffice/temp","storageFolderIndex":"file:///download/o2server/local/repository/storage/onlyoffice/index","storageFolderMark":"file:///download/o2server/local/repository/storage/onlyoffice/mark","docbuilderEXEPath":"","filesizeMax":"5242880","timeout":"120000","docserviceViewedDocs":".pdf|.djvu|.xps","docserviceEditedDocs":".docx|.xlsx|.csv|.pptx|.txt","docserviceConvertDocs":".docm|.dotx|.dotm|.dot|.doc|.odt|.fodt|.ott|.xlsm|.xltx|.xltm|.xlt|.xls|.ods|.fods|.ots|.pptm|.ppt|.ppsx|.ppsm|.pps|.potx|.potm|.pot|.odp|.fodp|.otp|.rtf|.mht|.html|.htm|.epub","docserviceConverter":"http://192.168.0.14:155/ConvertService.ashx","docserviceTempstorage":"http://192.168.0.14:155/ResourceService.ashx","docserviceApi":"http://192.168.0.14:155/web-apps/apps/api/documents/api.js","docservicePreloader":"http://192.168.0.14:155/web-apps/apps/api/documents/cache-scripts.html","secret":"secreto2oa","header":"Authorization","ipWhiteList":"","callbackUrl":"http://192.168.0.14:20030/x_program_center/jaxrs/invoke/cloudDocumentSrv/execute","gobackUrl":"http://192.168.0.14/x_desktop/index.html","rmi":"false","rmiPort":"2099","searchIndexCreate":"true","searchRangeCount":"12","searchReturnCount":"100"}
回复

使用道具 举报

升级   0.14%

2

主题

3

回帖

14

积分

注册会员

Rank: 2

积分
14
发表于 2021-4-1 11:52:53 | 显示全部楼层
[ERROR] nodeJS - postData error: docId = -751066235;url = http://192.168.0.14:20030/x_program_center/jaxrs/invoke/cloudDocumentSrv/execute;data = {"key":"-751066235","status":1,"users":["SheMin"],"actions":[{"type":1,"userid":"SheMin"}]}
Error: Error response: statusCode:500; headers:{"access-control-allow-origin":"*","access-control-allow-methods":"GET, POST, OPTIONS, PUT, DELETE, HEAD, TRACE","access-control-allow-headers":"x-requested-with, x-request, x-token, c-token, Content-Type, Content-Length, x-cipher, x-client, x-debugger, Authorization, P-User-Id, P-Request-Id, P-Page-Id","access-control-allow-credentials":"true","access-control-expose-headers":"x-token, c-token","access-control-max-age":"86400","content-type":"application/json;charset=utf-8","content-length":"254"}; body:
{
  "type": "error",
  "message": "调用接口运行失败,名称: office在线协作.",
  "date": "2021-04-01 11:28:18",
  "spent": 66,
  "size": -1,
  "count": 0,
  "position": 0,
  "prompt": "com.x.program.center.jaxrs.invoke.ExceptionExecuteError"
}
    at Request._callback (/snapshot/server/build/server/Common/sources/utils.js:0:0)
    at Request.init.self.callback (/snapshot/server/build/server/Common/node_modules/request/request.js:185:22)
    at Request.emit (events.js:198:13)
    at Request.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:198:13)
    at IncomingMessage.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:286:20)
    at IncomingMessage.emit (events.js:203:15)
    at endReadableNT (_stream_readable.js:1143:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

这是onlyoffice报错
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-4-2 13:48:08 | 显示全部楼层
您好:
callbackUrl 是o2oa服务器地址。请问您配置对吗
请对照https://www.o2oa.net/course/xd4qyh.html?h=onlyOff   检查一下您的配置
回复

使用道具 举报

升级   0.14%

2

主题

3

回帖

14

积分

注册会员

Rank: 2

积分
14
发表于 2021-4-2 14:09:57 | 显示全部楼层
callback配置的为该地址 ,192.168.0.14 为本地架设的o2oa 服务器地址
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-4-6 13:49:16 | 显示全部楼层
你是否 按照规范编译过数据库。
回复

使用道具 举报

升级   0.14%

2

主题

3

回帖

14

积分

注册会员

Rank: 2

积分
14
发表于 2021-4-6 18:06:11 | 显示全部楼层
已按规范编译过数据库,现在是文档能够正常编辑保存,就是打开时前端会弹窗报错提示这份文件无法保存
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2021-4-7 10:03:59 | 显示全部楼层
1.理论上您安装我们的规范,一步步操作不会有问题!
2.您可能少了那个部署,建议您根据文档仔细检查!
3.如果您有需要,可以购买我们的技术支撑服务,我们技术人员可以远程协助解决问题!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread