Rebuild app failed with 'UPGRADE OF POSTGRES FAILED'


My website is down after restart server.

I try to cleanup and run ./launcher rebuild app but failed with Run "./launcher rebuild app" -

It seems that PostgreSQL couldn’t auto upgrade from 9.5 to 10.

Then I follow the instructions in this template. But after I change “templates/postgres.template.yml” to “templates/postgres.9.5.template.yml”’ and Run ./launcher rebuild app again, I got another failed with Run "./launcher rebuild app" again -

I spent hours searching this problem and found some similar problems, but always failed after rebuild app and got same error like Run "./launcher rebuild app" again -

psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Help anyone?


Did you get this working?