Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku #78

Open
bido75 opened this issue Nov 1, 2020 · 4 comments
Open

Heroku #78

bido75 opened this issue Nov 1, 2020 · 4 comments

Comments

@bido75
Copy link

bido75 commented Nov 1, 2020

Hello,

The app is not deploying to heroku, it's returning an error.

-----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   USE_YARN_CACHE=true
   NODE_ENV=production
   NODE_MODULES_CACHE=true
   NODE_VERBOSE=false

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
engines.yarn (package.json): unspecified (use default)

   Resolving node version 12.x...
   Downloading and installing node 12.19.0...
   Using default npm version: 6.14.8
   Resolving yarn version 1.22.x...
   Downloading and installing yarn (1.22.10)
   Installed yarn 1.22.10

-----> Installing dependencies
Installing node modules (yarn.lock)
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
warning compression-webpack-plugin@2.0.0: Invalid bin field for "compression-webpack-plugin".
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > vue-loader@15.7.0" has unmet peer dependency "css-loader@*".
warning " > vue-loader@15.7.0" has unmet peer dependency "webpack@^4.1.0 || ^5.0.0-0".
warning " > webpack-dev-server@3.7.1" has unmet peer dependency "webpack@^4.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has unmet peer dependency "webpack@^4.0.0".
[4/4] Building fresh packages...
Done in 41.39s.

-----> Build

-----> Pruning devDependencies
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > vue-loader@15.7.0" has unmet peer dependency "css-loader@*".
warning " > vue-loader@15.7.0" has unmet peer dependency "webpack@^4.1.0 || ^5.0.0-0".
warning " > webpack-dev-server@3.7.1" has unmet peer dependency "webpack@^4.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has unmet peer dependency "webpack@^4.0.0".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
Done in 7.54s.

-----> Caching build
- yarn cache

-----> Build succeeded!
! Unmet dependencies don't fail yarn install but may cause runtime issues
npm/npm#7494
-----> Ruby app detected
-----> Installing bundler 1.17.3
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.6.1

WARNING:
   There is a known bundler bug with your version of Ruby
   
   Your version of Ruby contains a problem with the built-in integration of bundler. If
   you encounter a bundler error you need to upgrade your Ruby version. We suggest you upgrade to:
   
   2.6.6
   
   For more information see:
     https://devcenter.heroku.com/articles/bundler-version#known-upgrade-issues

-----> Installing dependencies using bundler 1.17.3
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
Fetching gem metadata from https://rubygems.org/............
Fetching rake 12.3.2
Installing rake 12.3.2
Fetching concurrent-ruby 1.1.5
Fetching thread_safe 0.3.6
Fetching minitest 5.11.3
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing concurrent-ruby 1.1.5
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.8.0
Fetching mini_portile2 2.4.0
Installing erubi 1.8.0
Installing mini_portile2 2.4.0
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching rack 2.0.7
Installing rack 2.0.7
Fetching nio4r 2.3.1
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Installing nio4r 2.3.1 with native extensions
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching jsonapi-renderer 0.2.0
Installing jsonapi-renderer 0.2.0
Fetching arel 9.0.0
Installing arel 9.0.0
Fetching mimemagic 0.3.3
Fetching bcrypt 3.1.12
Installing mimemagic 0.3.3
Installing bcrypt 3.1.12 with native extensions
Fetching msgpack 1.2.9
Installing msgpack 1.2.9 with native extensions
Using bundler 1.17.3
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching method_source 0.9.2
Installing method_source 0.9.2
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching dotenv 2.7.2
Installing dotenv 2.7.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching pg 1.1.4
Installing pg 1.1.4 with native extensions
Fetching puma 3.12.1
Installing puma 3.12.1 with native extensions
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.10.3
Installing nokogiri 1.10.3 with native extensions
Fetching i18n 1.6.0
Installing i18n 1.6.0
Fetching websocket-driver 0.7.0
Installing websocket-driver 0.7.0 with native extensions
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching warden 1.2.8
Installing warden 1.2.8
Fetching rack-proxy 0.6.5
Installing rack-proxy 0.6.5
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching marcel 0.3.3
Installing marcel 0.3.3
Fetching uglifier 4.1.20
Installing uglifier 4.1.20
Fetching bootsnap 1.4.2
Installing bootsnap 1.4.2 with native extensions
Fetching activesupport 5.2.3
Installing activesupport 5.2.3
Fetching loofah 2.2.3
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Installing loofah 2.2.3
Fetching globalid 0.4.2
Installing globalid 0.4.2
Fetching case_transform 0.2
Fetching activemodel 5.2.3
Installing case_transform 0.2
Installing activemodel 5.2.3
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching activejob 5.2.3
Installing activejob 5.2.3
Fetching actionview 5.2.3
Fetching activerecord 5.2.3
Installing actionview 5.2.3
Installing activerecord 5.2.3
Fetching actionpack 5.2.3
Installing actionpack 5.2.3
Fetching after_commit_action 1.1.0
Installing after_commit_action 1.1.0
Fetching actionmailer 5.2.3
Fetching actioncable 5.2.3
Installing actionmailer 5.2.3
Installing actioncable 5.2.3
Fetching active_model_serializers 0.10.9
Fetching activestorage 5.2.3
Installing activestorage 5.2.3
Installing active_model_serializers 0.10.9
Fetching railties 5.2.3
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.2.3
Fetching counter_culture 1.12.0
Installing counter_culture 1.12.0
Fetching responders 2.4.1
Fetching rails 5.2.3
Fetching dotenv-rails 2.7.2
Installing responders 2.4.1
Installing dotenv-rails 2.7.2
Installing rails 5.2.3
Fetching webpacker 4.0.7
Fetching devise 4.6.2
Installing devise 4.6.2
Installing webpacker 4.0.7
Bundle complete! 30 Gemfile dependencies, 61 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle
Post-install message from i18n:

   HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
   But that may break your application.
   
   Please check your Rails app for 'config.i18n.fallbacks = true'.
   If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
   'config.i18n.fallbacks = [I18n.default_locale]'.
   If not, fallbacks will be broken in your app by I18n 1.1.x.
   
   For more info see:
   https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
   
   Bundle completed (34.75s)
   Cleaning up the bundler cache.
   The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.

-----> Detecting rake tasks
!
! Could not detect rake tasks
! ensure you can run $ bundle exec rake -P against your app
! and using the production group of your Gemfile.
! /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:319:in check_for_activated_spec!': You have already activated bundler 1.17.3, but your Gemfile requires bundler 1.17.2. Prepending bundle execto your command may solve this. (Gem::LoadError) ! from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:31:inblock in setup'
! from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in each' ! from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in each'
! from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:26:in map' ! from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:26:in setup'
! from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:107:in setup' ! from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/bundler/setup.rb:20:in <top (required)>'
! from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' ! from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
! from /tmp/build_56eb8c6d_/config/boot.rb:3:in <top (required)>' ! from /tmp/build_56eb8c6d_/bin/rake:2:in require_relative'
! from /tmp/build_56eb8c6d_/bin/rake:2:in <main>' ! /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/helpers/rake_runner.rb:106:in load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
ensure you can run $ bundle exec rake -P against your app
and using the production group of your Gemfile.
/tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:319:in check_for_activated_spec!': You have already activated bundler 1.17.3, but your Gemfile requires bundler 1.17.2. Prepending bundle execto your command may solve this. (Gem::LoadError) from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:31:inblock in setup'
from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in each' from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in each'
from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:26:in map' from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler/runtime.rb:26:in setup'
from /tmp/build_56eb8c6d_/vendor/bundle/ruby/2.6.0/gems/bundler-1.17.3/lib/bundler.rb:107:in setup' from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/bundler/setup.rb:20:in <top (required)>'
from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' from /tmp/build_56eb8c6d_/vendor/ruby-2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
from /tmp/build_56eb8c6d_/config/boot.rb:3:in <top (required)>' from /tmp/build_56eb8c6d_/bin/rake:2:in require_relative'
from /tmp/build_56eb8c6d_/bin/rake:2:in <main>' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1106:in rake'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:78:in block (2 levels) in run_assets_precompile_rake_task' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in log'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:72:in block in run_assets_precompile_rake_task' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:71:in run_assets_precompile_rake_task' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:116:in block (2 levels) in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1127:in allow_git' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:109:in block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:94:in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:62:in block in compile' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:60:in compile' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:42:in block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:41:in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:35:in block in compile' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in instrument' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:34:in compile' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:20:in block (2 levels) in

'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in log' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:19:in block in '
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in block in trace' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in yield_with_block_depth' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-18/lib/ruby/2.6.0/benchmark.rb:308:in realtime' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in trace' from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:15:in '
! Push rejected, failed to compile Ruby app.
! Push failed

@nativeit
Copy link

I think I'm encountering the same issue, it seems to be calling for a version of Ruby (2.6.1) that isn't available on Heroku 20 (supports Ruby v. >2.6.9 per Heroku Docs). I am thoroughly unfamiliar with the process of deploying to Heroku, so take everything I say with a healthy pinch of salt, but it appears that ruby-2.6.1 is the version specified in Gemfile.lock, and I assume that means that's the version that is being used to build the current version of Snibox. The last time I tried to "simply" update an app to a newer version of Ruby I spent an entire night chasing dependencies, so between that and my lack of experience deploying to Heroku, I am going to recognize this as a job for someone with greater familiarity with Snibox's dependencies and the specifics for pushing releases to Heroku. In case it helps, here's the Heroku log output from my attempt to deploy:


-----> Building on the Heroku-20 stack
-----> Using buildpacks:
       1. heroku/nodejs
       2. heroku/ruby
-----> Node.js app detected
       
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       USE_YARN_CACHE=true
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)
       
       Resolving node version 14.x...
       Downloading and installing node 14.18.2...
       Using default npm version: 6.14.15
       Resolving yarn version 1.22.x...
       Downloading and installing yarn (1.22.17)
       Installed yarn 1.22.17
       
-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.22.17
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       warning compression-webpack-plugin@2.0.0: Invalid bin field for "compression-webpack-plugin".
       [3/4] Linking dependencies...
       warning " > vue-loader@15.7.0" has unmet peer dependency "css-loader@*".
       warning " > vue-loader@15.7.0" has unmet peer dependency "webpack@^4.1.0 || ^5.0.0-0".
       warning " > webpack-dev-server@3.7.1" has unmet peer dependency "webpack@^4.0.0".
       warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has unmet peer dependency "webpack@^4.0.0".
       [4/4] Building fresh packages...
       Done in 118.65s.
       
-----> Build
       
-----> Pruning devDependencies
       yarn install v1.22.17
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       [3/4] Linking dependencies...
       warning " > vue-loader@15.7.0" has unmet peer dependency "css-loader@*".
       warning " > vue-loader@15.7.0" has unmet peer dependency "webpack@^4.1.0 || ^5.0.0-0".
       warning " > webpack-dev-server@3.7.1" has unmet peer dependency "webpack@^4.0.0".
       warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has unmet peer dependency "webpack@^4.0.0".
       [4/4] Building fresh packages...
       warning Ignored scripts due to flag.
       Done in 3.22s.
       
-----> Caching build
       - yarn cache
       
-----> Build succeeded!
 !     Unmet dependencies don't fail yarn install but may cause runtime issues
       https://github.com/npm/npm/issues/7494
-----> Ruby app detected
-----> Installing bundler 1.17.3
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-20/ruby-2.6.1.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
       Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-20/ruby-2.6.1.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
 !
 !     The Ruby version you are trying to install does not exist on this stack.
 !     
 !     You are trying to install ruby-2.6.1 on heroku-20.
 !     
 !     Ruby ruby-2.6.1 is present on the following stacks:
 !     
 !     - heroku-18
 !     
 !     Heroku recommends you use the latest supported Ruby version listed here:
 !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
 !     
 !     For more information on syntax for declaring a Ruby version see:
 !     https://devcenter.heroku.com/articles/ruby-versions
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

Thanks to the dev(s) for your time and efforts, hope this resolves simply enough. In the meantime, I'm gonna just crank up Snibox locally with Docker.

@rivman
Copy link

rivman commented Jan 30, 2022

Hello.
Even with the stack-18 on Heroku (using command set stack, with CLI) app can't be deployed. Seems tat a package is removed :

   Fetching gem metadata from https://rubygems.org/..........

   Your bundle is locked to mimemagic (0.3.3), but that version could not be found
   in any of the sources listed in your Gemfile. If you haven't changed sources,
   that means the author of mimemagic (0.3.3) has removed it. You'll need to update
   your bundle to a version other than mimemagic (0.3.3) that hasn't been removed
   in order to install.

@tleyden
Copy link

tleyden commented Oct 31, 2022

I wasn't unable to install to heroku either:

-----> Building on the Heroku-22 stack
-----> Using buildpacks:
       1. heroku/nodejs
       2. heroku/ruby
-----> Node.js app detected
       
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       USE_YARN_CACHE=true
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)
       
       Resolving node version 18.x...
       Downloading and installing node 18.12.0...
       Using default npm version: 8.19.2
       Resolving yarn version 1.22.x...
       Downloading and installing yarn (1.22.19)
       Installed yarn 1.22.19
       
-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.22.19
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       warning compression-webpack-plugin@2.0.0: Invalid bin field for "compression-webpack-plugin".
       [3/4] Linking dependencies...
       warning " > vue-loader@15.7.0" has unmet peer dependency "css-loader@*".
       warning " > vue-loader@15.7.0" has unmet peer dependency "webpack@^4.1.0 || ^5.0.0-0".
       warning " > webpack-dev-server@3.7.1" has unmet peer dependency "webpack@^4.0.0".
       warning "webpack-dev-server > webpack-dev-middleware@3.7.0" has unmet peer dependency "webpack@^4.0.0".
       [4/4] Building fresh packages...
       error /tmp/build_729f48f2/node_modules/node-sass: Command failed.
       Exit code: 1
       Command: node scripts/build.js
       Arguments: 
       Directory: /tmp/build_729f48f2/node_modules/node-sass
       Output:
       Building: /tmp/build_729f48f2/.heroku/node/bin/node /tmp/build_729f48f2/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
       gyp info it worked if it ends with ok
       gyp verb cli [
       gyp verb cli   '/tmp/build_729f48f2/.heroku/node/bin/node',
       gyp verb cli   '/tmp/build_729f48f2/node_modules/node-gyp/bin/node-gyp.js',
       gyp verb cli   'rebuild',
       gyp verb cli   '--verbose',
       gyp verb cli   '--libsass_ext=',
       gyp verb cli   '--libsass_cflags=',
       gyp verb cli   '--libsass_ldflags=',
       gyp verb cli   '--libsass_library='
       gyp verb cli ]
       gyp info using node-gyp@3.8.0
       gyp info using node@18.12.0 | linux | x64
       gyp verb command rebuild []
       gyp verb command clean []
       gyp verb clean removing "build" directory
       gyp verb command configure []
       gyp verb check python checking for Python executable "python2" in the PATH
       gyp verb `which` failed Error: not found: python2
       gyp verb `which` failed     at getNotFoundError (/tmp/build_729f48f2/node_modules/which/which.js:13:12)
       gyp verb `which` failed     at F (/tmp/build_729f48f2/node_modules/which/which.js:68:19)
       gyp verb `which` failed     at E (/tmp/build_729f48f2/node_modules/which/which.js:80:29)
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/which/which.js:89:16
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/isexe/index.js:42:5
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/isexe/mode.js:8:5
       gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:207:21)
       gyp verb `which` failed  python2 Error: not found: python2
       gyp verb `which` failed     at getNotFoundError (/tmp/build_729f48f2/node_modules/which/which.js:13:12)
       gyp verb `which` failed     at F (/tmp/build_729f48f2/node_modules/which/which.js:68:19)
       gyp verb `which` failed     at E (/tmp/build_729f48f2/node_modules/which/which.js:80:29)
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/which/which.js:89:16
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/isexe/index.js:42:5
       gyp verb `which` failed     at /tmp/build_729f48f2/node_modules/isexe/mode.js:8:5
       gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:207:21) {
       gyp verb `which` failed   code: 'ENOENT'
       gyp verb `which` failed }
       gyp verb check python checking for Python executable "python" in the PATH
       gyp verb `which` succeeded python /usr/bin/python
       gyp ERR! configure error 
       gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
       gyp ERR! stack   File "<string>", line 1
       gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
       gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
       gyp ERR! stack 
       gyp ERR! stack     at ChildProcess.exithandler (node:child_process:412:12)
       gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
       gyp ERR! stack     at maybeClose (node:internal/child_process:1091:16)
       gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:302:5)
       gyp ERR! System Linux 4.4.0-1104-aws
       gyp ERR! command "/tmp/build_729f48f2/.heroku/node/bin/node" "/tmp/build_729f48f2/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
       gyp ERR! cwd /tmp/build_729f48f2/node_modules/node-sass
       gyp ERR! node -v v18.12.0
       gyp ERR! node-gyp -v v3.8.0
       gyp ERR! not ok 
       Build failed with error code: 1
       info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
-----> Build failed
       
       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys
       
       Some possible problems:
       
       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
       
       Love,
       Heroku
       
 !     Push rejected, failed to compile Node.js app.
 !     Push failed

@afomi
Copy link

afomi commented Apr 1, 2023

specifying the node version in package.json fixed this for me

   ...
  "engines": {
    "node": "^14.0.0"
  },
  ...

zhuanyi added a commit to zhuanyi/snibox that referenced this issue Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants