앱 재구축 실패 - Data Explorer 플러그인 문제일까요?

여러분 안녕하세요,

저희 Discourse 버전은 2.6.0.beta2 ( 5d7055779a )입니다.

./launcher rebuild app 명령어를 사용하여 터미널에서 Discourse를 재빌드하려고 시도하고 있는데 문제가 발생하고 있습니다.

처음에는 정상적으로 진행되는 것처럼 보이다가 다음 메시지와 함께 종료됩니다:

/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:238:in `migrate'
/var/www/discourse/lib/tasks/db.rake:215:in `block in <main>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
I, [2020-09-05T08:25:58.657559 #1]  INFO -- : == 20200810053843 CreateDataExplorerQueries: migrating ========================
-- create_table(:data_explorer_queries)
   -> 0.0106s
-- create_table(:data_explorer_query_groups)
   -> 0.0094s
-- add_index(:data_explorer_query_groups, [:query_id, :group_id], {:unique=>true})
   -> 0.0027s

I, [2020-09-05T08:25:58.658141 #1]  INFO -- : Terminating async processes
I, [2020-09-05T08:25:58.658212 #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/12/bin/postmaster -D /etc/postgresql/12/main pid: 49
I, [2020-09-05T08:25:58.658286 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 166
166:signal-handler (1599294358) Received SIGTERM scheduling shutdown...
2020-09-05 08:25:58.659 UTC [49] LOG:  received fast shutdown request
2020-09-05 08:25:58.660 UTC [49] LOG:  aborting any active transactions
2020-09-05 08:25:58.666 UTC [49] LOG:  background worker "logical replication launcher" (PID 58) exited with exit code 1
2020-09-05 08:25:58.667 UTC [53] LOG:  shutting down
2020-09-05 08:25:58.683 UTC [49] LOG:  database system is shut down
166:M 05 Sep 2020 08:25:58.719 # User requested shutdown...
166:M 05 Sep 2020 08:25:58.719 * Saving the final RDB snapshot before exiting.
166:M 05 Sep 2020 08:25:59.567 * DB saved on disk
166:M 05 Sep 2020 08:25:59.567 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 3035 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
5146d792aacf0286c008994c87539929db643cb326e686d9fb2a14095697b12b
** 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.

다행히 사이트는 여전히 작동하고 있습니다.

Data Explorer 플러그인을 제거하면 사이트가 정상적으로 재빌드됩니다.

app.yml에 Data Explorer를 다시 추가하면 사이트 재빌드가 실패합니다.

제 app.yml의 관련 부분은 다음과 같습니다:

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/paviliondev/discourse-locations.git
          - git clone https://github.com/merefield/discourse-onebox-assistant.git
          - git clone https://github.com/discourse/discourse-data-explorer.git          
## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address

어떤 조언을 주실 수 있을까요?

유사한 항목?:

아마도 :thinking:

여기에 있는 쿼리를 실행하면 다음과 같은 결과가 나옵니다:

솔직히 말씀드리자면, 이 부분은 제 전문 분야가 아니어서 이것이 좋은 결과인지 나쁜 결과인지, 그리고 다음에 무엇을 해야 하는지 전혀 모르겠습니다 :grimacing:

완전히 동일합니다 - @merefield 감사합니다

말씀하신 대로 다른 게시물에서 공유해 주신 쿼리를 실행해 보니 데이터 탐색기(Data Explorer) 쿼리 중 몇 개가 중복되어 있는 것을 확인했습니다.

결심을 하고 @merefield 님처럼 ID 번호가 높은 쿼리를 삭제하고, ID 번호가 낮은 쿼리를 그대로 유지했습니다.

Data Explorer 플러그인을 app.yml에 다시 추가했는데, 아무 문제나 오류 없이 완벽하게 재빌드되었습니다.

다시 한번 감사합니다 :bowing_man: