I have an application running on Heroku, sometimes this error appear :
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/path_traversal.rb:16:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/json_csrf.rb:17:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/base.rb:47:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.2.0/lib/rack/protection/xss_header.rb:22:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/logger.rb:15:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/head.rb:9:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/sinatra- 1.3.2/lib/sinatra/base.rb:1334:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/commonlogger.rb:20:in `call'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:80:in `block in pre_process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `catch'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in `pre_process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:53:in `process'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:38:in `receive_data'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/controllers/controller.rb:86:in `start'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:185:in `run_command'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/runner.rb:151:in `run!'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/bin/thin:6:in `<top (required)>'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `load'
2012-10-03T17:01:32+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/bin/thin:19:in `<main>'
So what can I do ? ...
Edit : add gemfile
source :rubygems
# use Heroku Toolbelt instead
# gem "heroku"
# sinatra main library
gem "sinatra"
# sinatra plugin for localization
gem "sinatra-r18n"
gem "resolv-ipv6favor"
# Json
gem "json"
# rack middleware csrf protection
gem "rack_csrf"
# database handler | orm
gem "pg"
gem "sequel"
gem "sequel_sluggable"
gem "unicode_utils"
gem "sanitize"
gem "fog"
gem "mail"
gem "thin"
# Full system log
gem 'remote_syslog_logger'
group :development do
gem "awesome_print"
gem "sinatra-reloader"
gem "sqlite3"
end
Related
I've been using compass from http://compass-style.org/ to manage my sites css for a long time.
I have to make a small intervention on this website but the compass build command doesn't work anymore.
I'm trying to lauch the build command like this : bundle exec compass watch -e production --force --sourcemap
Here the error :
bundler: failed to load command: compass (/home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass)
/usr/lib/ruby/3.0.0/set/sorted_set.rb:4:in `rescue in <top (required)>': The `SortedSet` class has been extracted from the `set` library.You must use the `sorted_set` gem or other alternatives. (RuntimeError)
from /usr/lib/ruby/3.0.0/set/sorted_set.rb:1:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:13:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:13:in `<module:ChunkyPNG>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:1:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png.rb:150:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png.rb:150:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:4:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:4:in `rescue in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:1:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `each'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:8:in `fallback_load_path'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:19:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `load'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `<top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:28:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:474:in `exec'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:30:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:24:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:49:in `block in <top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:37:in `<top (required)>'
from /usr/bin/bundle:23:in `load'
from /usr/bin/bundle:23:in `<main>'
/usr/lib/ruby/3.0.0/set/sorted_set.rb:2:in `require': cannot load such file -- sorted_set (LoadError)
from /usr/lib/ruby/3.0.0/set/sorted_set.rb:2:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:13:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:13:in `<module:ChunkyPNG>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png/palette.rb:1:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png.rb:150:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/chunky_png-1.3.4/lib/chunky_png.rb:150:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:4:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:4:in `rescue in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:1:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `each'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:8:in `fallback_load_path'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:19:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `load'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `<top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:28:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:474:in `exec'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:30:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:24:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:49:in `block in <top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:37:in `<top (required)>'
from /usr/bin/bundle:23:in `load'
from /usr/bin/bundle:23:in `<main>'
/home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:2:in `require': cannot load such file -- oily_png (LoadError)
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb:2:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites/engines.rb:25:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions/sprites.rb:20:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:14:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `each'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/lib/compass.rb:13:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `require'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:20:in `block in <top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:8:in `fallback_load_path'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/gems/compass-1.0.3/bin/compass:19:in `<top (required)>'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `load'
from /home/hedy/Sites/myproject.fr/src/vendor/bundle/ruby/3.0.0/bin/compass:23:in `<top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:63:in `kernel_load'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli/exec.rb:28:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:474:in `exec'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:30:in `dispatch'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/cli.rb:24:in `start'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:49:in `block in <top (required)>'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
from /usr/lib/ruby/gems/3.0.0/gems/bundler-2.2.23/exe/bundle:37:in `<top (required)>'
from /usr/bin/bundle:23:in `load'
from /usr/bin/bundle:23:in `<main>'
My gemfile :
source 'https://rubygems.org'
gem "sass", "~> 3.4.19"
gem "compass", "~> 1.0.3"
gem "susy", "~> 2.2.6"
gem "breakpoint", "~> 2.5.0"
gem "sugarcss", "~> 1.0.0"
How can I get this build command work again ?
This application was already working fine on Heroku. After the last
heroku run rake db:migrate
I found the following logs with errors:
2016-03-04T19:40:50.904316+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:471:in `block in eager_load!'
2016-03-04T19:40:50.904317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `each'
2016-03-04T19:40:50.904317+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `eager_load!'
2016-03-04T19:40:50.904318+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:346:in `eager_load!'
2016-03-04T19:40:50.904319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2016-03-04T19:40:50.904319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `each'
2016-03-04T19:40:50.904320+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
2016-03-04T19:40:50.904321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
2016-03-04T19:40:50.904323+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-03-04T19:40:50.904322+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-03-04T19:40:50.904323+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-03-04T19:40:50.904321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-03-04T19:40:50.904324+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-03-04T19:40:50.904327+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-04T19:40:50.904326+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-04T19:40:50.904327+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-04T19:40:50.904325+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-04T19:40:50.904325+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-03-04T19:40:50.904328+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
2016-03-04T19:40:50.904329+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
2016-03-04T19:40:50.904329+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-04T19:40:50.904330+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-04T19:40:50.904331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2016-03-04T19:40:50.904331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2016-03-04T19:40:50.904334+00:00 app[web.1]: from /app/config.ru:in `new'
2016-03-04T19:40:50.904335+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-03-04T19:40:50.904335+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2016-03-04T19:40:50.904336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2016-03-04T19:40:50.904337+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2016-03-04T19:40:50.904338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2016-03-04T19:40:50.904338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2016-03-04T19:40:50.904339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:61:in `app'
2016-03-04T19:40:50.904339+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2016-03-04T19:40:50.904340+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2016-03-04T19:40:50.904341+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:80:in `start'
2016-03-04T19:40:50.904342+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2016-03-04T19:40:50.904342+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2016-03-04T19:40:50.904346+00:00 app[web.1]: from bin/rails:8:in `require'
2016-03-04T19:40:50.904343+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2016-03-04T19:40:50.904346+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-04T19:40:50.904344+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2016-03-04T19:40:50.904347+00:00 app[web.1]: from bin/rails:8:in `<main>'
2016-03-04T19:40:51.575383+00:00 heroku[web.1]: Process exited with status 1
2016-03-04T19:40:51.615222+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-04T19:41:25+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.05 sample#load-avg-5m=0.09 sample#load-avg-15m=0.11 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797896.0kB sample#memory-cached=519196kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:42:25+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.02 sample#load-avg-5m=0.075 sample#load-avg-15m=0.1 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13798020.0kB sample#memory-cached=519196kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:43:29+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.04 sample#load-avg-5m=0.075 sample#load-avg-15m=0.1 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797656.0kB sample#memory-cached=519200kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:44:30+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.105 sample#load-avg-5m=0.085 sample#load-avg-15m=0.105 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797688.0kB sample#memory-cached=519200kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:45:46+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.09 sample#load-avg-5m=0.085 sample#load-avg-15m=0.105 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797928.0kB sample#memory-cached=519200kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:46:31+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.035 sample#load-avg-5m=0.07 sample#load-avg-15m=0.095 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797796.0kB sample#memory-cached=519200kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:47:33+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.01 sample#load-avg-5m=0.055 sample#load-avg-15m=0.09 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797980.0kB sample#memory-cached=519204kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:48:35+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.02 sample#load-avg-5m=0.055 sample#load-avg-15m=0.09 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13798144.0kB sample#memory-cached=519204kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:49:23+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.045 sample#load-avg-5m=0.055 sample#load-avg-15m=0.09 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13798260.0kB sample#memory-cached=519204kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:50:25+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.015 sample#load-avg-5m=0.045 sample#load-avg-15m=0.08 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13797936.0kB sample#memory-cached=519204kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:51:31.568822+00:00 heroku[worker.1]: State changed from crashed to starting
2016-03-04T19:51:36.943055+00:00 heroku[worker.1]: Starting process with command `bundle exec rake jobs:work`
2016-03-04T19:51:37.500878+00:00 heroku[worker.1]: State changed from starting to up
2016-03-04T19:51:40+00:00 app[heroku-redis]: source=REDIS sample#active-connections=1 sample#load-avg-1m=0.17 sample#load-avg-5m=0.08 sample#load-avg-15m=0.09 sample#read-iops=0 sample#write-iops=0 sample#memory-total=15405632.0kB sample#memory-free=13798928.0kB sample#memory-cached=519208kB sample#memory-redis=328496bytes sample#hit-rate=0.93242 sample#evicted-keys=0
2016-03-04T19:51:41.578717+00:00 app[worker.1]: rake aborted!
2016-03-04T19:51:41.578736+00:00 app[worker.1]: Don't know how to build task 'jobs:work'
2016-03-04T19:51:41.578969+00:00 app[worker.1]:
2016-03-04T19:51:41.578997+00:00 app[worker.1]: (See full trace by running task with --trace)
2016-03-04T19:51:42.166907+00:00 heroku[worker.1]: Process exited with status 1
2016-03-04T19:51:42.176706+00:00 heroku[worker.1]: State changed from up to crashed
And then I tried:
git push heroku master
After that my application suddenly doesn't work in my production environment (heroku) and I'm not able to simulate it in my local environment.
I'm getting the following error-logs for pushing the git:
2016-03-04T19:18:22.489968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2016-03-04T19:18:22.489969+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:471:in `each'
2016-03-04T19:18:22.489970+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:471:in `block in eager_load!'
2016-03-04T19:18:22.489971+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `each'
2016-03-04T19:18:22.489971+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `eager_load!'
2016-03-04T19:18:22.489972+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:346:in `eager_load!'
2016-03-04T19:18:22.489975+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `each'
2016-03-04T19:18:22.489976+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2016-03-04T19:18:22.489976+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
2016-03-04T19:18:22.489977+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-03-04T19:18:22.489977+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
2016-03-04T19:18:22.489978+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-03-04T19:18:22.489982+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-04T19:18:22.489983+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-03-04T19:18:22.489979+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-03-04T19:18:22.489979+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-03-04T19:18:22.489980+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-03-04T19:18:22.489983+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-04T19:18:22.489987+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
2016-03-04T19:18:22.489985+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-04T19:18:22.489985+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-04T19:18:22.490001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
2016-03-04T19:18:22.490002+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-04T19:18:22.490004+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-04T19:18:22.490005+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2016-03-04T19:18:22.490026+00:00 app[web.1]: from /app/config.ru:in `new'
2016-03-04T19:18:22.490006+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2016-03-04T19:18:22.490027+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-03-04T19:18:22.490027+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2016-03-04T19:18:22.490029+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2016-03-04T19:18:22.490030+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2016-03-04T19:18:22.490032+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2016-03-04T19:18:22.490048+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2016-03-04T19:18:22.490049+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:61:in `app'
2016-03-04T19:18:22.490050+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2016-03-04T19:18:22.490052+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2016-03-04T19:18:22.490053+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:80:in `start'
2016-03-04T19:18:22.490151+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2016-03-04T19:18:22.490160+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2016-03-04T19:18:22.490161+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2016-03-04T19:18:22.490161+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2016-03-04T19:18:22.490162+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-04T19:18:22.490162+00:00 app[web.1]: from bin/rails:8:in `require'
2016-03-04T19:18:22.490163+00:00 app[web.1]: from bin/rails:8:in `<main>'
2016-03-04T19:18:23.173071+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-04T19:18:23.174500+00:00 heroku[web.1]: State changed from crashed to starting
2016-03-04T19:18:23.126163+00:00 heroku[web.1]: Process exited with status 1
2016-03-04T19:18:28.828072+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 33437 -e production`
2016-03-04T19:18:35.409674+00:00 app[web.1]: => Booting WEBrick
2016-03-04T19:18:35.409713+00:00 app[web.1]: => Rails 4.2.0 application starting in production on http://0.0.0.0:33437
2016-03-04T19:18:35.409714+00:00 app[web.1]: => Run `rails server -h` for more startup options
2016-03-04T19:18:35.409715+00:00 app[web.1]: => Ctrl-C to shutdown server
2016-03-04T19:18:35.409720+00:00 app[web.1]: Exiting
2016-03-04T19:18:35.409736+00:00 app[web.1]: /app/app/controllers/Users/invitations_controller.rb:1:in `<top (required)>': uninitialized constant Users (NameError)
2016-03-04T19:18:35.409737+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2016-03-04T19:18:35.409737+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:471:in `each'
2016-03-04T19:18:35.409738+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:471:in `block in eager_load!'
2016-03-04T19:18:35.409739+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `each'
2016-03-04T19:18:35.409739+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:469:in `eager_load!'
2016-03-04T19:18:35.409740+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/engine.rb:346:in `eager_load!'
2016-03-04T19:18:35.409742+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `instance_exec'
2016-03-04T19:18:35.409741+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2016-03-04T19:18:35.409741+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application/finisher.rb:56:in `each'
2016-03-04T19:18:35.409743+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:30:in `run'
2016-03-04T19:18:35.409745+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2016-03-04T19:18:35.409744+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
2016-03-04T19:18:35.409744+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2016-03-04T19:18:35.409746+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each'
2016-03-04T19:18:35.409743+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:55:in `block in run_initializers'
2016-03-04T19:18:35.409747+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `call'
2016-03-04T19:18:35.409751+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2016-03-04T19:18:35.409750+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/application.rb:352:in `initialize!'
2016-03-04T19:18:35.409748+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
2016-03-04T19:18:35.409755+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
2016-03-04T19:18:35.409751+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
2016-03-04T19:18:35.409750+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2016-03-04T19:18:35.409756+00:00 app[web.1]: from /app/config.ru:in `new'
2016-03-04T19:18:35.409756+00:00 app[web.1]: from /app/config.ru:in `<main>'
2016-03-04T19:18:35.409758+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
2016-03-04T19:18:35.409745+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2016-03-04T19:18:35.409747+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2016-03-04T19:18:35.409748+00:00 app[web.1]: from /app/vendor/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
2016-03-04T19:18:35.409762+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:80:in `start'
2016-03-04T19:18:35.409749+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/initializable.rb:54:in `run_initializers'
2016-03-04T19:18:35.409767+00:00 app[web.1]: from bin/rails:8:in `require'
2016-03-04T19:18:35.409761+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
2016-03-04T19:18:35.409768+00:00 app[web.1]: from bin/rails:8:in `<main>'
2016-03-04T19:18:35.409758+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
2016-03-04T19:18:35.409759+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
2016-03-04T19:18:35.409761+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
2016-03-04T19:18:35.409762+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2016-03-04T19:18:35.409763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
2016-03-04T19:18:35.409766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
2016-03-04T19:18:35.409767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
2016-03-04T19:18:35.409759+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
2016-03-04T19:18:35.409760+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/server.rb:61:in `app'
2016-03-04T19:18:35.409757+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
2016-03-04T19:18:35.409766+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2016-03-04T19:18:36.172209+00:00 heroku[web.1]: State changed from starting to crashed
2016-03-04T19:18:36.156974+00:00 heroku[web.1]: Process exited with status 1
The last thing that I've done is installing and implementing the Devise_invitable Gem (next to my already implemented Devise Gem).
Does anyone see what's going wrong?
This happens in prod but not dev because dev lazy-loads classes, and prod loads them all up front. But it gets an error loading this file:
app/controllers/Users/invitations_controller.rb
It looks like the first line is doing something with the Users class. The path to that file is suspicious as well. Usually in Rails you don't capitalize directories like you've done with Users/invitations_controller.rb.
Since the error is on line 1, I'm guessing you have this:
class Users::InvitationsController
...
end
I think renaming the directory to lowercase users will fix your problem.
Note that this has nothing to do with running migrations. In fact I doubt your migration succeeded, so once you fix this problem and push the fix to Heroku, you should try running it again.
Using Jekyll 2.5.3 on Heroku with Github deployment. Jekyll builds fine locally on OS X, but fails on Heroku. Any ideas on how to fix this would be appreciated.
config.ru
require 'rack/jekyll'
require 'yaml'
run Rack::Jekyll.new
Gemfile
source 'https://rubygems.org'
gem 'bundler'
gem 'jekyll', '~> 2.5'
gem 'jekyll-redirect-from', '~> 0.8'
gem 'html-proofer'
gem 'rack-jekyll'
gem 'compass'
app.json
{
"name":"ninelabs.com",
"scripts":{},
"env":{
"LANG":{
"required":true
},
"RACK_ENV":{
"required":true
}
},
"addons":[]
}
Here's the log showing errors:
Note the line No such file or directory - /apple-icon-72x72.png (Errno::ENOENT)
> 2015-10-04T16:41:32.741506+00:00 heroku[web.1]: Starting process with command `bundle exec rackup config.ru -p 13959`
> 2015-10-04T16:41:37.929983+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/utils.rb:102:in `initialize': No such file or directory - /apple-icon-72x72.png (Errno::ENOENT)
> 2015-10-04T16:41:37.930023+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/utils.rb:102:in `open'
> 2015-10-04T16:41:37.930058+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/utils.rb:102:in `has_yaml_header?'
> 2015-10-04T16:41:37.930076+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:177:in `block in read_directories'
> 2015-10-04T16:41:37.930093+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:172:in `each'
> 2015-10-04T16:41:37.930109+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:172:in `read_directories'
> 2015-10-04T16:41:37.930126+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:151:in `read'
> 2015-10-04T16:41:37.930149+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/jekyll-2.5.3/lib/jekyll/site.rb:49:in `process'
> 2015-10-04T16:41:37.930174+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-jekyll-0.3.5/lib/rack/jekyll.rb:29:in `initialize'
> 2015-10-04T16:41:37.930192+00:00 app[web.1]: from /app/config.ru:3:in `new'
> 2015-10-04T16:41:37.930209+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
> 2015-10-04T16:41:37.930225+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
> 2015-10-04T16:41:37.930241+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
> 2015-10-04T16:41:37.930263+00:00 app[web.1]: from /app/config.ru:in `new'
> 2015-10-04T16:41:37.930288+00:00 app[web.1]: from /app/config.ru:in `<main>'
> 2015-10-04T16:41:37.930305+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
> 2015-10-04T16:41:37.930321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
> 2015-10-04T16:41:37.930337+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
> 2015-10-04T16:41:37.930354+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'
> 2015-10-04T16:41:37.930371+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'
> 2015-10-04T16:41:37.930400+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'
> 2015-10-04T16:41:37.930417+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'
> 2015-10-04T16:41:37.930434+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/server.rb:147:in `start'
> 2015-10-04T16:41:37.930451+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/bin/rackup:4:in `<top (required)>'
> 2015-10-04T16:41:37.930468+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `load'
> 2015-10-04T16:41:37.930489+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/rackup:23:in `<main>'
> 2015-10-04T16:41:37.956751+00:00 app[web.1]: Configuration file: /app/_config.yml
> 2015-10-04T16:41:39.069543+00:00 heroku[web.1]: State changed from starting to crashed
> 2015-10-04T16:41:39.062775+00:00 heroku[web.1]: Process exited with status 1
I'm trying to run a puma project on my Windows 8 machine and keep getting this error whenever I try to run bundle puma exec -p 4567 I get an error about a Bad file descriptor in part of the backports code.
PS C:\Users\andrew\work\test> bundle exec puma -p 4567
DL is deprecated, please use Fiddle
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 2.9.1 (ruby 2.0.0-p576), codename: Team High Five
* Min threads: 0, max threads: 16
* Environment: development
! Unable to load application
C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1.9.1/io/open.
rb:2:in `close': Bad file descriptor - C:/Ruby200/lib/ruby/gems/2.0.0/gems/backp
orts-3.4.0/lib/backports/1.9.1/io/open.rb (Errno::EBADF)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.1/io/open.rb:2:in `open'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.1/io/open.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:22:in `block in require_relative_dir'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:21:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:21:in `require_relative_dir'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.1/io.rb:3:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:22:in `block in require_relative_dir'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:21:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:21:in `require_relative_dir'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.1.rb:3:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.2.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.3.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/1
.9.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2
.0.0.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2
.0.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2
.1.0.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/2
.1.rb:2:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports/t
ools.rb:328:in `require_with_backports'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/backports-3.4.0/lib/backports.r
b:3:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat
ra/capture.rb:3:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat
ra/capture.rb:3:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat
ra/content_for.rb:2:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/sinatra-contrib-1.4.2/lib/sinat
ra/content_for.rb:2:in `<top (required)>'
from C:/Users/andrew/work/youcue/routes.rb:2:in `require'
from C:/Users/andrew/work/youcue/routes.rb:2:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:
55:in `instance_eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:
55:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:
49:in `eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:
49:in `new_from_string'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:
40:in `parse_file'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/configurati
on.rb:96:in `app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/runner.rb:1
13:in `load_and_bind'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/single.rb:7
3:in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/lib/puma/cli.rb:499:
in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/puma-2.9.1/bin/puma:10:in `<top
(required)>'
from C:/Ruby200/bin/puma:23:in `load'
from C:/Ruby200/bin/puma:23:in `<main>'
I'm using
ruby 2.0.0p576 (2014-09-19) [i386-mingw32]
DevKit-mingw64-32-4.7.2-20130224
I was able to successfully run install (had to install the ssl headers to get it to work), but I keep getting this error when I try to deploy the puma server. I'm pretty new to ruby development, so I'm unsure what other things I could look into or how to resolve the EBADF error in a gem.
Thanks!
This is fixed in the latest release of Backports (3.6.1) per issue 86. Either require 3.6.1 or go back to p481
help would be much appreciated. for some reason, my push to heroku does not work even though my local version is working fine.
i'm deploying a rails app.
after a git push heroku, and heroku run rake db:migrate i get an application error on my website.
EDIT i put up the entire back trace
2012-03-13T20:49:20+00:00 app[web.1]: from
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:46:in `app'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:70:in `start'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-03-13T20:49:20+00:00 app[web.1]: from script/rails:6:in `require'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
2012-03-13T20:49:20+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
2012-03-13T20:49:20+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-03-13T20:49:21+00:00 heroku[web.1]: Process exited with status 1
2012-03-13T20:49:21+00:00 heroku[web.1]: State changed from starting to crashed
2012-03-13T21:01:36+00:00 heroku[router]: Error H10 (App crashed) -> GET strong-sunrise-8468.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-03-13T21:03:43+00:00 heroku[web.1]: State changed from crashed to created
2012-03-13T21:03:43+00:00 heroku[web.1]: State changed from created to starting
2012-03-13T21:03:47+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 43183`
2012-03-13T21:03:50+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-03-13T21:03:50+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-03-13T21:03:53+00:00 app[web.1]: => Booting WEBrick
2012-03-13T21:03:53+00:00 app[web.1]: => Rails 3.2.1 application starting in production on http://0.0.0.0:43183
2012-03-13T21:03:53+00:00 app[web.1]: => Call with -d to detach
2012-03-13T21:03:53+00:00 app[web.1]: => Ctrl-C to sh
2012-03-13T21:03:53+00:00 app[web.1]: Exiting
2012-03-13T21:03:53+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/bundler-1.1.rc.7/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': bcrypt-ruby is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activemodel-3.2.1/lib/active_model/secure_password.rb:37:in `has_secure_password'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/app/models/user.rb:14:in `<class:User>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/app/models/user.rb:12:in `<top (required)>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:192:in `block in const_missing'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `each'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `each'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:190:in `const_missing'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:228:in `constantize'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:229:in `block in constantize'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/inflector/methods.rb:259:in `safe_constantize'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/app/controllers/users_controller.rb:1:in `<top (required)>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.1/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:313:in `depend_on'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:438:in `each'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:438:in `block in eager_load!'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:436:in `each'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:436:in `eager_load!'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:46:in `app'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands/server.rb:70:in `start'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `tap'
2012-03-13T21:03:53+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:50:in `<top (required)>'
2012-03-13T21:03:53+00:00 app[web.1]: from script/rails:6:in `require'
2012-03-13T21:03:53+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-03-13T21:03:54+00:00 heroku[web.1]: Process exited with status 1
2012-03-13T21:03:54+00:00 heroku[web.1]: State changed from starting to crashed
2012-03-13T21:04:38+00:00 heroku[run.1]: State changed from created to starting
2012-03-13T21:04:44+00:00 app[run.1]: Awaiting client
2012-03-13T21:04:45+00:00 heroku[run.1]: Process exited with status 0
2012-03-13T21:04:45+00:00 heroku[run.1]: State changed from starting to complete
2012-03-13T21:04:52+00:00 heroku[run.1]: State changed from created to starting
2012-03-13T21:04:58+00:00 app[run.1]: Awaiting client
2012-03-13T21:04:58+00:00 app[run.1]: Starting process with command `bundle exec rake db:migrate`
2012-03-13T21:04:59+00:00 heroku[run.1]: State changed from starting to up
2012-03-13T21:05:04+00:00 heroku[run.1]: Process exited with status 0
2012-03-13T21:05:04+00:00 heroku[run.1]: State changed from up to complete
2012-03-13T21:05:21+00:00 heroku[router]: Error H10 (App crashed) -> GET strong-sunrise-8468.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
i notice there are deprecation warnings, but im following the michael hartl book for beginners learning rails and he said to ignore them.
i did
heroku stack
and i am on the cedar stack as well
inside the environment.rb, the contents are...
1. # Load the rails application
2. require File.expand_path('../application', __FILE__)
3.
4. # Initialize the rails application
5. SampleApp::Application.initialize!
Add this gem to Gemfile
gem 'bcrypt-ruby', '~> 3.0.0'
probably your gem is using it on your local gems.
And don't forget to git add .