ONLYOFFICE / onlyoffice-mattermost

The app which enables the users to edit office documents from Mattermost using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Mattermost
Apache License 2.0
19 stars 5 forks source link

can't open the doc by onlyoffice #41

Open crystalning1021 opened 1 year ago

crystalning1021 commented 1 year ago

Hi,

After clicking Open file in ONLYOFFICE , only a loading page appeared with only a close button on it. The document cannot be opened by onlyoffice.

close

console log: ObjectMultiplex - orphaned data for stream "publicConfig"

server log: {"timestamp":"2023-08-14 22:39:32.789 +08:00","level":"info","msg":"[ONLYOFFICE CMD]: The server responded without errors","caller":"app/plugin_api.go:973","plugin_id":"com.onlyoffice.mattermost"} {"timestamp":"2023-08-14 22:39:32.797 +08:00","level":"info","msg":"Loaded system translations","caller":"i18n/i18n.go:132","for locale":"zh-CN","from locale":"/opt/mattermost/i18n/zh-CN.json"} {"timestamp":"2023-08-14 22:39:43.996 +08:00","level":"info","msg":"recovering from runtime error: invalid memory address or nil pointer dereference with url: /api/editor?file=t96t8zdiqjb4xk1aj8w84f1fxy&lang=zh-CN","caller":"io/io.go:429","plugin_id":"com.onlyoffice.mattermost","source":"plugin_stdout"}

CentOS: 7.6 MatterMost: 8.0.1 Plugin: 1.1.1 OnlyOffice: 7.4.0

igwyd commented 1 year ago

Hello @crystalning1021 describe please in more detail your installation. Do you use a proxy and with what config? How ONLYOFFICE and MatterMost are installed, docker rpm etc.? Is it one server or separate servers?

crystalning1021 commented 1 year ago

Hello @crystalning1021 describe please in more detail your installation. Do you use a proxy and with what config? How ONLYOFFICE and MatterMost are installed, docker rpm etc.? Is it one server or separate servers?

It looks like OO does not have permission to get the MM‘s files, maybe this is the key to the solution.

OO is deployed through docker, proxying to the local port 8090 for access. MM is deployed according to the deployment method of the official website. Both are deployed on the same cloud server.

igwyd commented 1 year ago

@crystalning1021 I checked the your installation on my test stand and I don't get any errors. What plugins in the mm are you using? Check the docker version. Something specific settings?

crystalning1021 commented 1 year ago

@crystalning1021 I checked the your installation on my test stand and I don't get any errors. What plugins in the mm are you using? Check the docker version. Something specific settings?

I found the reason for this problem.

In my console, ENVIROMENT -> Web Server -> Site URL was empty. I found that the plugin reads the configuration here, so when it is empty, ONLYOFFICE cannot open the file. Now after I fill in the site URL, the plugin and ONLYOFFICE can work normally. WechatIMG897

It is suggested that the plugin page can give a hint, or report an error to the administrator when site URL is empty.