Upgarde problem 13.1.4

I am trying to upgrade my Gitlab from 12.9.2 to 13.1.4. I am following below process

apt-get update
gitlab-rake gitlab:backup:create STRATEGY=copy
apt remove gitlab-ce
cp /etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rb.BAK
sudo apt-get install gitlab-ce=13.1.4-ce.0
sudo gitlab-ctl restart
sudo apt install gitlab-ce
sudo gitlab-ctl restart
gitlab-ctl reconfigure

But when I am run #sudo apt-get install gitlab-ce=13.1.4-ce.0 this command then it showing
this error

Running handlers:
There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 55) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1’
---- Begin output of “bash” “/tmp/chef-script20200719-17787-1i1gfx9” ----
STDOUT: rake aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
** Is the server running locally and accepting**
** connections on Unix domain socket “/var/opt/gitlab/postgresql/.s.PGSQL.5432”?**
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:48:in block (3 levels) in <top (required)>'** **/opt/gitlab/embedded/bin/bundle:23:in load’
/opt/gitlab/embedded/bin/bundle:23:in `'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
---- End output of “bash” “/tmp/chef-script20200719-17787-1i1gfx9” ----
Ran “bash” “/tmp/chef-script20200719-17787-1i1gfx9” returned 1

Running handlers complete
Chef Client failed. 52 resources updated in 03 minutes 17 seconds
Restarting previously running GitLab services
ok: run: alertmanager: (pid 18418) 0s
ok: run: gitaly: (pid 2043) 16147s
ok: run: gitlab-exporter: (pid 18421) 1s
ok: run: gitlab-workhorse: (pid 18423) 0s
ok: run: grafana: (pid 18426) 0s
ok: run: logrotate: (pid 18428) 0s
ok: run: nginx: (pid 18434) 1s
ok: run: node-exporter: (pid 18450) 0s
ok: run: postgres-exporter: (pid 18452) 0s
ok: run: postgresql: (pid 18461) 3s
ok: run: prometheus: (pid 18464) 1s
ok: run: redis: (pid 18066) 190s
ok: run: redis-exporter: (pid 18485) 1s
ok: run: sidekiq: (pid 18495) 0s
ok: run: unicorn: (pid 18501) 1s

 _______ __  __          __
/ ____(_) /_/ /   ____ _/ /_

/ / / / / / / __ `/ __
/ // / / // /
/ // / // /

Upgrade complete! If your GitLab server is misbehaving try running
sudo gitlab-ctl restart
before anything else.
If you need to roll back to the previous version you can use the database
backup made during the upgrade (scroll up for the filename).

Now what can I do?