WebUI error after transfering DNS to Cloudflare

Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail.
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.
DocSpace version: 2.6
Type of installation of the DocSpace deb/rpm / Official guide
OS: Ubuntu 22.04
Browser version: 130.0 (64-bit)
Additional information: After transfering DNS managment to Cloudflare the DocSpace webUI does not load with the following error.

" Application error: a server-side exception has occurred (see the server logs for more information).

Digest: 3576187290"

I double checked that i have all records configured correctly. On the server i get this error,

" at System.Convert.FromBase64String(String s)
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)
2024-08-01 14:57:44,235|WARN|[56]|ASC.Core.SecurityContext - Can not decrypt cookie: Basic YWRtaW5AcmVkbGluZWRjcy5jb206NUBpTSVHTFVYTGlZYkpTdHk2Vmo0ZWdeJlFvelo4 from 127.0.0.1 for http://denali.redlinedcs.com/portal/register|
2024-08-01 14:57:45,128|ERROR|[46]|ASC.Core.Security.Authentication.CookieStorage - Authenticate error: cookie Basic+YWRtaW5AcmVkbGluZWRjcy5jb206NUBpTSVHTFVYTGlZYkpTdHk2Vmo0ZWdeJlFvelo4, tenant -1, userid 00000000-0000-0000-0000-000000000000, indexTenant 0, expire 9999-12-31 23:59:59,999, loginEvent 0|System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
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)
2024-08-01 14:57:45,128|WARN|[46]|ASC.Core.SecurityContext - Can not decrypt cookie: Basic YWRtaW5AcmVkbGluZWRjcy5jb206NUBpTSVHTFVYTGlZYkpTdHk2Vmo0ZWdeJlFvelo4 from 127.0.0.1 for RedlineDCS
"
Why is this happening? Any idea how to quickly solve because platform is inaccesible now.

Tried restarting the services and the server but did not change anything.

Solved the issue.

It seems systemd-resolved was storing outdated records and the server could not resolve the new dns changes.

Had to run systemctl restart systemd-resolved.service and it started working right away.

Hello @irdi

I am glad to know that you’ve managed to resolve the problem. Closing topic as solved.
By the way, thanks for sharing your solution.