설치 업데이트 문제

커뮤니티 여러분께 인사드립니다.

Discourse 설치를 업데이트한 지 좀 됐는데, 오늘 업데이트를 시도했는데 이런 오류가 발생합니다. 저는 프로그래머가 아니라 단순히 관심 있는 사용자일 뿐이라 이런 문제를 처음 겪어봅니다.

이 링크(Manually update Discourse and Docker image to latest)에 설명된 단계를 따라 해보았지만, 불행히도 작동하지 않았습니다.

이 문제를 어떻게 해결할 수 있을까요?

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 514 exit 1>
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 {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.

안녕하세요, @georgersantoss :slight_smile:

해당 ‘FAILED’ 블록의 끝에서부터 위로 스크롤하면 출력 결과에 포함된 더 자세한 오류 메시지를 확인하실 수 있습니다. 이 내용을 여기에 공유해 주시거나, 전체를 붙여넣어 주시면 확인해 드리겠습니다 :slight_smile:

오류와 관련하여, 이 return이 반환된 것이라고 생각됩니다

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I, [2023-10-04T13:36:43.944790 #1]  INFO -- : gem install multipart-post -v 2.3.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed multipart-post-2.3.0
1 gem installed
gem install faraday-multipart -v 1.0.4 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed faraday-multipart-1.0.4
1 gem installed
gem install ruby-openai -v 5.1.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed ruby-openai-5.1.0
1 gem installed
gem install google_search_results -v 2.2.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed google_search_results-2.2.0
1 gem installed
gem install wikipedia-client -v 1.17.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed wikipedia-client-1.17.0
1 gem installed
gem install childprocess -v 4.1.0 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed childprocess-4.1.0
1 gem installed
gem install safe_ruby -v 1.0.4 -i /var/www/discourse/plugins/discourse-chatbot/gems/3.2.2 --no-document --ignore-dependencies --no-user-install
Successfully installed safe_ruby-1.0.4
1 gem installed
Compiled theme-transpiler: tmp/theme-transpiler.js
== 20230820010101 EnableEmbeddingExtension: migrating =========================
-- enable_extension(:embedding)

I, [2023-10-04T13:36:43.945760 #1]  INFO -- : Terminating async processes
I, [2023-10-04T13:36:43.945832 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 42
I, [2023-10-04T13:36:43.946048 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 111
111:signal-handler (1696426603) Received SIGTERM scheduling shutdown...
2023-10-04 13:36:43.946 UTC [42] LOG:  received fast shutdown request
2023-10-04 13:36:43.949 UTC [42] LOG:  aborting any active transactions
2023-10-04 13:36:43.953 UTC [42] LOG:  background worker "logical replication launcher" (PID 51) exited with exit code 1
2023-10-04 13:36:43.956 UTC [46] LOG:  shutting down
111:M 04 Oct 2023 13:36:43.960 # User requested shutdown...
111:M 04 Oct 2023 13:36:43.960 * Saving the final RDB snapshot before exiting.
111:M 04 Oct 2023 13:36:43.994 * DB saved on disk
111:M 04 Oct 2023 13:36:43.994 # Redis is now ready to exit, bye bye...
2023-10-04 13:36:44.003 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 514 exit 1>
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 {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.
ecd06a9462e1f89b72e3c8cd2f04a35fbc5a6777c65e6b123e110ce8875091c9

@JammyDodger

문제를 찾았어요. 재구성을 수행할 때 플러그인 충돌이 원인이었네요.

플러그인을 제거한 후 필요한 부분을 수정할 수 있었습니다.

관심 가져주셔서 감사합니다.

어떤 거요?

채팅봇은 app.yml 파일에 추가 항목이 필요하며, 이미 꽤 오래전부터 그랬습니다. 플러그인 주제의 원문(첫 번째 게시글)을 참고하세요.

설치한 Chatbot 플러그인입니다. 플러그인을 제거하고, 작동했던 재구축 명령어를 다시 실행했습니다.

사용했던 플러그인 링크는 이렇습니다: GitHub - merefield/discourse-chatbot: An AI bot with RAG capability for Topics, Chat & Customer Support in Discourse, currently powered by OpenAI · GitHub

정말 오랜만에 업데이트를 해서 이 주제에 대해 따라가기조차 힘들 정도였습니다.

하지만 이제 알았으니, 더 자세히 확인해 보겠습니다.

부득이한 breaking change라 죄송합니다. 해당 기술의 특성상 실험적인 부분이 많습니다.

새로운 기능들이 그 노력을 보상할 가치가 있습니다.