# Errno::ENOENT: Arquivo ou diretório não encontrado @ rb\_sysopen - /etc/postgresql/15/main/postgresql.conf

**URL:** <https://meta.discourse.org/t/errno-no-such-file-or-directory-rb-sysopen-etc-postgresql-15-main-postgresql-conf/350954>\
**Category:** Product Support\
**Created:** [Fevereiro 6, 2025, 9:09pm UTC](https://meta.discourse.org/t/errno-no-such-file-or-directory-rb-sysopen-etc-postgresql-15-main-postgresql-conf/350954 "2025-02-06T21:09:18Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sallypf](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sallypf](https://meta.discourse.org/u/sallypf)\
**Post date:** [Fevereiro 6, 2025, 9:09pm UTC](https://meta.discourse.org/t/errno-no-such-file-or-directory-rb-sysopen-etc-postgresql-15-main-postgresql-conf/350954/1 "2025-02-06T21:09:18Z")

</div>

Tentei atualizar via admin, não tenho certeza do que aconteceu, mas as páginas de admin ficaram em branco enquanto o front estava ok. Decidi fazer a atualização novamente via linha de comando e recebi este erro

**Errno::ENOENT: No such file or directory @ rb\_sysopen - /etc/postgresql/15/main/postgresql.conf**

```plaintext
cd /var/discourse; ./launcher rebuild app
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
2.0.20240708-0023: Pulling from discourse/base
Digest: sha256:025e9c1f68
Status: Image is up to date for discourse/base:2.0.20240708-0023
docker.io/discourse/base:2.0.20240708-0023
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2025-02-06T20:57:43.044950 #1] INFO -- : Reading from stdin
I, [2025-02-06T20:57:43.066724 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown: 
I, [2025-02-06T20:57:43.072432 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown: 
I, [2025-02-06T20:57:43.077790 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown: 
I, [2025-02-06T20:57:43.083299 #1] INFO -- : File > /root/install_postgres chmod: +x chown: 
I, [2025-02-06T20:57:43.087962 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown: 

FAILED
--------------------
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/15/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/replace_command.rb:11:in `read'
replace failed with the params {"filename"=>"/etc/postgresql/15/main/postgresql.conf", "from"=>"data_directory = '/var/lib/postgresql/15/main'", "to"=>"data_directory = '/shared/postgres_data'"}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

```

Algumas outras informações

```plaintext
cat containers/app.yml | grep postgres

- "templates/postgres.template.yml"

```

Como consertar?

---

_[View the full topic](https://meta.discourse.org/t/errno-no-such-file-or-directory-rb-sysopen-etc-postgresql-15-main-postgresql-conf/350954)._
