Sto tentando di ricostruire e ricevo il seguente errore relativo a postgres:
FAILED TO BOOTSTRAP ** scorri verso l’alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
6d9dad720d559f382809cae944aa4f1aa0eae9b80a09d6c6806b51774680b416
root@discourse:/var/discourse# ./launcher enter app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
Error response from daemon: Container 5618364d766e93a3ea47797a41a8ca500db8c422de8bb5dd6e918d960067698b is not running
root@discourse:/var/discourse# ./launcher start app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
starting up existing container
- /usr/bin/docker start app
app
root@discourse:/var/discourse# ./launcher enter app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
root@discourse-app:/var/www/discourse# ls -la /etc/postgresql/
total 16
drwxr-xr-x 1 postgres postgres 4096 Mar 13 2026 .
drwxr-xr-x 1 root root 4096 Mar 13 2026 ..
drwxr-xr-x 3 postgres postgres 4096 Mar 13 2026 13
root@discourse-app:/var/www/discourse# find /etc/postgresql -name postgresql.conf
/etc/postgresql/13/main/postgresql.conf
root@discourse-app:/var/www/discourse# psql --version
psql (PostgreSQL) 13.23 (Debian 13.23-1.pgdg12+1)
root@discourse-app:/var/www/discourse# find /etc/postgresql -type f -name “postgresql.conf” -print
/etc/postgresql/13/main/postgresql.conf
root@discourse-app:/var/www/discourse# grep -R “postgresql/13/main/postgresql.conf” /var/discourse/containers/
grep: /var/discourse/containers/: No such file or directory
root@discourse-app:/var/www/discourse# exit
logout
root@discourse:/var/discourse# grep -R “postgresql/13/main/postgresql.conf” /var/discourse/containers/
root@discourse:/var/discourse# nano containers/app.yml
root@discourse:/var/discourse# ./launcher rebuild app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container - /usr/bin/docker stop -t 600 app
app
2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Image is up to date for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
/usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2026-09-15T19:26:20.003232 #1] INFO – : Reading from stdin
I, [2026-09-15T19:26:20.014645 #1] INFO – : > DEBIAN_FRONTEND=noninteractive apt-get purge -y postgresql-15 postgresql-client-15 postgresql-contrib-15 postgresql-15-pgvector
Reading package lists…
Building dependency tree…
Reading state information…
Package ‘postgresql-15’ is not installed, so not removed
Package ‘postgresql-15-pgvector’ is not installed, so not removed
The following packages will be REMOVED:
postgresql-client-15*
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
After this operation, 8,577 kB disk space will be freed.
(Reading database … 37993 files and directories currently installed.)
Removing postgresql-client-15 (15.19-1.pgdg13+2) …
Processing triggers for postgresql-common (293.pgdg13+1) …
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:26:23.405525 #1] INFO – : > apt-get update && apt-get install -y postgresql-13 postgresql-client-13 postgresql-contrib-13 postgresql-13-pgvector
Hit:1 Index of /debian trixie InRelease
Get:2 Index of /debian trixie-updates InRelease [47.3 kB]
Get:3 Index of /debian-security trixie-security InRelease [43.4 kB]
Get:4 Index of /debian trixie-backports InRelease [54.0 kB]
Hit:5 Index of /pub/repos/apt/ trixie-pgdg InRelease
Hit:6 https://deb.nodesource.com/node_22.x nodistro InRelease
Get:7 Index of /debian trixie-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:8 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Get:8 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Fetched 209 kB in 0s (514 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Suggested packages:
postgresql-doc-13
The following NEW packages will be installed:
postgresql-13 postgresql-13-pgvector postgresql-client-13
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 15.8 MB of archives.
After this operation, 55.0 MB of additional disk space will be used.
Get:1 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-client-13 amd64 13.23-2.pgdg13+2 [1,560 kB]
Get:2 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13 amd64 13.23-2.pgdg13+2 [13.9 MB]
Get:3 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13-pgvector amd64 0.8.6-1.pgdg13+1 [271 kB]
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Preconfiguring packages …
Fetched 15.8 MB in 0s (32.1 MB/s)
Selecting previously unselected package postgresql-client-13.
(Reading database … 37639 files and directories currently installed.)
Preparing to unpack …/postgresql-client-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-client-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13.
Preparing to unpack …/postgresql-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13-pgvector.
Preparing to unpack …/postgresql-13-pgvector_0.8.6-1.pgdg13+1_amd64.deb …
Unpacking postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Setting up postgresql-client-13 (13.23-2.pgdg13+2) …
Setting up postgresql-13 (13.23-2.pgdg13+2) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Processing triggers for postgresql-common (293.pgdg13+1) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:26:33.924838 #1] INFO – : File > /etc/service/postgres/run chmod: +x chown:
I, [2026-09-15T19:26:33.937383 #1] INFO – : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2026-09-15T19:26:33.948008 #1] INFO – : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2026-09-15T19:26:33.957031 #1] INFO – : File > /root/install_postgres chmod: +x chown:
FAILED
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/13/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/replace_command.rb:11:in ‘IO.read’
replace failed with the params {“filename” => “/etc/postgresql/13/main/postgresql.conf”, “from” => “data_directory = ‘/var/lib/postgresql/13/main’”, “to” => “data_directory = ‘/shared/postgres_data’”}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** scorri verso l’alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
e872bf2ce6397fc303a1082dd69a2a821ebe167797a51f12c7895f00d95efd31
root@discourse:/var/discourse# ./launcher help
Usage: launcher COMMAND CONFIG [–skip-prereqs] [–docker-args STRING]
Commands:
start: Avvia/inizializza un container
stop: Ferma un container in esecuzione
restart: Riavvia un container
destroy: Ferma e rimuove un container
enter: Apre una shell per eseguire comandi all’interno del container
logs: Visualizza i log Docker di un container
bootstrap: Effettua il bootstrap di un container per la configurazione basata su un template
run: Esegue il comando specificato con la configurazione nel contesto dell’ultimo image bootstrap
rebuild: Ricostruisce un container (distruggi il vecchio, bootstrap, avvia il nuovo)
cleanup: Rimuove tutti i container che si sono fermati da più di 24 ore
start-cmd: Genera il comando docker utilizzato per avviare il container
Options:
–skip-prereqs Non verificare i prerequisiti del launcher
–docker-args Argomenti extra da passare durante l’esecuzione di docker
–skip-mac-address Non assegnare un indirizzo mac
–run-image Sovrascrive l’immagine utilizzata per l’esecuzione del container
root@discourse:/var/discourse# git pull
Already up to date.
root@discourse:/var/discourse# git status
On branch main
Your branch is up to date with ‘origin/main’.
nothing to commit, working tree clean
root@discourse:/var/discourse# git pull origin main
From GitHub - discourse/discourse_docker: A Docker image for Discourse · GitHub
- branch main → FETCH_HEAD
Already up to date.
root@discourse:/var/discourse# ./launcher rebuild app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
- /usr/bin/docker stop -t 600 app
app
2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Image is up to date for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
/usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2026-09-15T19:30:33.425701 #1] INFO – : Reading from stdin
I, [2026-09-15T19:30:33.433210 #1] INFO – : > DEBIAN_FRONTEND=noninteractive apt-get purge -y postgresql-15 postgresql-client-15 postgresql-contrib-15 postgresql-15-pgvector
Reading package lists…
Building dependency tree…
Reading state information…
Package ‘postgresql-15’ is not installed, so not removed
Package ‘postgresql-15-pgvector’ is not installed, so not removed
The following packages will be REMOVED:
postgresql-client-15*
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
After this operation, 8,577 kB disk space will be freed.
(Reading database … 37993 files and directories currently installed.)
Removing postgresql-client-15 (15.19-1.pgdg13+2) …
Processing triggers for postgresql-common (293.pgdg13+1) …
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:30:36.871090 #1] INFO – : > apt-get update && apt-get install -y postgresql-13 postgresql-client-13 postgresql-contrib-13 postgresql-13-pgvector
Hit:1 Index of /debian trixie InRelease
Get:2 Index of /debian trixie-updates InRelease [47.3 kB]
Get:3 Index of /debian-security trixie-security InRelease [43.4 kB]
Get:4 Index of /debian trixie-backports InRelease [54.0 kB]
Hit:5 Index of /pub/repos/apt/ trixie-pgdg InRelease
Get:6 Index of /debian trixie-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:7 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Get:7 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Hit:8 https://deb.nodesource.com/node_22.x nodistro InRelease
Fetched 209 kB in 0s (456 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Suggested packages:
postgresql-doc-13
The following NEW packages will be installed:
postgresql-13 postgresql-13-pgvector postgresql-client-13
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 15.8 MB of archives.
After this operation, 55.0 MB of additional disk space will be used.
Get:1 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-client-13 amd64 13.23-2.pgdg13+2 [1,560 kB]
Get:2 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13 amd64 13.23-2.pgdg13+2 [13.9 MB]
Get:3 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13-pgvector amd64 0.8.6-1.pgdg13+1 [271 kB]
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Preconfiguring packages …
Fetched 15.8 MB in 1s (27.9 MB/s)
Selecting previously unselected package postgresql-client-13.
(Reading database … 37639 files and directories currently installed.)
Preparing to unpack …/postgresql-client-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-client-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13.
Preparing to unpack …/postgresql-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13-pgvector.
Preparing to unpack …/postgresql-13-pgvector_0.8.6-1.pgdg13+1_amd64.deb …
Unpacking postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Setting up postgresql-client-13 (13.23-2.pgdg13+2) …
Setting up postgresql-13 (13.23-2.pgdg13+2) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Processing triggers for postgresql-common (293.pgdg13+1) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:30:47.866832 #1] INFO – : File > /etc/service/postgres/run chmod: +x chown:
I, [2026-09-15T19:30:47.873732 #1] INFO – : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2026-09-15T19:30:47.883656 #1] INFO – : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2026-09-15T19:30:47.894944 #1] INFO – : File > /root/install_postgres chmod: +x chown:
FAILED
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/13/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/replace_command.rb:11:in ‘IO.read’
replace failed with the params {“filename” => “/etc/postgresql/13/main/postgresql.conf”, “from” => “data_directory = ‘/var/lib/postgresql/13/main’”, “to” => “data_directory = ‘/shared/postgres_data’”}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** scorri verso l’alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
f2487d88dbf2688af4d2f9efe5031277f9becd3e8deaaee59936b5a3282825cb
root@discourse:/var/discourse# ./launcher start app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
./
starting up existing container
-
/usr/bin/docker start app
launcapp
root@discourse:/var/discourse# ./launcher enter app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
root@discourse-app:/var/www/discourse# find /etc/postgresql -maxdepth 4 -type f -name “postgresql.conf” -print
/etc/postgresql/13/main/postgresql.conf
root@discourse-app:/var/www/discourse# ls -l /etc/postgresql/13/main/postgresql.conf
-rw-r–r-- 1 postgres postgres 28160 Mar 13 2026 /etc/postgresql/13/main/postgresql.conf
root@discourse-app:/var/www/discourse# grep “data_directory” /etc/postgresql/13/main/postgresql.conf
data_directory = ‘/shared/postgres_data’ # use data in another directory
root@discourse-app:/var/www/discourse# grep -n “data_directory” /etc/postgresql/13/main/postgresql.conf
42:data_directory = ‘/shared/postgres_data’ # use data in another directory
root@discourse-app:/var/www/discourse# cat /shared/postgres_data/PG_VERSION
13
root@discourse-app:/var/www/discourse# pg_isready
/var/run/postgresql:5432 - accepting connections
root@discourse-app:/var/www/discourse# grep -R -n “postgresql/13/main/postgresql.conf” containers/
grep: containers/: No such file or directory
root@discourse-app:/var/www/discourse# exit
logout
root@discourse:/var/discourse# grep -R -n “postgresql/13/main/postgresql.conf” containers/
root@discourse:/var/discourse# grep -R -n “data_directory = ‘/var/lib/postgresql/13/main’” .
./templates/postgres.13.template.yml:78: from: “data_directory = ‘/var/lib/postgresql/13/main’”
root@discourse:/var/discourse# sed -n ‘60,90p’ templates/postgres.13.template.yml
rm -fr /var/run/postgresql
ln -s /shared/postgres_run /var/run/postgresql
if [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi
rm -fr /shared/postgres_run/.s*
rm -fr /shared/postgres_run/*.pid
mkdir -p /shared/postgres_run/13-main.pg_stat_tmp
chown postgres:postgres /shared/postgres_run/13-main.pg_stat_tmp
chown -R root /var/lib/postgresql/13/main
[ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/13/bin/initdb -D /shared/postgres_data || exit 0
chown -R postgres:postgres /shared/postgres_data
chown -R postgres:postgres /var/run/postgresql
# Necessary to enable backups
install -d -m 0755 -o postgres -g postgres /shared/postgres_backup- replace:
filename: “/etc/postgresql/13/main/postgresql.conf”
from: “data_directory = ‘/var/lib/postgresql/13/main’”
to: “data_directory = ‘/shared/postgres_data’”
listen on all interfaces
- replace:
filename: “/etc/postgresql/13/main/postgresql.conf”
from: /#?listen_addresses =./
to: “listen_addresses = ‘*’”
sync commit off is faster and less spiky, also marginally less safe
- replace:
filename: “/etc/postgresql/13/main/postgresql.conf”
from: /#?synchronous_commit =./
root@discourse:/var/discourse# ./launcher rebuild app
WARNING: La versione di Docker 24.0.2 è deprecata, si consiglia di aggiornare a 24.0.7 o successiva.
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
- replace:
-
/usr/bin/docker stop -t 600 app
app
2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Image is up to date for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
/usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2026-09-15T19:36:55.987481 #1] INFO – : Reading from stdin
I, [2026-09-15T19:36:55.994696 #1] INFO – : > DEBIAN_FRONTEND=noninteractive apt-get purge -y postgresql-15 postgresql-client-15 postgresql-contrib-15 postgresql-15-pgvector
Reading package lists…
Building dependency tree…
Reading state information…
Package ‘postgresql-15’ is not installed, so not removed
Package ‘postgresql-15-pgvector’ is not installed, so not removed
The following packages will be REMOVED:
postgresql-client-15*
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
After this operation, 8,577 kB disk space will be freed.
(Reading database … 37993 files and directories currently installed.)
Removing postgresql-client-15 (15.19-1.pgdg13+2) …
Processing triggers for postgresql-common (293.pgdg13+1) …
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:36:59.425952 #1] INFO – : > apt-get update && apt-get install -y postgresql-13 postgresql-client-13 postgresql-contrib-13 postgresql-13-pgvector
Hit:1 Index of /debian trixie InRelease
Get:2 Index of /debian trixie-updates InRelease [47.3 kB]
Get:3 Index of /debian-security trixie-security InRelease [43.4 kB]
Get:4 Index of /debian trixie-backports InRelease [54.0 kB]
Hit:5 Index of /pub/repos/apt/ trixie-pgdg InRelease
Hit:6 https://deb.nodesource.com/node_22.x nodistro InRelease
Get:7 Index of /debian trixie-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:8 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Get:8 Index of /debian trixie-backports/main amd64 Packages T-2026-09-15-0200.42-F-2026-09-15-0200.42.pdiff [715 B]
Fetched 209 kB in 0s (597 kB/s)
Reading package lists…
Reading package lists…
Building dependency tree…
Reading state information…
Suggested packages:
postgresql-doc-13
The following NEW packages will be installed:
postgresql-13 postgresql-13-pgvector postgresql-client-13
0 upgraded, 3 newly installed, 0 to remove and 7 not upgraded.
Need to get 15.8 MB of archives.
After this operation, 55.0 MB of additional disk space will be used.
Get:1 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-client-13 amd64 13.23-2.pgdg13+2 [1,560 kB]
Get:2 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13 amd64 13.23-2.pgdg13+2 [13.9 MB]
Get:3 Index of /pub/repos/apt/ trixie-pgdg/main amd64 postgresql-13-pgvector amd64 0.8.6-1.pgdg13+1 [271 kB]
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Preconfiguring packages …
Fetched 15.8 MB in 1s (28.3 MB/s)
Selecting previously unselected package postgresql-client-13.
(Reading database … 37639 files and directories currently installed.)
Preparing to unpack …/postgresql-client-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-client-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13.
Preparing to unpack …/postgresql-13_13.23-2.pgdg13+2_amd64.deb …
Unpacking postgresql-13 (13.23-2.pgdg13+2) …
Selecting previously unselected package postgresql-13-pgvector.
Preparing to unpack …/postgresql-13-pgvector_0.8.6-1.pgdg13+1_amd64.deb …
Unpacking postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Setting up postgresql-client-13 (13.23-2.pgdg13+2) …
Setting up postgresql-13 (13.23-2.pgdg13+2) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-13-pgvector (0.8.6-1.pgdg13+1) …
Processing triggers for postgresql-common (293.pgdg13+1) …
debconf: unable to initialize frontend: Teletype
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Noninteractive
Building PostgreSQL dictionaries from installed myspell/hunspell packages…
Removing obsolete dictionary files:
I, [2026-09-15T19:37:10.443093 #1] INFO – : File > /etc/service/postgres/run chmod: +x chown:
I, [2026-09-15T19:37:10.451905 #1] INFO – : File > /etc/service/postgres/log/run chmod: +x chown:
I, [2026-09-15T19:37:10.461850 #1] INFO – : File > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2026-09-15T19:37:10.470555 #1] INFO – : File > /root/install_postgres chmod: +x chown:
FAILED
Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/postgresql/13/main/postgresql.conf
Location of failure: /usr/local/lib/ruby/gems/3.4.0/gems/pups-1.4.0/lib/pups/replace_command.rb:11:in ‘IO.read’
replace failed with the params {“filename” => “/etc/postgresql/13/main/postgresql.conf”, “from” => “data_directory = ‘/var/lib/postgresql/13/main’”, “to” => “data_directory = ‘/shared/postgres_data’”}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** scorri verso l’alto e cerca messaggi di errore precedenti, potrebbero essercene più di uno.
./discourse-doctor può aiutare a diagnosticare il problema.
a03ab568b935075489b4f4b426d39e7484750f0c48be458f5450d17e60d3ee07