2.5.0.beta4에서 2.6.0.beta2로 업데이트 시 문제 발생 (아마도 Postgres 관련)

수동을 업데이트를 시작했고, 성공 메시지가 표시되었습니다.

업그레이드 완료

업그레이드 완료

옵티마이저 통계는 pg_upgrade를 통해 이전되지 않으므로,
새 서버를 시작한 후에는 다음을 실행하는 것을 고려하십시오:
    ./analyze_new_cluster.sh

이 스크립트를 실행하면 이전 클러스터의 데이터 파일이 삭제됩니다:
    ./delete_old_cluster.sh
-------------------------------------------------------------------------------------
POSTGRES 업그레이드 완료

이전 10 데이터베이스는 /shared/postgres_data_old에 저장되어 있습니다

업그레이드를 완료하려면 다음을 사용하여 다시 빌드하십시오:

./launcher rebuild app

그 후 다시 빌드를 시작했지만 다음과 같이 실패했습니다

업데이트 실패
root@dastereo:/var/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 60 app
app
cd /pups && git pull && /pups/bin/pups --stdin
Already up to date.
I, [2020-08-28T22:15:49.237202 #1]  INFO -- : Loading --stdin
I, [2020-08-28T22:15:49.246474 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2020-08-28T22:15:49.309866 #1]  INFO -- : Generating locales (this might take a while)...
Generation complete.

I, [2020-08-28T22:15:49.310349 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2020-08-28T22:15:49.316184 #1]  INFO -- :
I, [2020-08-28T22:15:49.316596 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2020-08-28T22:15:49.319934 #1]  INFO -- :
I, [2020-08-28T22:15:49.320186 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2020-08-28T22:15:49.323330 #1]  INFO -- :
I, [2020-08-28T22:15:49.323567 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2020-08-28T22:15:49.326569 #1]  INFO -- :
I, [2020-08-28T22:15:49.326949 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2020-08-28T22:15:49.330237 #1]  INFO -- :
I, [2020-08-28T22:15:49.330539 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2020/08/28 22:15:49 socat[27] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2020-08-28T22:15:49.344063 #1]  INFO -- :
I, [2020-08-28T22:15:49.344291 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2020-08-28T22:15:49.347499 #1]  INFO -- :
I, [2020-08-28T22:15:49.347672 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2020-08-28T22:15:49.350643 #1]  INFO -- :
I, [2020-08-28T22:15:49.350781 #1]  INFO -- : > mkdir -p /shared/postgres_run/12-main.pg_stat_tmp
I, [2020-08-28T22:15:49.353189 #1]  INFO -- :
I, [2020-08-28T22:15:49.353352 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/12-main.pg_stat_tmp
I, [2020-08-28T22:15:49.355623 #1]  INFO -- :
I, [2020-08-28T22:15:49.360998 #1]  INFO -- : File > /etc/service/postgres/run  chmod: +x  chown:
I, [2020-08-28T22:15:49.365799 #1]  INFO -- : File > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2020-08-28T22:15:49.370537 #1]  INFO -- : File > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2020-08-28T22:15:49.375055 #1]  INFO -- : File > /root/upgrade_postgres  chmod: +x  chown:
I, [2020-08-28T22:15:49.375336 #1]  INFO -- : > chown -R root /var/lib/postgresql/12/main
I, [2020-08-28T22:15:49.944663 #1]  INFO -- :
I, [2020-08-28T22:15:49.944814 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/12/bin/initdb -D /shared/postgres_data || exit 0
I, [2020-08-28T22:15:49.947279 #1]  INFO -- :
I, [2020-08-28T22:15:49.947680 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2020-08-28T22:15:50.017730 #1]  INFO -- :
I, [2020-08-28T22:15:50.018101 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2020-08-28T22:15:50.020860 #1]  INFO -- :
I, [2020-08-28T22:15:50.021056 #1]  INFO -- : > /root/upgrade_postgres
I, [2020-08-28T22:15:50.062719 #1]  INFO -- : Upgrading PostgreSQL from version 10 to 12
WARNING: Upgrading PostgresSQL would require an addtional 70G of disk space
Please free up some space, or expand your disk, before continuing.

To avoid upgrading change "templates/postgres.template.yml" TO "templates/postgres.10.template.yml" in containers/app.yml



FAILED
--------------------
Pups::ExecError: /root/upgrade_postgres failed with return #<Process::Status: pid 46 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "/root/upgrade_postgres"
fffe5d64258419a99ad85d9d9a2da7a7cde0642ac7fd99e197c6f548712f72eb
** 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.

저는 70GB의 큰 데이터베이스를 가지고 있지만, 업데이트에 필요한 충분한 여유 공간이 있습니다.
2015년 7월에 설치한 꽤 오래된 초기 설치 버전입니다.

확인하거나 수정해야 할 사항에 대해 조언해 주십시오.

감사합니다

app.yml에서 "templates/postgres.10.template.yml"를 사용해 PG12 업데이트를 연기했지만, PG 업데이트는 여전히 진행하고자 합니다.

감사합니다

에러가 꽤 명확해 보입니다.

WARNING: Upgrading PostgresSQL would require an addtional 70G of disk space
Please free up some space, or expand your disk, before continuing.

업그레이드를 수행할 디스크 공간이 부족합니다. 현재 얼마나 많은 사용 가능한 공간이 있나요?

Postgres 기반 파티션 (현재 DB 70GB)
/dev/disk/by-label/DOROOT 330146412 137824104 175528936 44% /

이미지를 위한 추가 볼륨
/dev/sda 207932088 158390772 40066880 80% /mnt/volume_lon1_01

"templates/postgres.template.yml"를 한 번 더 시도해도 안전할까요?

감사합니다