권장된 업그레이드가 실패하여 포럼이 손상된 후 복구되지 않았습니다. 현재 문제를 해결하기 위해 discourse-doctor를 실행 중이며, 이마저도 실패할 경우를 대비해 VM 스냅샷을 백업해 두었습니다.
출력 내용:
2023-04-19 18:28:31.298 UTC [42] LOG: received fast shutdown request
2023-04-19 18:28:33.651 UTC [65] LOG: shutting down
2023-04-19 18:28:33.974 UTC [42] LOG: database system is shut down
FAILED
--------------------
Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 59 exit 2>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
bootstrap failed with exit code 2
** 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.
c13e1ba313de8fc84f6e2fb0f88197a908803c39791283effb8c82f55b56b6dc
Command exited with non-zero status 1
1.85user 1.84system 3:21.56elapsed 1%CPU (0avgtext+0avgdata 36996maxresident)k
197608inputs+368outputs (1133major+96509minor)pagefaults 0swaps
아, 감사합니다. 우리처럼 규모가 큰 포럼의 경우 더 오래 기다리는 것이 좋을 수도 있겠네요. DB 프로세스를 단순히 종료하면 다시 시작할 때 트랜잭션을 롤백해야 하며, 이 과정에는 매우 오랜 시간이 걸릴 수 있습니다.
베타 버전에 관한 용어가 다소 혼란스럽습니다. 관리자 대시보드에는 베타 버전을 실행 중이라고 표시되어 있는데, 다른 곳에 확인해야 할 것이 있나요? 제 이해로는 릴리스 공지에서 안정 버전(stable branch) 사용을 지양하고 있기 때문에, Discourse의 경우 베타 버전이 권장된다고 알고 있습니다.