ONLYOFFICE / onlyoffice-redmine

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

Warning message when opening a document #170

Open Skildor opened 6 months ago

Skildor commented 6 months ago

Hi, Each time I open a document in redmine I got the following message : image

It's a bit annoying, but everything seems to work fine after I close the popup.

I'm using docker for redmine and the document server with Apache on the host as an HTTPS reverse proxy

docservice.log redmine.log

Do you have any idea on how to fix this?

Thanks

derev0x commented 1 week ago
  • Redime 4.2.
  • Onlyoffice docserver 8.1.
  • Redmine Pluggin 3.1.0

Hi. I have the same problem. Have you found a solution?

in log /var/log/onlyoffice/documentserver/docservice/out.log

[2024-11-19T09:44:55.757] [ERROR] [localhost] [644.3731d11a2ff555dec6ae8d60e867312c5b7379276bc8cc0c4129809e79aa83f2] [53] nodeJS - postData error: url = https://redmine.server:53443/onlyoffice/attachments/644/callback?user_id=5&token=eyJhbGdvcml0aG0iOiJIUzI1NiIsImFsZyI6IkhTMjU2In0.eyJ1cmwiOiJodHRwczovL3JlZG1pbmUuYWJpay52ZXQ6NTM0NDMvb25seW9mZmljZS9hdHRhY2htZW50cy82NDQvY2FsbGJhY2s_dXNlcl9pZD01In0.owOnbOqyocmK_kqohnqNu2AiSG8CPBUuUEXcefPJ4mY;data = {"key":"644.3731d11a2ff555dec6ae8d60e867312c5b7379276bc8cc0c4129809e79aa83f2","status":4,"actions":[{"type":0,"userid":"5"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiI2NDQuMzczMWQxMWEyZmY1NTVkZWM2YWU4ZDYwZTg2NzMxMmM1YjczNzkyNzZiYzhjYzBjNDEyOTgwOWU3OWFhODNmMiIsInN0YXR1cyI6NCwiYWN0aW9ucyI6W3sidHlwZSI6MCwidXNlcmlkIjoiNSJ9XSwiaWF0IjoxNzMyMDA5NDk1LCJleHAiOjE3MzIwMDk3OTV9.KEovgMP3ihFOY4tcfXp5cXKSC_X7TOrT3Bt-iKML8XM"} Error: Error response: statusCode:500; headers:{"date":"Tue, 19 Nov 2024 09:44:55 GMT","server":"Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips Phusion_Passenger/6.0.22 PHP/5.4.16","x-request-id":"49941 c15-89fc-4ab5-acfa-8d531eb72cd1","x-runtime":"0.014648","x-powered-by":"Phusion Passenger(R) 6.0.22","content-length":"648","status":"500 Internal Server Error","connection":"close","content-type":"text/html; charset=utf-8"}; body:

and when i go to url: https://redmine.server:53443/onlyoffice/attachments/644/callback?user_id=5 view error : Page not found

and in /var/www/redmine/log/production.log

TypeError (Parameter 'input': Expected type T.any(IO, StringIO), got type PhusionPassenger::Utils::TeeInput with hash -2087500261086115168

In documentation https://api.onlyoffice.com/docs/docs-api/more-information/troubleshooting/#error0

The editor is loaded with the "The document could not be saved" message.

The document editing service cannot connect to the document storage service at the editorConfig.callbackUrl address.

Check if the Callback handler is working correctly. The document storage service must return {"error": 0} in response.

https://api.onlyoffice.com/docs/docs-api/usage-api/config/editor/#callbackurl

Specifies absolute URL to the document storage service (which must be implemented by the software integrators who use ONLYOFFICE Docs on their own server).

This parameter is required.

Type: string

Example: https://example.com/url-to-callback.ashx