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

Invalid cookie after compiling from source code

Community Server/Control Panel version: 12.1.1194
Type of installation of Workspace (docker, deb/rpm, exe): exe
OS: Windows Server 2016
Browser version: Firefox 109.0 (64-bit)

I wanted to compile and build OnlyOffice Community server referring from here Compiling ONLYOFFICE Groups for a local server - ONLYOFFICE

But I couldn’t find where to download Redis v3.0 from official sites since the latest version is v6.0. So what I tried was to normally just build the Github repo using BuildAndDeploy.bat and then change the path on System which already has the databases installed and services working (from the .exe) of IIS Server OnlyOffice ApiSystem and Server Sites to the one currently compiled.

This shows me an invalid cookie which is obvious, but I want to still compile this way so that I won’t have to install the Compilation tools on the organization device since it has no internet connectivity and I can only take offline files there. Can someone help me with the path of this cookie file so I can integrate a custom fork into an existing working OnlyOffice Workspace environment?

2023-02-25 07:15:45,705 ERROR [23] localhost - ASC.Core - Authenticate error: cookie z6wwFmQv97AankQ74GPX3SsY686o5JbN9dZGXkuDpEBto3QEapY+DFimSSiv7Bs+InNaggZMZUcM++MqgXIJH+yGrFEaSt6Yu++6/MumsWLXp7mC0m6hjFGF6z0cWOaJS92bxOZVlr8JWSY9Jc5v9XXpYS/fvvAMm5W50G3P1wM=, tenant -1, userid 00000000-0000-0000-0000-000000000000, indexTenant 0, expire 9999-12-31 23:59:59,999, loginEvent 0: System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.
   at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
   at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
   at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
   at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
   at System.IO.Stream.Close()
   at ASC.Security.Cryptography.InstanceCrypto.Decrypt(Byte[] data)
   at ASC.Security.Cryptography.InstanceCrypto.Decrypt(String data)
   at ASC.Core.Security.Authentication.CookieStorage.DecryptCookie(String cookie, Int32& tenant, Guid& userid, Int32& indexTenant, DateTime& expire, Int32& indexUser, Int32& loginEventId) 
2023-02-25 07:15:45,705 WARN [23] localhost - ASC.Core - Can not decrypt cookie: z6wwFmQv97AankQ74GPX3SsY686o5JbN9dZGXkuDpEBto3QEapY+DFimSSiv7Bs+InNaggZMZUcM++MqgXIJH+yGrFEaSt6Yu++6/MumsWLXp7mC0m6hjFGF6z0cWOaJS92bxOZVlr8JWSY9Jc5v9XXpYS/fvvAMm5W50G3P1wM= from for http://localhost/api/2.0/batch.json

Hello @OnlyOfficeTester
The error entry from provided file can’t interrupt Workspace work. This error entry usually arises if a few Workspace instances were deployed and removed from the same server.

Please clarify if you face any other issues with Workspace at the moment.

Issue resolved… I had incomplete connection string in my config files… Thanks for you time.

We’re glad that the issue is resolved. Please feel free to contact us if you face any issues.