# שגיאת בנייה מחדש: Errno::ENOENT: אין כזה קובץ או תיקייה @ rb\_sysopen - /etc/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:** [18 באוגוסט,‏ 2021,‏ 5:21am 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:** 1\
**Showing post:** 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:** [18 באוגוסט,‏ 2021,‏ 5:21am 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>

I attempted to do a git pull & launcher rebuild on our test server and got stuck on the following error.

Replies/solutions to similar posts on meta (e.g. checking .yml files, etc) seem to not help. What’s next to try?

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

---

_[View the full topic](https://meta.discourse.org/t/rebuild-error-errno-no-such-file-or-directory-rb-sysopen-e-tc-postgresql-13-main-pg-hba-conf/200800)._
