Getting error while trying to Deploy in heroku - ruby

Getting error while trying to Deploy in heroku
remote: ------------------------------
remote: Bundle completed (48.81s)
remote: Cleaning up the bundler cache.
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: sh: 2: Syntax error: Unterminated quoted string
remote: sh: 2: Syntax error: Unterminated quoted string
remote: !
remote: ! Could not detect rake tasks
remote: ! ensure you can run `$ bundle exec rake -P` against your app
remote: ! and using the production group of your Gemfile.
remote: ! rake aborted!
remote: ! LoadError: Can't load WDM!
remote: !
remote: ! WDM is not supported on your system. For a cross-platform alternative,
remote: ! we recommend using Listen: http://github.com/guard/listen
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/lib/wdm.rb:4:in `rescue in <top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/wdm-0.1.1/lib/wdm.rb:1:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:82:in `block (2 levels) in require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `each'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:77:in `block in require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `each'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler/runtime.rb:66:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.2/lib/bundler.rb:108:in `require'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/config/application.rb:7:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/Rakefile:4:in `require_relative'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/Rakefile:4:in `<top (required)>'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/rake_module.rb:29:in `load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:703:in `raw_load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:104:in `block in load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:103:in `load_rakefile'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:82:in `block in run'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
remote: ! /tmp/build_23f08682e6a066ec3fbe1f3ee37ee97d/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: ! vendor/bundle/bin/rake:17:in `load'
remote: ! vendor/bundle/bin/rake:17:in `<main>'
remote: !
remote: ! Caused by:
remote: ! LoadError: cannot load such file -- wdm_ext

From the description provided it seems like you have specified a wdm dependency since you were developing the application on windows but the same could not be found when deploying on heroku(unix system) .
Have you added the following in the Gemfile??
platforms :mswin do
gem "wdm"
end
If it is there in Gemfile then modify it to below mentioned:
platforms :mswin do
gem "wdm", :group => [:development]
end
Then add it to git and try deploying on heroku.

Related

Error running prometheus_exporter gem in docker container

I'm trying to start the prometheus_exporter gem with -b 0.0.0.0 parameter, in a docker container.
I get this error:
remote: /usr/local/lib/ruby/2.6.0/socket.rb:227:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError)
remote: from /usr/local/lib/ruby/2.6.0/socket.rb:227:in `foreach'
remote: from /usr/local/lib/ruby/2.6.0/socket.rb:762:in `tcp_server_sockets'
remote: from /usr/local/lib/ruby/2.6.0/webrick/utils.rb:65:in `create_listeners'
remote: from /usr/local/lib/ruby/2.6.0/webrick/server.rb:127:in `listen'
remote: from /usr/local/lib/ruby/2.6.0/webrick/server.rb:108:in `initialize'
remote: from /usr/local/lib/ruby/2.6.0/webrick/httpserver.rb:47:in `initialize'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/lib/prometheus_exporter/server/web_server.rb:47:in `new'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/lib/prometheus_exporter/server/web_server.rb:47:in `initialize'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/lib/prometheus_exporter/server/runner.rb:45:in `new'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/lib/prometheus_exporter/server/runner.rb:45:in `start'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/bin/prometheus_exporter:122:in `run'
remote: from /usr/local/bundle/gems/prometheus_exporter-0.8.1/bin/prometheus_exporter:126:in `<top (required)>'
remote: from /usr/local/bundle/bin/prometheus_exporter:23:in `load'
remote: from /usr/local/bundle/bin/prometheus_exporter:23:in `<main>'
remote: 2021-10-29 14:39:23 +0000 Starting prometheus exporter on 0.0.0.0:9394
The container is built using this Dockerfile:
FROM ruby:2.6.6
RUN gem install prometheus_exporter
WORKDIR /app
EXPOSE 9394
CMD ["-v","-b 0.0.0.0"]
ENTRYPOINT ["/usr/local/bundle/bin/prometheus_exporter"]
I need this to run in its own container to collect metrics from multiple other containers, so the 0.0.0.0 bind is necessary.
It starts if the -b 0.0.0.0 parameter is not used.
Any idea?

Sass assets precompile failed on deploy with Rails 5

this is my first time working with sass files, its been relatively cool until i tried to deploy to heroku,i keep getting this error from my log on heroku, assets:precompile works perfectly in development but each time i try to deploy,it fails, am running on Rails 5 below is my error log
Error log
Running: rake assets:precompile
Yarn executable was not detected in the system.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:161:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:10:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:36:in `css_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:20:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/engine.rb:290:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_p
rocessors'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors
'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_depend
ency_cache'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in ini
tialize'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in log
ical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_direc
tory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote:
remote: Caused by:
remote: ArgumentError: wrong number of arguments (3 for 4)
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/functions.rb:752:in `rgba'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/funcall.rb:155:in `block in _perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:108:in `block in with_function'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:108:in `with_function'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/funcall.rb:153:in `_perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/node.rb:50:in `perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `block in _perfor
m'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/list_literal.rb:75:in `_perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/script/tree/node.rb:50:in `perform'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:402:in `visit_prop'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `block in with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `block (2 levels) i
n visit_rule'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:444:in `block in visit_rul
e'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:183:in `with_environment'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:442:in `visit_rule'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `block in with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:135:in `with_frame'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/stack.rb:79:in `with_base'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:162:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `block in visit_childre
n'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `map'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:52:in `visit_children'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:171:in `block in visit_chi
ldren'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:183:in `with_environment'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:170:in `visit_children'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `block in visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:190:in `visit_root'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/base.rb:36:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:161:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/visitors/perform.rb:10:in `visit'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:36:in `css_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/tree/root_node.rb:20:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sass-3.5.6/lib/sass/engine.rb:290:in `render'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:48:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/sass_compressor.rb:28:in `call'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_p
rocessors'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors
'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_depend
ency_cache'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in ini
tialize'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in log
ical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_direc
tory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 level
s) in define'
remote: /tmp/build_758c04257e9cbe8f0962e8e5ef67b23e/vendor/bundle/ruby/2.
4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to project.
remote:
Gemfile
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
gem 'font-awesome-sass'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem 'jquery-rails'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development do
gem 'better_errors'
gem 'letter_opener'
end
gem 'friendly_id', '~> 5.1.0' #make the urls "friendly"
gem 'cancancan' #authorize access
gem 'rolify' #assign role to user
gem 'sendgrid'
gem 'pg_search'
gem 'sitemap_generator'
gem 'fog-aws'
gem 'figaro'
gem 'devise'
gem 'devise_invitable'
gem 'simple_form'
#gem 'client_side_validations', '~> 4.2.1'
gem 'bootstrap-sass', '~> 3.2.0'
gem 'will_paginate-bootstrap'
#gem 'will_paginate', '~> 3.1.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'
group :production do
gem 'rails_12factor'
end
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'rspec-rails', '~> 3.7'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Seems RoR doesn't get as much attention on SO as before, anyways i was able to solve my problem by going through the log myself,for the sake of others am posting my answer i found a line that says
Caused by:
remote: ArgumentError: wrong number of arguments (3 for 4)
so i added null value (0) to the code rgba code on that line, i.e rgba(12, 184, 182,0), and voila !

ruby error while pushing puppet code to git

I have a puppet pre-commit hook setup in git server, while pushing from local I get the following error:
remote: /usr/share/rubygems/rubygems/path_support.rb:68:in `path=': undefined method `+' for nil:NilClass (NoMethodError)
remote: from /usr/share/rubygems/rubygems/path_support.rb:30:in `initialize'
remote: from /usr/share/rubygems/rubygems.rb:357:in `new'
remote: from /usr/share/rubygems/rubygems.rb:357:in `paths'
remote: from /usr/share/rubygems/rubygems.rb:379:in `path'
remote: from /usr/share/rubygems/rubygems/specification.rb:794:in `dirs'
remote: from /usr/share/rubygems/rubygems/specification.rb:658:in `each_normal'
remote: from /usr/share/rubygems/rubygems/specification.rb:669:in `_all'
remote: from /usr/share/rubygems/rubygems/specification.rb:822:in `each'
remote: from /usr/share/rubygems/rubygems/specification.rb:864:in `find'
remote: from /usr/share/rubygems/rubygems/specification.rb:864:in `find_inactive_by_path'
remote: from /usr/share/rubygems/rubygems.rb:175:in `try_activate'
remote: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
remote: from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in `require'
remote: from <internal:abrt_prelude>:2:in `<compiled>'
pre-commit hook is normally a client-side hook, so it should not be installed on the server side, and should not be seen as "[remote] ...".
That being said, that same error was seen in this thread
The error comes from system ruby.
Have you installed the AIO package?
Maybe it is facter.
I just saw that the problem was that by downloading the release of yum.puppetlabs.com
I used the relational to Red Hat Enterprise.
Now downloading the correct release the same error did not happen
As seen in this answer, this can be also due to conflicting ruby versions.
But in any case, it is nit related to Git directly.

Deploying Rails Applications with Unicorn to Heroku

I'm trying to deploy my Ruby on Rails app to Heroku with Unicorn. I followed the tutorial on Heroku website. But it shows:
Precompiling assets failed.
Here is the running result:
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
rake aborted!
uninitialized constant Rack::Timeout
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/config/initializers/timeout.rb:1:in `<top (required)>'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/engine.rb:649:in `block in load_config_initializer'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.0.rc1/lib/active_support/notifications.rb:161:in `instrument'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/engine.rb:648:in `load_config_initializer'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/engine.rb:613:in `block (2 levels) in <class:Engine>'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/engine.rb:612:in `each'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/engine.rb:612:in `block in <class:Engine>'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:30:in `run'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:44:in `each'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:44:in `tsort_each_child'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/application.rb:286:in `initialize!'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/config/environment.rb:5:in `<top (required)>'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/application.rb:262:in `require_environment!'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/railties-4.1.0.rc1/lib/rails/application.rb:346:in `block in run_tasks_blocks'
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
Precompiling assets failed.
Push rejected, failed to compile Ruby app
I use Ruby2.0, Ruby on Rails 4.1.0.rc1.
It looks like your problem is actually related to Rack::Timeout and not asset compilation.
uninitialized constant Rack::Timeout
/tmp/build_d3989303-c1d8-4020-9b98-eb9e1834f0d0/config/initializers/timeout.rb:1:in `<top (required)>'
Have you included the rack-timeout gem in your gemfile? And ran bundle install after that?
gem "rack-timeout"
Remove the timeout setting:
rm config/initializers/timeout.rb
Heroku times-out all requests at 30 seconds but the process will continue running in the background.
If you want to avoid that, re-add the line above but put rack-timeout in your Gemfile.
I would suggest trying the following:
heroku labs:enable user-env-compile
If this fails, you could always precompile your production assets, add them to your codebase and push them to heroku yourself.
RAILS_ENV=production rake assets:precompile
git add .
git commit -m 'serving up my precompiled assets'
git push origin master
git push origin heroku

New Relic plugin on Heroku: push fails with `uninitialized constant NewRelic::Logger::INFO`

Had new relic up and working fine, but now the push fails during asset precompile. It has to do with the 'newrelic_plugin' gem, because the push worked fine after removing that line from my gemfile and re-bundling.
I have the heroku lab 'user-env-compile' enabled, not sure if it's relevant.
Here's the full stack trace; any help would be much appreciated:
Your bundle is complete! It was installed into ./vendor/bundle
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant NewRelic::Logger::INFO
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:131:in `log_level_for'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:119:in `set_log_level!'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/agent/agent_logger.rb:13:in `initialize'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/control/instance_methods.rb:62:in `new'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/new_relic/control/instance_methods.rb:62:in `init_plugin'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/newrelic_rpm-3.6.6.147/lib/newrelic_rpm.rb:40:in `block in <class:Railtie>'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:30:in `run'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:257:in `initialize!'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/railtie.rb:194:in `public_send'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/railtie.rb:194:in `method_missing'
/tmp/build_k8jk6mc5x6ch/config/environment.rb:5:in `<top (required)>'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:233:in `require_environment!'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/bundler/gems/rails-0b3a078a2481/railties/lib/rails/application.rb:295:in `block in run_tasks_blocks'
/tmp/build_k8jk6mc5x6ch/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.

Resources