Rebuild error: Errno::ENOENT: No such file or directory @ rb_sysopen - /e tc/postgresql/13/main/pg_hba.conf

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?

[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 md5
in /etc/postgresql/10/main/pg_hba.conf

Errno::ENOENT: No such file or directory @ rb_sysopen - /etc
Location of failure: /pups/lib/pups/replace_command.rb:8:in
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"}
** 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.

are you upgrading after a really long time?
Looks like a failed database upgrade to me.

Probably about 2 months since the last rebuild.

Postgres 10 was a while ago. Why is your install still referencing postgres 10? have you made any changes to your app.yml before the rebuild?


Have a look at PostgreSQL 13 update.

Do you have a two container instalation? (do you have app.yml or a data and web_only containers)

1 Like

I thought I’d checked app.yml but yes, it was set to postgres 10. That fixed my build problem.

Thanks for the hint.


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