Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved OnlyOffice Document Security Token Issue

    OnlyOffice
    2
    7
    492
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      saint last edited by

      Hi there,

      I just installed OnlyOffice and Nextcloud, and when I went to create a new spreadsheet, doc, or upload an existing Excel file.

      onlyoffice-document-security-token.png

      I've tried to restart both Nextcloud and OnlyOffice to see if there was some type of a refresh that was needed, but still running into the same issue.

      Any reason on why this might be happening?

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        Do you see any errors in the logs on the server side for both apps or in the browser webinspector console?

        S 1 Reply Last reply Reply Quote 0
        • Topic has been marked as a question  nebulon nebulon 
        • S
          saint @nebulon last edited by saint

          @nebulon The main error that I see in the OnlyOffice log is:

          2022-09-08T15:30:34.000Z 2022-09-08 15:30:34,578 INFO reaped unknown pid 123070
          2022-09-08T15:31:34.000Z [2022-09-08T15:31:34.034] [WARN] nodeJS - checkJwt error: docId = 2764502549 name = JsonWebTokenError message = invalid signature token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkb2N1bWVudCI6eyJmaWxlVHlwZSI6Inhsc3giLCJrZXkiOiIyNzY0NTAyNTQ5IiwicGVybWlzc2lvbnMiOnsiZWRpdCI6dHJ1ZSwiY2hhbmdlSGlzdG9yeSI6dHJ1ZX0sInRpdGxlIjoic2RmZHNmZHMueGxzeCIsInVybCI6Imh0dHBzOlwvXC9uZXh1cy5pbnRlcm5hbG9wcy5jb21cL2FwcHNcL29ubHlvZmZpY2VcL2Rvd25sb2FkP2RvYz1leUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpJVXpJMU5pSjkuZXlKaFkzUnBiMjRpT2lKa2IzZHViRzloWkN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2UiOnRydWV9LCJjb21wYWN0SGVhZGVyIjp0cnVlLCJmZWVkYmFjayI6dHJ1ZSwidWlUaGVtZSI6InRoZW1lLWNsYXNzaWMtbGlnaHQiLCJ0b29sYmFyTm9UYWJzIjp0cnVlfX0sIl9maWxlX3BhdGgiOiJcL3NkZmRzZmRzLnhsc3giLCJfZmlsZXNfc2hhcmluZyI6dHJ1ZX0.LWM2scVVG9h-HGutZz76mPRfcUQ3-VfG28ShsNe9oSE
          2022-09-08T15:31:34.000Z 2022-09-08 15:31:34,037 INFO reaped unknown pid 123111
          

          And in the Web Console, when I do a refresh while trying to load OnlyOffice, the two main errors I get seems to be:

          Though I don't think it's related to the second font rendering issue.

          Uncaught TypeError: Cannot read properties of null (reading 'PMg')
              at od.SGd (sdk-all-min.js:1447:203)
              at V.i.SetDisabled (app.js:74:3133)
              at V.i.onEditingDisable (app.js:81:16597)
              at D (app.js:8:11759)
              at e.<anonymous> (app.js:8:11961)
              at e.<anonymous> (app.js:8:5162)
              at c (app.js:11:17848)
              at e.trigger (app.js:11:17048)
              at V.i.disableEditing (app.js:81:15743)
              at V.i.onLongActionEnd (app.js:81:3976)
          
          and
          
          fonts.js:26 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
          

          From the Nextcloud side, I don't see anything that stands out. Just a number of GET/POST requests.

          nebulon 1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff @saint last edited by

            @saint have you change the app secret following https://docs.cloudron.io/apps/onlyoffice/#changing-default-app-secret ?

            S 2 Replies Last reply Reply Quote 0
            • S
              saint @nebulon last edited by saint

              @nebulon Just checked again and yes, the password to both secret 'inbox' and 'outbox' are changed, and also the same. It's also been restarted to ensure it's taken effect.

              1 Reply Last reply Reply Quote 0
              • S
                saint @nebulon last edited by saint

                @nebulon Solved!

                The two strings in secret was changed, but the 'Secret key' in the Nextcloud ONLYOFFICE admin panel still had the old default value.

                For others in the future, please don't forget to double-check the values changed in production-linux.json is also reflected in the Nextcloud ONLYOFFICE configuration area.

                1 Reply Last reply Reply Quote 1
                • nebulon
                  nebulon Staff last edited by

                  ah! yes glad you solved this. We should probably mention that in the docs as well then.

                  1 Reply Last reply Reply Quote 0
                  • Topic has been marked as solved  nebulon nebulon 
                  • First post
                    Last post
                  Powered by NodeBB