Upgrade of postgres failed 및 https://meta.discourse.org/t/postgresql-12-update/151236를 참고하였으나, 이 문제를 해결하는 데 도움이 될 만한 특정한 사항을 식별하지 못했습니다.
이 설치 환경은 특별히 크지 않습니다.
root@pulp:/srv/www/organizations/panodata/community.panodata.org# du -sch .
661M total
그리고
순서대로 애플리케이션을 다시 실행해 보았지만, Rails 앱이 PostgreSQL에 연결할 수 없어 실패했습니다:
==> shared/standalone/log/rails/unicorn.stderr.log <==
I, [2020-12-07T12:20:58.960126 #459] INFO -- : Refreshing Gem list
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'