Upgrade docker_manager stuck - 2.2.0.beta4

I had the exact same issue: even after manual rebuild, docker_manager was stuck in “Currently Upgrading” state and the “Reset Upgrade” button was throwing an exception.

I fixed the issue by running this: