.ConnectionError: Error 111 connecting to localhost:13000. Connection refused

Well, are you running the ERPNext server with:

bench start

…command on the server? Because I encountered the same error moments ago and realised that the bench server for ERPNext must be running to successful execute…

bench update --patch

which is what your output refers to.

Hope that’s what it is.