Failed to upgrade - syntax error, unexpected << js << <<~JS

Are you 100% sure you are not running any plugins except for docker_manager?