# 재구축 오류: Errno::ENOENT: 파일 또는 디렉터리가 없습니다 @ rb\_sysopen - /e tc/postgresql/13/main/pg\_hba.conf

**URL:** https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800
**Category:** Self-hosting
**Created:** [8월 18, 2021, 5:21오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800 "2021-08-18T05:21:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Lew\_Grothe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lew_grothe/32/337776_2.png) [@Lew\_Grothe](https://meta.discourse.org/u/Lew_Grothe)
#### Post date: [8월 18, 2021, 5:21오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/1 "2021-08-18T05:21:56Z")

</div>

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

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

```plaintext
[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.
```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [8월 18, 2021, 5:24오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/2 "2021-08-18T05:24:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Lew\_Grothe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lew_grothe/32/337776_2.png) [@Lew\_Grothe](https://meta.discourse.org/u/Lew_Grothe)
#### Post date: [8월 18, 2021, 5:43오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/3 "2021-08-18T05:43:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [8월 18, 2021, 5:48오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/4 "2021-08-18T05:48:14Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [8월 18, 2021, 8:37오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/5 "2021-08-18T08:37:55Z")

</div>

[PostgreSQL 13 업데이트](https://meta.discourse.org/t/postgresql-13-update/172563)를 확인해 보세요.

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

---

<div class="post-metadata">

### Author: ![Lew\_Grothe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lew_grothe/32/337776_2.png) [@Lew\_Grothe](https://meta.discourse.org/u/Lew_Grothe)
#### Post date: [8월 18, 2021, 9:25오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/6 "2021-08-18T09:25:37Z")

</div>

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

힌트 주셔서 감사합니다.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [9월 17, 2021, 9:26오전 UTC](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800/7 "2021-09-17T09:26:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
