A critical update is available. Please upgrade! But when going to upgrade shows up to date

Whatever caused that desync is most likely why Discourse is confused and won’t let you update from the UI. A CLI rebuild should fix whatever weirdness is happening there.