ONLYOFFICE Docs v7.3 released: enhanced forms, SmartArt, new security settings, Watch Window, and more
ONLYOFFICE Docs v7.3 released

The document security token is not correctly formed

I have installed OnlyOffice for personal use in my home server through 4 docker containers:

following the installation guide in

The installation went well, I can connect flawlessly from my browser, but when I try to open any document I get an error message:

“The document security token is not correctly formed.Please contact your Document Server administrator.Press “OK” to return to document list.”

I’ve been searching in this and other forums, but I cannot find a solution.

How can I fix it?

Hello @davidht

This error means that there is difference in JWT Token credentials between Document Server and Community Server.

Possibly the easiest solution is to reinstall the Workspace with provided script that will configure all settings automatically:

Simply, stop and remove currently running containers and execute the script. You will be prompted to choose if you want to install it with Docker, press Y (Yes) to confirm.
If you do not want to use Mail Server then after downloading the script run it with next command:
bash -ims false

Thanks a lot. It worked!

1 Like