Synchrony logs are recording ':jwt/unauthorized, :throwable #error {:cause "unauthorized" :jwt/unauthorized"}' warning messages

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Synchrony not working after instance encountered a low disk space condition and crashed.

Environment

All versions of Confluence 6.6 and above

Diagnosis

The following will be found in the atlassian-synchrony.log(s) 

Synchrony logs
2021-06-24 16:54:03,866 DEBUG [1084:StdOutHandler [/apps/installs/confluence/jre/bin/java]] 2021-06-24 20:54:03,866 WARN [async-dispatch-12] [synchrony.sync.hubs] unauthorized {:entity "/Synchrony-47450dcf-0b69-3acc-b041-4ebdf9e8052c/confluence-128921810", :type :jwt/unauthorized, :throwable #error {
:cause "unauthorized"
 :jwt/unauthorized}
 :via
 :type clojure.lang.ExceptionInfo
 :message "unauthorized"
 :jwt/unauthorized}
 [ginga.core$throwable invokeStatic "core.cljc" 331]}]
 :trace
 [ginga.core$throwable invokeStatic "core.cljc" 331]
 [ginga.core$throwable invoke "core.cljc" 326]
 [ginga.core$throw_map invokeStatic "core.cljc" 336]
 [ginga.core$throw_map invoke "core.cljc" 333]
 [synchrony.sync.hubs$accept$fn__52396$state_machine__5443__auto____52411$fn__52413 invoke "hubs.clj" 869]
 [synchrony.sync.hubs$accept$fn__52396$state_machine__5443__auto____52411 invoke "hubs.clj" 865]
 [clojure.core.async.impl.ioc_macros$run_state_machine invokeStatic "ioc_macros.clj" 973]
 [clojure.core.async.impl.ioc_macros$run_state_machine invoke "ioc_macros.clj" 972]
 [clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invokeStatic "ioc_macros.clj" 977]
 [clojure.core.async.impl.ioc_macros$run_state_machine_wrapped invoke "ioc_macros.clj" 975]
 [clojure.core.async.impl.ioc_macros$take_BANG_$fn__5461 invoke "ioc_macros.clj" 986]
 [clojure.core.async.impl.channels.ManyToManyChannel$fn__479$fn__480 invoke "channels.clj" 95]
 [clojure.lang.AFn run "AFn.java" 22]
 [java.util.concurrent.ThreadPoolExecutor runWorker nil -1]
 [java.util.concurrent.ThreadPoolExecutor$Worker run nil -1]
 [java.lang.Thread run nil -1]]}}

(info) Editing with Synchrony will be working for some clients and at the same time not work for others while these errors are logged occasionally. 

Cause

This is a server-side error logged as a result of a client-side action. 

The problematic client browser has stored JWT keys that no longer match the key pair that Synchrony is currently using. Warning message is logged when they try to connect and edit. 

This can result from restarting (only) Synchrony while leaving Confluence running, and then not following that up with a restart of the browser before trying to edit a page.

Solution

  • Restart the client's web browser for all affected clients (clearing cache and cookies if issues persist)

or

  • Restart Confluence, which will force all users to re-negotiate those keys with Synchrony at which time they will pick up the latest and start working again



Last modified on Jun 25, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.