업데이트 오류

어젯밤 3.4.0으로 업데이트를 시도했는데 업데이트가 계속 실패합니다. 명백한 플러그인 오류를 찾지 못했고, 메모리도 충분한 것으로 보입니다…


==================== SERIOUS PROBLEM!!!! ====================

app not running!

Attempting to rebuild

==================== REBUILD LOG ====================

x86_64 arch detected.

WARNING: containers/app.yml file is world-readable. You can secure this file by running: chmod o-rwx containers/app.yml

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.20240825-0027: Pulling from discourse/base

Digest: sha256:6de68cb49198b5281f79ed9401b3fe818c854d220dcf0238549fe2f2adb19146

Status: Image is up to date for discourse/base:2.0.20240825-0027

/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb

/usr/local/bin/pups --stdin

I, [2024-08-29T06:27:54.954308 #1] INFO -- : Reading from stdin

I, [2024-08-29T06:27:54.967006 #1] INFO -- : File > /etc/service/postgres/run chmod: +x chown:

I, [2024-08-29T06:27:54.972778 #1] INFO -- : File > /etc/service/postgres/log/run chmod: +x chown:

I, [2024-08-29T06:27:54.977868 #1] INFO -- : File > /etc/runit/3.d/99-postgres chmod: +x chown:

I, [2024-08-29T06:27:54.983048 #1] INFO -- : File > /root/install_postgres chmod: +x chown:

I, [2024-08-29T06:27:54.988576 #1] INFO -- : File > /root/upgrade_postgres chmod: +x chown:

I, [2024-08-29T06:27:54.988882 #1] INFO -- : Replacing data_directory = '/var/lib/postgresql/13/main' with data_directory = '/shared/postgres_data' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.989890 #1] INFO -- : Replacing (?-mix:#?listen_addresses *=.*) with listen_addresses = '*' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.992525 #1] INFO -- : Replacing (?-mix:#?synchronous_commit *=.*) with synchronous_commit = $db_synchronous_commit in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.993361 #1] INFO -- : Replacing (?-mix:#?shared_buffers *=.*) with shared_buffers = $db_shared_buffers in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.994078 #1] INFO -- : Replacing (?-mix:#?work_mem *=.*) with work_mem = $db_work_mem in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.994692 #1] INFO -- : Replacing (?-mix:#?default_text_search_config *=.*) with default_text_search_config = '$db_default_text_search_config' in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.996207 #1] INFO -- : Replacing (?-mix:#?checkpoint_segments *=.*) with checkpoint_segments = $db_checkpoint_segments in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.996893 #1] INFO -- : Replacing (?-mix:#?logging_collector *=.*) with logging_collector = $db_logging_collector in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.998006 #1] INFO -- : Replacing (?-mix:#?log_min_duration_statement *=.*) with log_min_duration_statement = $db_log_min_duration_statement in /etc/postgresql/13/main/postgresql.conf

I, [2024-08-29T06:27:54.998824 #1] INFO -- : Replacing (?-mix:^#local +replication +postgres +peer$) with local replication postgres peer in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:54.999520 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*127.*$) with host all all 0.0.0.0/0 md5 in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:55.000423 #1] INFO -- : Replacing (?-mix:^host.*all.*all.*::1\/128.*$) with host all all ::/0 md5 in /etc/postgresql/13/main/pg_hba.conf

I, [2024-08-29T06:27:55.001096 #1] INFO -- : > if [ -f /root/install_postgres ]; then

/root/install_postgres && rm -f /root/install_postgres

elif [ -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

I, [2024-08-29T06:27:55.067844 #1] INFO -- : Generating locales (this might take a while)...

Generation complete.

postgres already running stop container

FAILED

--------------------

Pups::ExecError: if [ -f /root/install_postgres ]; then

/root/install_postgres && rm -f /root/install_postgres

elif [ -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

failed with return #<Process::Status: pid 16 exit 1>

Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'

exec failed with the params {"tag"=>"db", "cmd"=>"if [ -f /root/install_postgres ]; then\n /root/install_postgres && rm -f /root/install_postgres\nelif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then\n socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1\nfi\n"}

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.

afa7edec7b05a0d8269e150cef76c0f3d66c0ec9ff17378f8202d2e10b81ded1

==================== END REBUILD LOG ====================
              total        used        free      shared  buff/cache   available
Mem:        4039588      282424     1478380       44144     2278784     3421444
Swap:             0           0           0

어제 4GB 인스턴스에서 메모리 부족 현상이 발생해서 스왑을 추가할 예정이었습니다. 다만 여기서는 그 문제가 아닌 것 같습니다.

Postgres가 이미 실행 중인 것으로 보입니다. app.yml만 있고 data.yml은 없나요?

제이님,
data.yml 파일에 접근하거나 다시 생성하는 방법은 무엇인가요?

당신은 하나를 가지고 있지 않은 것 같습니다. 만약 그렇다면, postgres 문제의 원인에 대해 전혀 감이 잡히지 않습니다.

Droplet을 재부팅한 후 재구성이 조금 더 진행되었지만, 여기에서 게시된 것과 동일한 문제가 발생했습니다: PostgreSQL Stuck During Rebuilding - #15 by haroldfy

./launcher start app 명령을 사용하여 이전 3.4.0.beta1-dev 버전의 포럼으로 복원했습니다.

다음 릴리스를 기다리거나 Ubuntu 20.04.6 LTS로 업데이트를 시도해 볼 수도 있습니다.

OS 업그레이드를 시도하기보다는 새 OS를 설치한 새로운 VM을 실행하는 것이 좋습니다.

이 이슈는 여기서 마무리하고, 토론은 다른 주제로 유지합시다. :+1: