포럼 오프라인, 업데이트 오류

내 포럼이 오프라인 상태입니다

업데이트를 시도해 보았지만

아래와 같은 오류가 발생합니다

102:signal-handler (1678624734) Received SIGTERM scheduling shutdown...
2023-03-12 12:38:54.291 UTC [41] LOG:  aborting any active transactions
2023-03-12 12:38:54.295 UTC [41] LOG:  background worker "logical replication launcher" (P
ID 50) exited with exit code 1
2023-03-12 12:38:54.297 UTC [45] LOG:  shutting down
102:M 12 Mar 2023 12:38:54.326 # User requested shutdown...
102:M 12 Mar 2023 12:38:54.326 * Saving the final RDB snapshot before exiting.
2023-03-12 12:38:54.326 UTC [41] LOG:  database system is shut down
102:M 12 Mar 2023 12:38:54.385 * DB saved on disk
102:M 12 Mar 2023 12:38:54.385 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle install --deployment --r
etry 3 --jobs 4 --verbose --without test development' failed with return #<Process::Status
: pid 405 exit 5>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.
rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -
c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
bootstrap failed with exit code 5
** 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.
5e9f26636d37c9aa6ec6a4b0a99e14999c51c0d08cd4676924f620185c4a51cb

더 많은 줄을 포함해 주세요. 이전 50줄이면 충분할 것 같습니다.

수정 완료했습니다. 이제 OhK도 작동합니다.

감사합니다

무엇을 수정하셨나요?

(+20자)

문제는 아마도 다음과 같은 것일 것 같습니다.

fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

        git config --global --add safe.directory /var/www/discourse

그래서 몇 가지 랜덤한 명령어를 시도해 봤는데, 아래 명령어가 문제를 해결한 것 같습니다

git config --system --add safe.directory /var/www/discourse

커스텀 docker .yml 템플릿을 사용하고 있었습니다. 결국 문제를 해결해 준 것은 다음과 같은 작업을 수행하는 것이었습니다: