stephane-klein / discourse-hosting-playground

Discourse hosting playground
0 stars 0 forks source link

Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 780 exit 137> #1

Closed stephane-klein closed 1 year ago

stephane-klein commented 1 year ago

I, [2023-04-30T21:39:43.484891 #1]  INFO -- : > cd /var/www/discourse && gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
I, [2023-04-30T21:39:44.201958 #1]  INFO -- : Successfully installed bundler-2.4.4
1 gem installed

I, [2023-04-30T21:39:44.202318 #1]  INFO -- : > cd /var/www/discourse && find /var/www/discourse ! -user discourse -exec chown discourse {} \+
I, [2023-04-30T21:39:47.277071 #1]  INFO -- :
I, [2023-04-30T21:39:47.277690 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'yarn install --production --frozen-lockfile && yarn cache clean'
warning " > @mixer/parallel-prettier@2.0.3" has unmet peer dependency "prettier@^2.0.0".
warning "eslint-config-discourse > eslint-plugin-lodash@7.1.0" has unmet peer dependency "lodash@>=4".
warning Resolution field "babel-plugin-ember-template-compilation@2.0.0" is incompatible with requested version "babel-plugin-ember-template-compilation@^2.0.1"
warning " > babel-plugin-debug-macros@0.4.0-pre1" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-ac036a81-43f1-412c-ba9d-33c9d26d9b95 > discourse > @uppy/aws-s3@3.0.6" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-ac036a81-43f1-412c-ba9d-33c9d26d9b95 > discourse > @uppy/aws-s3-multipart@3.1.3" has incorrect peer dependency "@uppy/core@^3.1.2".
warning "workspace-aggregator-ac036a81-43f1-412c-ba9d-33c9d26d9b95 > discourse > @uppy/xhr-upload@3.1.1" has incorrect peer dependency "@uppy/core@^3.1.2".

I, [2023-04-30T21:40:42.220826 #1]  INFO -- : yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ yarn --cwd app/assets/javascripts $(node -e 'if(JSON.parse(process.env.npm_config_argv).original.includes(`--frozen-lockfile`)){console.log(`--frozen-lockfile`)}')
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ patch-package
patch-package 7.0.0
Applying patches...
@ember/jquery@2.0.0 ✔
ember-cli@4.12.0 ✔
virtual-dom@2.1.1 ✔
Done in 30.73s.
Done in 49.68s.
yarn cache v1.22.19
success Cleared cache.
Done in 4.80s.

I, [2023-04-30T21:40:42.224655 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local deployment true'
I, [2023-04-30T21:40:42.450874 #1]  INFO -- :
I, [2023-04-30T21:40:42.451080 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle config --local without "development test"'
I, [2023-04-30T21:40:42.573359 #1]  INFO -- : You are replacing the current local value of without, which is currently "test:development"

I, [2023-04-30T21:40:42.573786 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle install --retry 3 --jobs 4'
I, [2023-04-30T21:40:54.302302 #1]  INFO -- : Fetching gem metadata from https://rubygems.org/.........
Using rake 13.0.6
Using concurrent-ruby 1.2.2
Using racc 1.6.2
Using erubi 1.12.0
Using minitest 5.18.0
Using builder 3.2.4
Using date 3.3.3
Using crass 1.0.6
Using mini_mime 1.1.2
Fetching rack 2.2.7
Using aws-eventstream 1.2.0
Using timeout 0.3.2
Using aws-partitions 1.583.0
Using public_suffix 5.0.1
Using jmespath 1.6.2
Using bundler 2.4.4
Using byebug 11.1.3
Using cbor 0.5.9.6
Using cgi 0.3.6
Fetching msgpack 1.7.0
Using chunky_png 1.4.0
Using coderay 1.1.3
Fetching connection_pool 2.4.0
Using colored2 3.1.2
Using openssl 3.1.0
Using cppjieba_rb 0.4.2
Fetching google-protobuf 3.22.3 (x86_64-linux)
Installing connection_pool 2.4.0
Installing msgpack 1.7.0 with native extensions
Installing rack 2.2.7
Using method_source 1.0.0
Using thor 1.2.1
Using zeitwerk 2.6.7
Using tilt 2.1.0
Using diffy 3.4.2
Using digest 3.1.1
Using discourse-fonts 0.0.9
Fetching regexp_parser 2.8.0
Installing regexp_parser 2.8.0
Using email_reply_trimmer 0.1.13
Using excon 0.99.0
Using execjs 2.8.1
Using exifr 1.3.10
Using faraday-net_http 3.0.2
Using ruby2_keywords 0.0.5
Using fast_blank 1.0.1
Using fast_xs 0.8.0
Using fastimage 2.2.6
Using ffi 1.15.5
Using fspath 3.1.2
Using gc_tracer 1.5.1
Using guess_html_encoding 0.0.11
Using hana 1.3.7
Using hashie 5.0.0
Using highline 2.1.0
Using hkdf 1.0.0
Using htmlentities 4.3.4
Using http_accept_language 2.1.1
Using image_size 3.2.0
Using in_threads 1.6.0
Installing google-protobuf 3.22.3 (x86_64-linux)
Using progress 3.6.0
Using json 2.6.3
Using uri_template 0.7.0
Using jwt 2.7.0
Using kgio 2.11.4
Using libv8-node 16.10.0.0 (x86_64-linux)
Using logstash-event 1.2.02
Using logster 2.12.2
Using lru_redux 1.1.0
Using lz4-ruby 0.3.3
Using maxminddb 0.1.22
Using memory_profiler 1.0.1
Using redis 4.8.1
Using mini_sql 1.4.0
Using multi_json 1.15.0
Using multi_xml 0.6.0
Using mustache 1.1.1
Fetching uri 0.12.1
Fetching nio4r 2.5.9
Installing uri 0.12.1
Fetching version_gem 1.1.2
Using oj 3.13.14
Using optimist 3.0.1
Using pg 1.4.6
Using raindrops 0.20.1
Using rchardet 1.8.0
Using rexml 3.2.5
Using rinku 2.0.6
Using rotp 6.2.2
Using rqrcode_core 1.2.0
Using rubyzip 2.3.2
Using sshkey 2.0.0
Fetching stackprof 0.2.25
Installing version_gem 1.1.2
Installing nio4r 2.5.9 with native extensions
Using unf_ext 0.0.8.2
Using webrick 1.7.0
Using i18n 1.12.0
Using tzinfo 2.0.6
Fetching nokogiri 1.14.3 (x86_64-linux)
Installing stackprof 0.2.25 with native extensions
Installing nokogiri 1.14.3 (x86_64-linux)
Using net-protocol 0.2.1
Fetching addressable 2.8.4
Installing addressable 2.8.4
Using aws-sigv4 1.5.0
Using openssl-signature_algorithm 1.3.0
Using pry 0.14.2
Fetching rack-test 2.1.0
Installing rack-test 2.1.0
Using sprockets 3.7.2 from https://github.com/rails/sprockets (at 3.x@f4d3dae)
Using request_store 1.5.1
Using message_bus 4.3.2
Fetching rack-mini-profiler 3.1.0
Installing rack-mini-profiler 3.1.0
Fetching rack-protection 3.0.6
Installing rack-protection 3.0.6
Using uglifier 4.2.0
Using faraday 2.7.4
Using mini_suffix 0.3.3
Using image_optim 0.31.3
Using logstash-logger 0.26.1
Using mini_racer 0.6.3
Using sidekiq 6.5.8
Using omniauth 1.9.2
Using redis-namespace 1.10.0
Using web-push 3.0.0
Using ecma-re-validator 0.4.0
Using net-http 0.3.2
Fetching sass-embedded 1.62.1 (x86_64-linux-gnu)
Installing sass-embedded 1.62.1 (x86_64-linux-gnu)
Using unicorn 6.1.0
Using rss 0.2.9
Using rqrcode 2.1.2
Using oauth-tty 1.0.5
Using snaky_hash 2.0.1
Using unf 0.1.4
Fetching activesupport 7.0.4.3
Installing activesupport 7.0.4.3
Fetching tzinfo-data 1.2023.3
Fetching loofah 2.20.0
Installing loofah 2.20.0
Using ruby-readability 0.7.0
Using sanitize 6.0.1
Using net-imap 0.3.4
Using net-pop 0.1.2
Using net-smtp 0.3.3
Using css_parser 1.14.0
Using aws-sdk-core 3.130.2
Using cose 1.3.0
Using pry-byebug 3.10.1
Using pry-rails 0.3.9
Using faraday-retry 2.1.0
Using oauth2 1.4.11
Using rtlcss 0.2.0
Using json_schemer 0.2.23
Using mini_scheduler 0.15.0
Using dartsass-ruby 3.0.1
Using oauth 1.1.0
Using rails-dom-testing 2.0.3
Using globalid 1.1.0
Fetching activemodel 7.0.4.3
Installing tzinfo-data 1.2023.3
Installing activemodel 7.0.4.3
Using rails-html-sanitizer 1.5.0
Fetching activejob 7.0.4.3
Installing activejob 7.0.4.3
Fetching mail 2.8.1
Using aws-sdk-kms 1.56.0
Using aws-sdk-sns 1.53.0
Using omniauth-oauth2 1.7.3
Using omniauth-oauth 1.2.0
Fetching actionview 7.0.4.3
Installing mail 2.8.1
Installing actionview 7.0.4.3
Using active_model_serializers 0.8.4
Fetching activerecord 7.0.4.3
Using aws-sdk-s3 1.114.0
Using omniauth-facebook 9.0.0
Using omniauth-github 1.4.0
Using omniauth-google-oauth2 0.8.2
Using omniauth-twitter 1.4.0
Fetching actionpack 7.0.4.3
Installing actionpack 7.0.4.3
Installing activerecord 7.0.4.3
Using actionview_precompiler 0.2.3
Fetching actionmailer 7.0.4.3
Fetching railties 7.0.4.3
Installing actionmailer 7.0.4.3
Using sprockets-rails 3.4.2
Using discourse-seed-fu 2.3.12
Installing railties 7.0.4.3
Using dartsass-sprockets 3.0.0
Using lograge 0.12.0
Fetching rails_failover 1.0.0
Using rails_multisite 4.0.1
Installing rails_failover 1.0.0
Fetching puma 6.2.2
Installing puma 6.2.2 with native extensions
Using bootsnap 1.16.0
Using rbtrace 0.4.14
Bundle complete! 136 Gemfile dependencies, 174 gems now installed.
Gems in the groups 'development' and 'test' were not installed.
Bundled gems are installed into `./vendor/bundle`

I, [2023-04-30T21:40:54.302602 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'LOAD_PLUGINS=0 bundle exec rake plugin:pull_compatible_all'
I, [2023-04-30T21:40:56.614165 #1]  INFO -- : docker_manager is already at latest compatible version

I, [2023-04-30T21:40:56.614600 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2023-04-30T21:41:00.460471 #1]  INFO -- :
I, [2023-04-30T21:41:00.460692 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
Detected low Node.js heap_size_limit. Using --max-old-space-size=1024.
- Building
- Building
- building...
104:M 30 Apr 2023 21:44:24.150 * 100 changes in 300 seconds. Saving...
104:M 30 Apr 2023 21:44:24.214 * Background saving started by pid 848
848:C 30 Apr 2023 21:44:26.316 * DB saved on disk
848:C 30 Apr 2023 21:44:26.419 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
104:M 30 Apr 2023 21:44:26.550 * Background saving terminated with success
Killed
error Command failed with exit code 137.
I, [2023-04-30T21:47:18.094005 #1]  INFO -- : yarn run v1.22.19
$ /var/www/discourse/app/assets/javascripts/node_modules/.bin/ember build -prod
Environment: production
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I, [2023-04-30T21:47:18.099516 #1]  INFO -- : Terminating async processes
I, [2023-04-30T21:47:18.099813 #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: 43
I, [2023-04-30T21:47:18.100249 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 104
104:signal-handler (1682891238) Received SIGTERM scheduling shutdown...
2023-04-30 21:47:18.100 UTC [43] LOG:  received fast shutdown request
2023-04-30 21:47:18.102 UTC [43] LOG:  aborting any active transactions
2023-04-30 21:47:18.105 UTC [43] LOG:  background worker "logical replication launcher" (PID 52) exited with exit code 1
2023-04-30 21:47:18.106 UTC [47] LOG:  shutting down
2023-04-30 21:47:18.116 UTC [43] LOG:  database system is shut down
104:M 30 Apr 2023 21:47:18.178 # User requested shutdown...
104:M 30 Apr 2023 21:47:18.179 * Saving the final RDB snapshot before exiting.
104:M 30 Apr 2023 21:47:18.183 * DB saved on disk
104:M 30 Apr 2023 21:47:18.183 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 780 exit 137>
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"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
bootstrap failed with exit code 137
** 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.
8c55fc80f6e158ed48d86945d00285440cc0cdc1ea6d1d93615b7ae024780780
stephane-klein commented 1 year ago

Fixed by increasing the ram by https://github.com/stephane-klein/discourse-hosting-playground/commit/fc129f58dd3781b11e34e35aeda7b7c4a0a19229