When this happen try to check if your Password is coherent with the one in /config/settings.inc.php .

Sometimes when you use special Character in your Passwords the Upgrade Script interprets this not very well.

Photo by John Baker on Unsplash