재구축 오류: Errno::ENOENT: 파일 또는 디렉터리가 없습니다 @ rb_sysopen - /e tc/postgresql/13/main/pg_hba.conf

테스트 서버에서 git pull과 런처 재빌드를 시도했는데, 다음 오류에서 멈추었습니다.

meta의 유사한 게시물에 대한 답변/해결책(예: .yml 파일 확인 등)은 도움이 되지 않는 것 같습니다. 다음으로 시도해 볼 것이 무엇인가요?

[2021-08-18T05:05:59.296981 #1]  INFO -- : Replacing (?-m
ix:^#local +replication +postgres +peer$) with local replica
tion postgres  peer in /etc/postgresql/10/main/pg_hba.conf
I, [2021-08-18T05:05:59.297568 #1]  INFO -- : Replacing (?-m
ix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5
in /etc/postgresql/10/main/pg_hba.conf


FAILED
--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc
/postgresql/13/main/pg_hba.conf
Location of failure: /pups/lib/pups/replace_command.rb:8:in
`read'
replace failed with the params {"filename"=>"/etc/postgresql
/13/main/pg_hba.conf", "from"=>"/^host.*all.*all.*::1\\/128.
*$/", "to"=>"host all all ::/0 md5"}
8b287a9432793a0b0447d0ec954cbfd5b14906dcf7aaf82b61b968626e6b
0cd5
** FAILED TO BOOTSTRAP ** please scroll up and look for earl
ier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

오랜만에 업그레이드를 진행하신 건가요?
데이터베이스 업그레이드 실패로 보입니다.

마지막 재빌드 이후로 아마 2개월 정도 지난 것 같습니다.

Postgres 10은 좀 오래전의 버전입니다. 왜 설치 환경에서 여전히 Postgres 10을 참조하고 있나요? 재빌드 전에 app.yml 파일을 수정해 보셨나요?

PostgreSQL 13 업데이트를 확인해 보세요.

컨테이너 두 개를 사용하고 계신가요? (app.yml 파일이 있거나 data 컨테이너와 web_only 컨테이너를 사용 중이신가요)

app.yml을 확인했다고 생각했는데, 실제로는 postgres 10으로 설정되어 있었습니다. 덕분에 빌드 문제가 해결되었습니다.

힌트 주셔서 감사합니다.