violet_rails icon indicating copy to clipboard operation
violet_rails copied to clipboard

optimize renderer: N+1 and asset size

Open donrestarone opened this issue 2 years ago • 0 comments
trafficstars

Describe the bug

Nikean.org has begun experiencing downtime due to server first-boot crashes. We believe this is due to the abnormally large landing page payload that is served by the application

N+1 query issue

Screen Shot 2023-03-22 at 7 27 54 AM

High request load

Screen Shot 2023-03-22 at 7 27 39 AM

asset size

Screen Shot 2023-03-22 at 7 26 31 AM

release logs before crash

2023-03-22T11:16:35.9650105Z 03:29 whenever:update_crontab
2023-03-22T11:16:35.9652414Z       01 RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.6.6 $HOME/.rbenv/bin/rbenv exec bundle exec whenever --update-crontab violet --set environment=production --roles=app,db,web 
2023-03-22T11:16:36.9375550Z       01 [write] crontab file updated
2023-03-22T11:16:36.9396543Z     ✔ 01 ubuntu@*** 0.975s
2023-03-22T11:16:37.0390975Z 03:30 deploy:assets:precompile
2023-03-22T11:16:37.0392533Z       01 RBENV_ROOT=$HOME/.rbenv RBENV_VERSION=2.6.6 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
2023-03-22T11:16:40.8480056Z       01 No stripe.com API key was configured for environment production! this application will be
2023-03-22T11:16:40.8481800Z       01 unable to interact with stripe.com. You can set your API key with either the environment
2023-03-22T11:16:40.8483709Z       01 variable `STRIPE_SECRET_KEY` (recommended) or by setting `config.stripe.secret_key` in your
2023-03-22T11:16:40.8485097Z       01 environment file directly.
2023-03-22T11:17:24.5265874Z       01 
2023-03-22T11:17:24.5322055Z       01 > [email protected] postinstall node_modules/core-js
2023-03-22T11:17:24.5323881Z       01 > node -e "try{require('./postinstall')}catch(e){}"
2023-03-22T11:17:24.5324981Z       01 
2023-03-22T11:17:25.2298437Z       01 Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
2023-03-22T11:17:25.2299866Z       01 
2023-03-22T11:17:25.2301392Z       01 The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
2023-03-22T11:17:25.2302889Z       01 > https://opencollective.com/core-js 
2023-03-22T11:17:25.2304034Z       01 > https://www.patreon.com/zloirock 
2023-03-22T11:17:25.2305056Z       01 
2023-03-22T11:17:25.2306415Z       01 Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
2023-03-22T11:17:25.2307656Z       01 
2023-03-22T11:17:27.4492059Z       01 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
2023-03-22T11:17:27.4495513Z       01 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2023-03-22T11:17:27.4497364Z       01 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2023-03-22T11:17:27.4499497Z       01 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2023-03-22T11:17:27.4501257Z       01 
2023-03-22T11:17:27.4589279Z       01 added 2040 packages from 843 contributors and audited 2044 packages in 44.472s
2023-03-22T11:17:29.7052186Z       01 
2023-03-22T11:17:29.7053805Z       01 119 packages are looking for funding
2023-03-22T11:17:29.7054890Z       01   run `npm fund` for details
2023-03-22T11:17:29.7056191Z       01 
2023-03-22T11:17:29.7057669Z       01 found 31 vulnerabilities (1 low, 1 moderate, 28 high, 1 critical)
2023-03-22T11:17:29.7060052Z       01   run `npm audit fix` to fix them, or `npm audit` for details
2023-03-22T11:17:47.6986454Z       01 npm WARN [email protected] requires a peer of ember-cli@~3.2.0 but none is installed. You must install peer dependencies yourself.
2023-03-22T11:17:47.6990744Z       01 npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.
2023-03-22T11:17:47.6993125Z       01 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
2023-03-22T11:17:47.6995705Z       01 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2023-03-22T11:17:47.6998904Z       01 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2023-03-22T11:17:47.7001169Z       01 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2023-03-22T11:17:47.7002808Z       01 
2023-03-22T11:17:47.7004053Z       01 audited 2044 packages in 16.563s
2023-03-22T11:17:49.2682695Z       01 
2023-03-22T11:17:49.2684079Z       01 119 packages are looking for funding
2023-03-22T11:17:49.2685167Z       01   run `npm fund` for details
2023-03-22T11:17:49.2686731Z       01 
2023-03-22T11:17:49.2690700Z       01 found 31 vulnerabilities (1 low, 1 moderate, 28 high, 1 critical)
2023-03-22T11:17:49.2692191Z       01   run `npm audit fix` to fix them, or `npm audit` for details
2023-03-22T11:17:53.8643607Z       01 DEPRECATION: `bowerDependencies` has been deprecated.
2023-03-22T11:17:53.8647977Z       01 If you still need access to the project's Bower dependencies, you will have to manually resolve the project's `bower.json` file instead. [ID: ember-cli.project.bower-dependencies]
2023-03-22T11:17:53.8651138Z       01 at getStackTrace (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli/lib/debug/deprecate.js:99:15)
2023-03-22T11:17:53.8653263Z       01 at deprecate (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli/lib/debug/deprecate.js:77:8)
2023-03-22T11:17:53.8655413Z       01 at Project.bowerDependencies (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli/lib/models/project.js:412:5)
2023-03-22T11:17:53.8661031Z       01 at EmberCLIDependencyChecker.normalizedBowerDependencies (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli-dependency-checker/lib/dependency-checker.js:138:44)
2023-03-22T11:17:53.8663411Z       01 at EmberCLIDependencyChecker.readBowerDependencies (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli-dependency-checker/lib/dependency-checker.js:148:39)
2023-03-22T11:17:53.8666003Z       01 at EmberCLIDependencyChecker.checkDependencies (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli-dependency-checker/lib/dependency-checker.js:43:28)
2023-03-22T11:17:53.8668206Z       01 at Class.init (/var/www/violet/releases/20230322111308/client/node_modules/ember-cli-dependency-checker/index.js:18:25)
2023-03-22T11:17:53.8670035Z       01 at Class.superWrapper [as init] (/var/www/violet/releases/20230322111308/client/node_modules/core-object/lib/assign-properties.js:34:20)
2023-03-22T11:17:53.8815034Z       01 at new CoreObject (/var/www/violet/releases/20230322111308/client/node_modules/core-object/core-object.js:9:15)
2023-03-22T11:17:53.8816800Z       01 at new Class (/var/www/violet/releases/20230322111308/client/node_modules/core-object/core-object.js:21:5)
2023-03-22T11:17:54.8298508Z       01 Browserslist: caniuse-lite is outdated. Please run:
2023-03-22T11:17:54.8300105Z       01   npx browserslist@latest --update-db
2023-03-22T11:17:54.8302939Z       01   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
2023-03-22T11:17:55.6919526Z       01 DEPRECATION: Node v10.19.0 is no longer supported by Ember CLI. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details.
2023-03-22T11:17:55.6922236Z       01 WARNING: Node v10.19.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js. See https://git.io/v7S5n for details.
2023-03-22T11:17:57.6009928Z       01 - Building
2023-03-22T11:17:57.6014355Z       01 Environment: production
2023-03-22T11:17:57.6015461Z       01 - Building
2023-03-22T11:17:57.6016414Z       01 - building... 
2023-03-22T11:17:59.7298019Z       01 Browserslist: caniuse-lite is outdated. Please run:
2023-03-22T11:17:59.7299378Z       01   npx browserslist@latest --update-db
2023-03-22T11:17:59.7301013Z       01   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
2023-03-22T11:18:44.8795649Z       01 - cleaning up
2023-03-22T11:18:44.8796994Z       01 cleaning up...
2023-03-22T11:18:44.8798188Z       01 - cleaning up
2023-03-22T11:18:44.9807872Z       01 Built project successfully. Stored in "/var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client".
2023-03-22T11:18:45.5590366Z       01 File sizes:
2023-03-22T11:18:45.5592293Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/chunk.143.9987903d5ed4a6529b36.js: 593 B (316 B gzipped)
2023-03-22T11:18:45.5594386Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/chunk.178.91ca16697b66783d9224.js: 1.55 kB (813 B gzipped)
2023-03-22T11:18:45.5596469Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/chunk.916.f7e96a38f05a3e53ea15.js: 80.55 kB (26.12 kB gzipped)
2023-03-22T11:18:45.5598651Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/client-09405e426a9eee6ed6d0c9cceae4e050.js: 14.51 kB (3.05 kB gzipped)
2023-03-22T11:18:45.5600744Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/client-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
2023-03-22T11:18:45.5603070Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/vendor-637cedf6988f4f4793204d1b65f7a946.js: 761.5 kB (209.18 kB gzipped)
2023-03-22T11:18:45.5605158Z       01  - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
2023-03-22T11:18:47.7279732Z       01 yarn install v1.22.5
2023-03-22T11:18:47.8657498Z       01 [1/5] Validating package.json...
2023-03-22T11:18:47.8686868Z       01 [2/5] Resolving packages...
2023-03-22T11:18:48.3703283Z       01 [3/5] Fetching packages...
2023-03-22T11:18:49.2293491Z       01 info [email protected]: The platform "linux" is incompatible with this module.
2023-03-22T11:18:49.2295681Z       01 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2023-03-22T11:18:49.2297808Z       01 info [email protected]: The platform "linux" is incompatible with this module.
2023-03-22T11:18:49.2301019Z       01 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2023-03-22T11:18:49.2329233Z       01 [4/5] Linking dependencies...
2023-03-22T11:18:49.2396966Z       01 warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
2023-03-22T11:18:49.2398614Z       01 warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
2023-03-22T11:18:49.2400290Z       01 warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
2023-03-22T11:18:58.5333723Z       01 [5/5] Building fresh packages...
2023-03-22T11:19:00.8035026Z       01 Done in 13.08s.
2023-03-22T11:19:06.1654274Z       01 Compiling...
2023-03-22T11:23:37.7879355Z #<Thread:0x00007fe548248b48@/home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
2023-03-22T11:23:37.7883181Z /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as ubuntu@***: Connection reset by peer - recvfrom(2) (SSHKit::Runner::ExecuteError)
2023-03-22T11:23:37.7886207Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
2023-03-22T11:23:37.7888868Z /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/buffered_io.rb:65:in `recv': Connection reset by peer - recvfrom(2) (Errno::ECONNRESET)
2023-03-22T11:23:37.7891043Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/buffered_io.rb:65:in `fill'
2023-03-22T11:23:37.7893208Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:274:in `block in ev_do_handle_events'
2023-03-22T11:23:37.7895363Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:270:in `each'
2023-03-22T11:23:37.7897482Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:270:in `ev_do_handle_events'
2023-03-22T11:23:37.7899682Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:111:in `ev_select_and_postprocess'
2023-03-22T11:23:37.7901857Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:30:in `process'
2023-03-22T11:23:37.7903981Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:227:in `process'
2023-03-22T11:23:37.7906079Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `block in loop'
2023-03-22T11:23:37.7908157Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `loop'
2023-03-22T11:23:37.7910218Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `loop'
2023-03-22T11:23:37.7912258Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/channel.rb:272:in `wait'
2023-03-22T11:23:37.7914859Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:164:in `block (2 levels) in execute_command'
2023-03-22T11:23:37.7917175Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/channel.rb:534:in `do_open_confirmation'
2023-03-22T11:23:37.7919325Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:647:in `channel_open_confirmation'
2023-03-22T11:23:37.7921436Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:548:in `dispatch_incoming_packets'
2023-03-22T11:23:37.7923469Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:248:in `ev_preprocess'
2023-03-22T11:23:37.7925317Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:100:in `each'
2023-03-22T11:23:37.7927188Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:100:in `ev_preprocess'
2023-03-22T11:23:37.7929025Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/event_loop.rb:28:in `process'
2023-03-22T11:23:37.7930860Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:227:in `process'
2023-03-22T11:23:37.7932679Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `block in loop'
2023-03-22T11:23:37.7934533Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `loop'
2023-03-22T11:23:37.7936366Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/connection/session.rb:180:in `loop'
2023-03-22T11:23:37.7938249Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:166:in `block in execute_command'
2023-03-22T11:23:37.7940111Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/connection_pool.rb:65:in `with'
2023-03-22T11:23:37.7941894Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:177:in `with_ssh'
2023-03-22T11:23:37.7943749Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:130:in `execute_command'
2023-03-22T11:23:37.7945676Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
2023-03-22T11:23:37.7947557Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:148:in `tap'
2023-03-22T11:23:37.7949522Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
2023-03-22T11:23:37.7951367Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:80:in `execute'
2023-03-22T11:23:37.7953363Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/capistrano-rails-1.6.1/lib/capistrano/tasks/assets.rake:69:in `block (6 levels) in <top (required)>'
2023-03-22T11:23:37.7955287Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:100:in `with'
2023-03-22T11:23:37.7957253Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/capistrano-rails-1.6.1/lib/capistrano/tasks/assets.rake:68:in `block (5 levels) in <top (required)>'
2023-03-22T11:23:37.7959381Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:92:in `within'
2023-03-22T11:23:37.7961381Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/capistrano-rails-1.6.1/lib/capistrano/tasks/assets.rake:67:in `block (4 levels) in <top (required)>'
2023-03-22T11:23:37.7963650Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
2023-03-22T11:23:37.7965469Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:31:in `run'
2023-03-22T11:23:37.7967326Z 	from /home/runner/work/violet_rails/violet_rails/vendor/bundle/ruby/2.6.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
2023-03-22T11:23:37.7968723Z (Backtrace restricted to imported tasks)
2023-03-22T11:23:37.7969622Z cap aborted!
2023-03-22T11:23:37.7971162Z SSHKit::Runner::ExecuteError: Exception while executing as ubuntu@***: Connection reset by peer - recvfrom(2)
2023-03-22T11:23:37.7971967Z 
2023-03-22T11:23:37.7971977Z 
2023-03-22T11:23:37.7972356Z Caused by:
2023-03-22T11:23:37.7973392Z Errno::ECONNRESET: Connection reset by peer - recvfrom(2)
2023-03-22T11:23:37.7973989Z 
2023-03-22T11:23:37.7974462Z Tasks: TOP => deploy:assets:precompile
2023-03-22T11:23:37.7977862Z (See full trace by running task with --trace)
2023-03-22T11:23:37.7981482Z The deploy has failed with an error: Exception while executing as ubuntu@***: Connection reset by peer - recvfrom(2)
2023-03-22T11:23:37.7984483Z 
2023-03-22T11:23:37.7984513Z 
2023-03-22T11:23:37.7984949Z ** DEPLOY FAILED
2023-03-22T11:23:37.7986099Z ** Refer to log/capistrano.log for details. Here are the last 20 lines:
2023-03-22T11:23:37.7997722Z 
2023-03-22T11:23:37.7998649Z 
2023-03-22T11:23:37.8000016Z  DEBUG [0076a51a] 	 - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/chunk.916.f7e96a38f05a3e53ea15.js: 80.55 kB (26.12 kB gzipped)
2023-03-22T11:23:37.8001102Z 
2023-03-22T11:23:37.8002311Z  DEBUG [0076a51a] 	 - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/client-09405e426a9eee6ed6d0c9cceae4e050.js: 14.51 kB (3.05 kB gzipped)
2023-03-22T11:23:37.8003521Z 
2023-03-22T11:23:37.8004650Z  DEBUG [0076a51a] 	 - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/client-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
2023-03-22T11:23:37.8005625Z 
2023-03-22T11:23:37.8006840Z  DEBUG [0076a51a] 	 - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/vendor-637cedf6988f4f4793204d1b65f7a946.js: 761.5 kB (209.18 kB gzipped)
2023-03-22T11:23:37.8008043Z 
2023-03-22T11:23:37.8009170Z  DEBUG [0076a51a] 	 - /var/www/violet/releases/20230322111308/tmp/ember-cli/apps/client/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 B
2023-03-22T11:23:37.8010126Z 
2023-03-22T11:23:37.8010634Z  DEBUG [0076a51a] 	yarn install v1.22.5
2023-03-22T11:23:37.8011211Z 
2023-03-22T11:23:37.8011845Z  DEBUG [0076a51a] 	[1/5] Validating package.json...
2023-03-22T11:23:37.8012466Z 
2023-03-22T11:23:37.8013063Z  DEBUG [0076a51a] 	[2/5] Resolving packages...
2023-03-22T11:23:37.8013671Z 
2023-03-22T11:23:37.8014186Z  DEBUG [0076a51a] 	[3/5] Fetching packages...
2023-03-22T11:23:37.8014790Z 
2023-03-22T11:23:37.8015656Z  DEBUG [0076a51a] 	info [email protected]: The platform "linux" is incompatible with this module.
2023-03-22T11:23:37.8016743Z 
2023-03-22T11:23:37.8017711Z  DEBUG [0076a51a] 	info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2023-03-22T11:23:37.8018632Z 
2023-03-22T11:23:37.8019394Z  DEBUG [0076a51a] 	info [email protected]: The platform "linux" is incompatible with this module.
2023-03-22T11:23:37.8020207Z 
2023-03-22T11:23:37.8021116Z  DEBUG [0076a51a] 	info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
2023-03-22T11:23:37.8022014Z 
2023-03-22T11:23:37.8022772Z  DEBUG [0076a51a] 	[4/5] Linking dependencies...
2023-03-22T11:23:37.8023404Z 
2023-03-22T11:23:37.8024451Z  DEBUG [0076a51a] 	warning " > [email protected]" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
2023-03-22T11:23:37.8025512Z 
2023-03-22T11:23:37.8026488Z  DEBUG [0076a51a] 	warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
2023-03-22T11:23:37.8027362Z 
2023-03-22T11:23:37.8028468Z  DEBUG [0076a51a] 	warning "webpack-dev-server > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
2023-03-22T11:23:37.8029429Z 
2023-03-22T11:23:37.8029967Z  DEBUG [0076a51a] 	[5/5] Building fresh packages...
2023-03-22T11:23:37.8030679Z 
2023-03-22T11:23:37.8031163Z  DEBUG [0076a51a] 	Done in 13.08s.
2023-03-22T11:23:37.8031704Z 
2023-03-22T11:23:37.8032184Z  DEBUG [0076a51a] 	Compiling...
2023-03-22T11:23:37.8032701Z 
2023-03-22T11:23:37.8063769Z ##[error]Error: The process '/opt/hostedtoolcache/Ruby/2.6.6/x64/bin/bundle' failed with exit code 1
2023-03-22T11:23:37.8144645Z Post job cleanup.
2023-03-22T11:23:37.8724239Z SSH key in /home/runner/.ssh has been removed successfully.
2023-03-22T11:23:37.8967581Z Post job cleanup.
2023-03-22T11:23:38.2907987Z The IP 20.42.15.186 is removed
2023-03-22T11:23:38.3069637Z Post job cleanup.
2023-03-22T11:23:38.4489040Z [command]/usr/bin/git version
2023-03-22T11:23:38.4542278Z git version 2.39.2
2023-03-22T11:23:38.4604948Z Temporarily overriding HOME='/home/runner/work/_temp/176eca47-c114-475b-bddb-cc5ec56489f2' before making global git config changes
2023-03-22T11:23:38.4606546Z Adding repository directory to the temporary git global config as a safe directory
2023-03-22T11:23:38.4614880Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/violet_rails/violet_rails
2023-03-22T11:23:38.4663516Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2023-03-22T11:23:38.4706178Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2023-03-22T11:23:38.4951070Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2023-03-22T11:23:38.4974867Z http.https://github.com/.extraheader
2023-03-22T11:23:38.4986317Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2023-03-22T11:23:38.5025240Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2023-03-22T11:23:38.5462671Z Cleaning up orphan processes

donrestarone avatar Mar 22 '23 11:03 donrestarone