Push failed: Precompiling assets failed; Push rejected, failed to compile Ruby app
- Dominant language
- Ruby
- Stars
- 879
- Forks
- 190
- PR merge metrics
- No merged PRs in 30d
Description
I am recieving the following error when attempting to deploy with Heroku. I could be very wrong, but it seems to be an issue with Apple's security checks:

The log shows as follows:
```
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.4
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching rake 12.0.0
Fetching CFPropertyList 2.3.5
Fetching i18n 0.8.1
Installing CFPropertyList 2.3.5
Installing i18n 0.8.1
Installing rake 12.0.0
Fetching minitest 5.10.2
Installing minitest 5.10.2
Fetching thread_safe 0.3.6
Fetching builder 3.2.3
Fetching erubis 2.7.0
Installing builder 3.2.3
Installing thread_safe 0.3.6
Installing erubis 2.7.0
Fetching mini_portile2 2.1.0
Installing mini_portile2 2.1.0
Fetching rack 1.6.8
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Installing rack 1.6.8
Fetching arel 6.0.4
Installing arel 6.0.4
Fetching public_suffix 2.0.5
Installing public_suffix 2.0.5
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching babosa 1.0.2
Fetching sass 3.4.24
Installing babosa 1.0.2
Using bundler 1.15.2
Fetching claide 1.0.1
Installing claide 1.0.1
Fetching coffee-script-source 1.12.2
Fetching thor 0.19.4
Installing sass 3.4.24
Installing coffee-script-source 1.12.2
Installing thor 0.19.4
Fetching colored 1.2
Installing colored 1.2
Fetching colored2 3.1.2
Installing colored2 3.1.2
Fetching highline 1.7.8
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Installing highline 1.7.8
Fetching unf_ext 0.0.7.4
Fetching dotenv 2.2.1
Installing dotenv 2.2.1
Installing unf_ext 0.0.7.4 with native extensions
Fetching excon 0.55.0
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Fetching fastimage 2.1.0
Installing excon 0.55.0
Installing fastimage 2.1.0
Fetching gh_inspector 1.0.3
Installing gh_inspector 1.0.3
Fetching jwt 1.5.6
Installing jwt 1.5.6
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching multi_json 1.12.1
Fetching memoist 0.15.0
Installing multi_json 1.12.1
Installing memoist 0.15.0
Fetching os 0.9.6
Fetching httpclient 2.8.3
Installing os 0.9.6
Fetching hurley 0.2
Installing httpclient 2.8.3
Installing hurley 0.2
Fetching uber 0.0.15
Installing uber 0.0.15
Fetching retriable 2.1.0
Fetching json 2.1.0
Installing retriable 2.1.0
Installing json 2.1.0 with native extensions
Fetching mini_magick 4.5.1
Installing mini_magick 4.5.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching plist 3.3.0
Installing plist 3.3.0
Fetching rubyzip 1.2.1
Installing rubyzip 1.2.1
Fetching security 0.1.3
Installing security 0.1.3
Fetching slack-notifier 1.5.1
Installing slack-notifier 1.5.1
Fetching terminal-notifier 1.8.0
Installing terminal-notifier 1.8.0
Fetching unicode-display_width 1.2.1
Installing unicode-display_width 1.2.1
Fetching tty-screen 0.5.0
Installing tty-screen 0.5.0
Fetching word_wrap 1.0.0
Installing word_wrap 1.0.0
Fetching nanaimo 0.2.3
Installing nanaimo 0.2.3
Fetching rouge 2.0.7
Installing rouge 2.0.7
Fetching http_accept_language 2.0.5
Installing http_accept_language 2.0.5
Fetching puma 3.8.2
Installing puma 3.8.2 with native extensions
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching tilt 2.0.7
Installing tilt 2.0.7
Fetching nokogiri 1.7.2
Installing nokogiri 1.7.2 with native extensions
Fetching tzinfo 1.2.3
Installing tzinfo 1.2.3
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching autoprefixer-rails 7.1.1
Installing autoprefixer-rails 7.1.1
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching addressable 2.5.1
Installing addressable 2.5.1
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching commander-fastlane 4.4.4
Installing commander-fastlane 4.4.4
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching faraday 0.12.1
Installing faraday 0.12.1
Fetching logging 2.2.2
Installing logging 2.2.2
Fetching representable 2.3.0
Installing representable 2.3.0
Fetching terminal-table 1.8.0
Installing terminal-table 1.8.0
Fetching xcodeproj 1.4.4
Installing xcodeproj 1.4.4
Fetching xcpretty 0.2.8
Installing xcpretty 0.2.8
Fetching unf 0.1.4
Installing unf 0.1.4
Fetching rails_12factor 0.0.3
Installing rails_12factor 0.0.3
Fetching activesupport 4.2.8
Installing activesupport 4.2.8
Fetching mail 2.6.5
Installing mail 2.6.5
Fetching bootstrap-sass 3.3.7
Installing bootstrap-sass 3.3.7
Fetching faraday_middleware 0.11.0.1
Installing faraday_middleware 0.11.0.1
Fetching signet 0.7.3
Installing signet 0.7.3
Fetching xcpretty-travis-formatter 0.0.4
Installing xcpretty-travis-formatter 0.0.4
Fetching domain_name 0.5.20170404
Installing domain_name 0.5.20170404
Fetching rails-deprecated_sanitizer 1.0.3
Installing rails-deprecated_sanitizer 1.0.3
Fetching globalid 0.4.0
Installing globalid 0.4.0
Fetching activemodel 4.2.8
Installing activemodel 4.2.8
Fetching googleauth 0.5.1
Installing googleauth 0.5.1
Fetching http-cookie 1.0.3
Installing http-cookie 1.0.3
Fetching activejob 4.2.8
Installing activejob 4.2.8
Fetching activerecord 4.2.8
Installing activerecord 4.2.8
Fetching google-api-client 0.9.28
Installing google-api-client 0.9.28
Fetching faraday-cookie_jar 0.0.6
Installing faraday-cookie_jar 0.0.6
Fetching rails-dom-testing 1.0.8
Fetching loofah 2.0.3
Installing rails-dom-testing 1.0.8
Installing loofah 2.0.3
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching actionview 4.2.8
Fetching fastlane 2.35.0
Installing actionview 4.2.8
Fetching actionpack 4.2.8
Installing fastlane 2.35.0
Installing actionpack 4.2.8
Fetching actionmailer 4.2.8
Fetching railties 4.2.8
Installing actionmailer 4.2.8
Installing railties 4.2.8
Fetching sprockets-rails 3.2.0
Installing sprockets-rails 3.2.0
Fetching coffee-rails 4.1.1
Fetching jquery-rails 4.3.1
Installing coffee-rails 4.1.1
Fetching rails 4.2.8
Installing jquery-rails 4.3.1
Fetching sass-rails 5.0.6
Installing sass-rails 5.0.6
Installing rails 4.2.8
Bundle complete! 13 Gemfile dependencies, 103 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
The latest bundler is 1.15.3, but you are currently running 1.15.2.
To update, run `gem install bundler`
Bundle completed (24.58s)
Cleaning up the bundler cache.
-----> Installing node-v6.11.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Two Factor Authentication for account 'justin@devsec.ca' is enabled
If you're running this in a non-interactive session (e.g. server or CI)
check out https://github.com/fastlane/fastlane/tree/master/spaceship#2-step-verification
Please enter the 6 digit code: rake aborted!
EOFError: The input stream is exhausted.
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb:868:in `get_line'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb:891:in `get_response'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/highline-1.7.8/lib/highline.rb:264:in `ask'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/two_step_client.rb:61:in `handle_two_factor'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/two_step_client.rb:37:in `handle_two_step'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/client.rb:469:in `send_shared_login_request'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/tunes/tunes_client.rb:101:in `send_login_request'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/client.rb:638:in `do_login'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/client.rb:397:in `login'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/client.rb:119:in `login'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/fastlane-2.35.0/spaceship/lib/spaceship/tunes/spaceship.rb:22:in `login'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/app/services/boarding_service.rb:139:in `ensure_values'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/app/services/boarding_service.rb:35:in `initialize'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/config/initializers/services.rb:1:in `new'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/config/initializers/services.rb:1:in `'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in '
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in '
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/config/environment.rb:5:in `'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:328:in `require'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:328:in `require_environment!'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_9d5aa71be414c0a3ee68883784bc0c9a/fastlane-boarding-a855776/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `rake assets:precompile` and read `config/initializers/services.rb` plus `app/services/boarding_service.rb`, where the stack trace shows the login is triggered. Trace the fastlane two-factor prompt during the non-interactive Heroku build. Done means the asset precompile no longer fails with EOFError or requests an interactive verification code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100