WARNING - onlyoffice-documentserver (6.1.1-53) Update Overwrites configurations

Ubuntu Server 20.04.1
Nextcloud 20.0.6

FYI…

If you’re running a Non-integrated OnlyOffice document server, the latest package updates will overwrite /etc/onlyoffice/documentserver configuration files. Before updating your distribution packages from routine maintenace (apt update/upgrade, etc…) Backup documentserver folder.

After updating this package if you find OnlyOffice errors trying to Open/Edit documents. Or if you find the below error in your logs…

    [ERROR] nodeJS - postData error: docId = 2969902186;url =
    https://[Your FQDN]/index.php/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJ0YWhhdW4iLCJmaWxlSWQiOjIwNzUyMywiZmlsZVBhdGgiOiJcL1JldmlzaW9uVGVzdC5kb2N4Iiwic2hhcmVUb2tlbiI6bn>
    = {"key":"OMITTED","status":1,"users":["OMITTED"],"actions":[{"type":1,"userid":"OMITTED"}]} Error: Error response: statusCode:403; headers:{"date":"Sat, 30 Jan 2021 19:06:17
    GMT","server":"Apache/2.4.41 (Ubuntu)","strict-transport-security":"max-age=15768000;
    preload","referrer-policy":"no-referrer","x-content-type-options":"nosniff","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-robots-tag":"none","x-xss-pro>
    mode=block","expires":"Thu, 19 Nov 1981 08:52:00 GMT","cache-control":"no-cache, no-store, must-revalidate","pragma":"no-cache","content-security-policy":"default-src 'none';base-uri 'none';manifest-src
    'self';frame-ancestors 'none'","feature-policy":"autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'","content-length":"27","content-type":"application/json;
    charset=utf-8","set-cookie":["oc9gg67ew7zv=e8pa6rr3jqa4pm3rmfh401jucj; path=/; secure; HttpOnly;
    SameSite=Lax","OMITTED; path=/; secure;
    HttpOnly; SameSite=Lax","OMITTED; path=/; secure; HttpOnly; SameSite=Lax","__Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT;
    SameSite=lax","__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict"],"keep-alive":"timeout=5, max=100","connection":"Keep-Alive"}; body:
    {"message":"Access denied"}
        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)

It is due to your /etc/onlyoffice/documentserver/local.json file being overwritten. To fix your error you’ll need to update your “Token” sections back to their original values.