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

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?

2 Likes

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.

3 Likes

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