TechGeek
(TechGeek)
9월 11, 2022, 1:26오후
1
멀티사이트 구성에서 데이터 컨테이너를 재빌드하는 과정에서 background worker "logical replication launcher" (PID 51) exited with exit code 1 오류가 발생하고 있습니다. 자세한 로그는 아래와 같습니다.
218:C 11 Sep 2022 13:22:51.288 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
218:C 11 Sep 2022 13:22:51.289 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=218, just started
218:C 11 Sep 2022 13:22:51.289 # Configuration loaded
218:M 11 Sep 2022 13:22:51.292 * monotonic clock: POSIX clock_gettime
218:M 11 Sep 2022 13:22:51.293 * Running mode=standalone, port=6379.
218:M 11 Sep 2022 13:22:51.293 # Server initialized
218:M 11 Sep 2022 13:22:51.294 * Loading RDB produced by version 6.2.6
218:M 11 Sep 2022 13:22:51.294 * RDB age 53 seconds
218:M 11 Sep 2022 13:22:51.294 * RDB memory usage when created 32.70 Mb
218:M 11 Sep 2022 13:22:51.429 # Done loading RDB, keys loaded: 7811, keys expired: 0.
218:M 11 Sep 2022 13:22:51.429 * DB loaded from disk: 0.135 seconds
218:M 11 Sep 2022 13:22:51.429 * Ready to accept connections
I, [2022-09-11T13:23:01.284321 #1] INFO -- :
I, [2022-09-11T13:23:01.284632 #1] INFO -- : Terminating async processes
I, [2022-09-11T13:23:01.284702 #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, [2022-09-11T13:23:01.284791 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 218
218:signal-handler (1662902581) Received SIGTERM scheduling shutdown...
2022-09-11 13:23:01.287 UTC [42] LOG: received fast shutdown request
2022-09-11 13:23:01.306 UTC [42] LOG: aborting any active transactions
2022-09-11 13:23:01.318 UTC [42] LOG: background worker "logical replication launcher" (PID 51) exited with exit code 1
218:M 11 Sep 2022 13:23:01.345 # User requested shutdown...
218:M 11 Sep 2022 13:23:01.345 * Saving the final RDB snapshot before exiting.
2022-09-11 13:23:01.356 UTC [46] LOG: shutting down
218:M 11 Sep 2022 13:23:02.113 * DB saved on disk
218:M 11 Sep 2022 13:23:02.114 # Redis is now ready to exit, bye bye...
2022-09-11 13:23:02.169 UTC [42] LOG: database system is shut down
sha256:30b91243b63ec58aa8555df5d1dfac509abe121e5c8d7081dbab2f2278d7d837
11e8bce45c8d0d7020de971c08d49d26287cc513967230530c8ba925a3c058bb
Removing old container
하지만 빌드는 오류 없이 완료된 것으로 보입니다. 데이터 컨테이너를 시작할 때 오류가 발생하고 있나요?
TechGeek
(TechGeek)
9월 11, 2022, 1:32오후
3
데이터 컨테이너가 아니라 웹 컨테이너 재빌드 중 오류 발생
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => multisite:migrate => db:load_config => environment
(전체 추적을 보려면 --trace 옵션과 함께 작업을 실행하세요)
I, [2022-09-11T13:30:49.381804 #1] INFO -- : gem install iso8601 -v 0.13.0 -i /var/www/discourse/plugins/discourse-automation/gems/2.7.6 --no-document --ignore-dependencies --no-user-install
Successfully installed iso8601-0.13.0
1 gem installed
gem install rrule -v 0.4.4 -i /var/www/discourse/plugins/discourse-automation/gems/2.7.6 --no-document --ignore-dependencies --no-user-install
Successfully installed rrule-0.4.4
1 gem installed
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 1095 exit 1>
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 /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
bootstrap failed with exit code 1
TechGeek
(TechGeek)
9월 11, 2022, 1:36오후
5
공식 Discourse 플러그인을 꽤 많이 사용 중입니다. 하지만 Docker Manager를 제외한 모든 플러그인을 비활성화해도 여전히 오류가 발생합니다.
오류라고 지적하신 부분은 제게는 정상적인 메시지처럼 보입니다(데이터 컨테이너 관련).
샌드박스에서 데이터와 웹을 모두 다시 빌드했는데 성공적으로 완료되었습니다. 편집된 web_only.yml 파일을 공유해 주실 수 있나요?
TechGeek:
EMBER_CLI_PROD_ASSETS: 1
이 부분을 주석 처리하고 다시 빌드해 볼 수 있을까요? 더 이상 이 항목이 필요하지 않을 것 같습니다.
TechGeek
(TechGeek)
9월 11, 2022, 2:13오후
9
EMBER_CLI_PROD_ASSETS: 1를 주석 처리한 상태에서도 여전히 동일합니다. 웹 컨테이너를 다시 빌드해도 여전히 아래 오류가 발생합니다:
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 983 exit 1>
pfaffman
(Jay Pfaffman)
9월 11, 2022, 2:24오후
10
Wyeth의 마이그레이션 문제와 관련하여 메시지가 출력된 위치까지 위로 스크롤해야 합니다.
TechGeek
(TechGeek)
9월 11, 2022, 2:32오후
11
아래에 더 많은 로그가 있습니다. 오류는 2행 1열에서 블록 매핑을 파싱하는 동안 예상된 키를 찾지 못했기 때문인데, 정확히 어떤 문제인지 잘 모르겠습니다.
Using cose 1.2.1
0: cose (1.2.1) from /var/www/discourse/vendor/bundle/ruby/2.7.0/specifications/cose-1.2.1.gemspec
Bundle complete! 126 Gemfile dependencies, 183 gems now installed.
Gems in the groups 'test' and 'development' were not installed.
Bundled gems are installed into `./vendor/bundle`
I, [2022-09-11T14:12:48.956298 #1] INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate
rake aborted!
Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 2 column 1
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:181:in `load_config!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:177:in `initialize'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:38:in `new'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/connection_management.rb:38:in `config_filename='
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-4.0.1/lib/rails_multisite/railtie.rb:19:in `block in <class:Railtie>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `run'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/application.rb:372:in `initialize!'
/var/www/discourse/config/environment.rb:7:in `<main>'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:35:in `require'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/application.rb:348:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/railties-7.0.3.1/lib/rails/application.rb:511:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => multisite:migrate => db:load_config => environment
(See full trace by running task with --trace)
I, [2022-09-11T14:12:53.236265 #1] INFO -- :
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 983 exit 1>
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 /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate"
bootstrap failed with exit code 1
Falco
(Falco)
9월 11, 2022, 5:39오후
13
이는 app.yml 파일에 포맷 오류가 있다는 뜻입니다. 멀티사이트 부분에서 발생한 것 같습니다.
pfaffman
(Jay Pfaffman)
9월 11, 2022, 6:35오후
14
sych::SyntaxError가 포함된 플러그인은 discourse-calendar뿐입니다. 이 플러그인을 제거해 보실 수 있나요? 만약 그렇게 하면 문제가 해결된다면, 해당 플러그인에 버그가 있다는 뜻이 됩니다.
TechGeek
(TechGeek)
9월 12, 2022, 4:23오전
16
YML 검증기로 확인해 보았지만 오류가 없습니다.
아래에 업데이트된 오류 출력을 첨부합니다.
INFO -- : Multisite migrator is running using 1 threads
Migrating default
Migrating site2
Seeding default
Seeding site2
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate failed with return #<Process::Status: pid 983 exit 1>
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 /var/www/discourse && sudo -E -u discourse bundle exec rake multisite: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.
./discourse-doctor을 사용하여 전체 로그를 내보낼 수 있나요?
빌드 과정에서 1 Migration Failed라는 줄이 표시되며, 그 아래에는 어떤 사이트에서 실패했는지에 대한 정보가 나옵니다. 빌드가 실제로 수행되려면 해당 사이트에서 무엇이 잘못되었는지 파악해야 합니다.
TechGeek
(TechGeek)
9월 17, 2022, 9:47오전
31