[SOLVED] ONLYOFFICE Error claiming document cannot be saved

Any critical bugs will be fixed within 24-48 hours.
Post Reply
thielem
Posts: 22
Joined: 12 Mar 2023, 22:30
Name: Moritz Thiele
Location: Germany, Berlin

[SOLVED] ONLYOFFICE Error claiming document cannot be saved

Post by thielem »

Hi!

When I open an OnlyOffice Document in write mode, I am getting this error
SCR-20240423-slzm.png
This immediatly redirects the user to the download page.

However, changes I make are indeed saved.

I am running OnlyOffice on Ubuntu via Docker. I am getting the following error message from the docker logs

Code: Select all

[2024-04-23T19:18:28.634] [ERROR] [localhost] [ommitedurl.com-11-1713899306] [dmVyd2FsdHVuZy5uZXVyb2luc3RpdHV0LmNoLTY=] nodeJS - postData error: url = https://omittedurl.com/index.php?module=onlyoffice/callback&entity_id=79&item_id=3&field=1101&file=11&date=1713899306;data = {"key":"omittedurl.com-11-1713899306","status":1,"users":["somekey"],"actions":[{"type":1,"userid":"somekey"}],"token":"sometoken"} Error: Error response: statusCode:500; headers:{"date":"Tue, 23 Apr 2024 19:13:35 GMT","server":"Apache","set-cookie":["cookie_test=please_accept_for_session; expires=Thu, 23-May-2024 19:13:35 GMT; Max-Age=2592000","sid=j6omeu6vm8hbe63kugll2974cs"],"expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-store, no-cache, must-revalidate","pragma":"no-cache","x-robots-tag":"noindex","x-content-type-options":"nosniff","content-length":"0","connection":"close","content-type":"application/json; charset==utf-8"}; body:

    at Request._callback (/snapshot/server/Common/sources/utils.js)
    at Request.callback (/snapshot/server/Common/node_modules/request/request.js:185:22)
    at Request.emit (node:events:527:28)
    at Request.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1161:10)
    at Request.emit (node:events:527:28)
    at IncomingMessage.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1083:12)
    at Object.onceWrapper (node:events:641:28)
    at IncomingMessage.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
When I try the callback in Postman with the URL and payload mentioned in the error message, I am getting

Code: Select all

{
    "error": 0,
    "status": "success"
}

So I guess the issue is at OnlyOffice, however, as I interpret the error message, the 500 is coming from Rukovoditel. I have no experience with OnlyOffice, I would therefore highly appreciate it if anybody could over some assistance in how to navigate this issue!

When I set the field to view only in Rukovoditel, I have no issue.
Last edited by thielem on 23 Apr 2024, 23:53, edited 1 time in total.
thielem
Posts: 22
Joined: 12 Mar 2023, 22:30
Name: Moritz Thiele
Location: Germany, Berlin

Re: ONLYOFFICE Error claiming document cannot be saved

Post by thielem »

SOLVED

Turns out the clock on one of my servers was not synchronized correctly due to a firewall, thus rendering the JWT invalid.
Very specific issue, but I will keep this open in case somebody has a similar issue
Post Reply