I am experiencing problems with the "heroku run rake db:migrate" command.
It complains about an " ! Heroku client internal error", see below for the entire thing. Git push and heroku create work (see below), but finally rake db:migrate crashes.
What can I do?
All the best
Stefan
Below is what I enter and get from Heroku.
C:\Sites\demo_app_rt32>git push -u origin master
Enter passphrase for key '/z/.ssh/id_rsa':
Counting objects: 102, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (102/102), 32.37 KiB, done.
Total 102 (delta 8), reused 0 (delta 0)
To git#github.com:StefanHelber/demo_app_rt32.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
C:\Sites\demo_app_rt32>heroku create --stack cedar
Creating murmuring-thicket-9165... done, stack is cedar
http://murmuring-thicket-9165.herokuapp.com/ | git#heroku.com:murmuring-thicket-
9165.git
Git remote heroku added
C:\Sites\demo_app_rt32>git push heroku master
Enter passphrase for key '/z/.ssh/id_rsa':
Counting objects: 102, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (102/102), 32.37 KiB, done.
Total 102 (delta 8), reused 0 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.2.1
Running: bundle install --without development:test --path vendor/bundle -
-binstubs bin/
Fetching gem metadata from https://rubygems.org/.........
Installing rake (0.9.2.2)
Installing i18n (0.6.1)
Installing multi_json (1.3.6)
Installing activesupport (3.2.3)
Installing builder (3.0.3)
Installing activemodel (3.2.3)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.1)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.1)
Installing tilt (1.3.3)
Installing sprockets (2.1.3)
Installing actionpack (3.2.3)
Installing mime-types (1.19)
Installing polyglot (0.3.3)
Installing treetop (1.4.10)
Installing mail (2.4.4)
Installing actionmailer (3.2.3)
Installing arel (3.0.2)
Installing tzinfo (0.3.33)
Installing activerecord (3.2.3)
Installing activeresource (3.2.3)
Using bundler (1.2.1)
Installing coffee-script-source (1.3.3)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.2)
Installing json (1.7.5) with native extensions
Installing rdoc (3.12)
Installing thor (0.14.6)
Installing railties (3.2.3)
Installing coffee-rails (3.2.2)
Installing jquery-rails (2.0.2)
Installing pg (0.12.2) with native extensions
Installing rails (3.2.3)
Installing sass (3.2.1)
Installing sass-rails (3.2.4)
Installing uglifier (1.2.3)
Your bundle is complete! It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Asset precompilation completed (13.78s)
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby/Rails -> console, rake, web, worker
-----> Compiled slug size: 9.0MB
-----> Launching... done, v5
http://murmuring-thicket-9165.herokuapp.com deployed to Heroku
To git#heroku.com:murmuring-thicket-9165.git
* [new branch] master -> master
C:\Sites\demo_app_rt32>heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.1
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed becau
se connected host has failed to respond. - connect(2) (Errno::ETIMEDOUT)
Backtrace: C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/client/rendezvous.rb:39:in `initialize'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/client/rendezvous.rb:39:in `open'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/client/rendezvous.rb:39:in `block in start'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/timeout.rb:68:in `ti
meout'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/client/rendezvous.rb:31:in `start'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/command/run.rb:125:in `rendezvous_session'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/command/run.rb:112:in `run_attached'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/command/run.rb:21:in `index'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/command.rb:206:in `run'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/lib/heroku/cli.rb:28:in `start'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/heroku-2.3
2.4/bin/heroku:16:in `<top (required)>'
C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `load'
C:/RailsInstaller/Ruby1.9.3/bin/heroku:19:in `<main>'
Command: heroku run rake db:migrate
Version: heroku-toolbelt/2.32.4 (i386-mingw32) ruby/1.9.3 autoupdate
C:\Sites\demo_app_rt32>
See https://devcenter.heroku.com/articles/oneoff-admin-ps
The heroku run process opens a connection to Heroku on port 5000. If
your local network or ISP is blocking port 5000, or you are
experiencing a connectivity issue, you will see an error similar to:
$ heroku run rails console
Running rails console attached to terminal...
Timeout awaiting process
You can test your connection to Heroku by trying to connect directly
to port 5000 by using telnet to rendezvous.runtime.heroku.com. A
successful session will look like this:
$ telnet rendezvous.runtime.heroku.com 5000
Trying 50.19.103.36...
Connected to ec2-50-19-103-36.compute-1.amazonaws.com.
Escape character is '^]'.
If you do not get this output, your computer is being blocked from
accessing our services. We recommend contacting your IT department,
ISP, or firewall manufacturer to move forward with this issue.
Related
Using Dokku 0.5.3, I have an issue deploying a Ruby/Rack app: Bundler doesn't install my gems in :production group.
Here's my Gemfile:
source 'https://rubygems.org'
ruby '2.3.0'
gem 'bundler'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'json'
gem 'thin'
gem 'instagram'
gem 'data_mapper'
gem 'dm-types',
:git => 'git://github.com/julienma/dm-types.git',
:branch => 'gem-v1.2.2-with-frozen-nilclass-fix'
gem 'dm-postgres-adapter', :group => :production
group :development, :test do
gem 'dm-sqlite-adapter'
gem 'dotenv'
gem 'pry'
end
Here's the output when I push my repo to dokku:
Counting objects: 114, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (91/91), done.
Writing objects: 100% (114/114), 13.76 KiB | 0 bytes/s, done.
Total 114 (delta 53), reused 0 (delta 0)
-----> Cleaning up...
-----> Building my-app from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Ruby app detected
-----> Compiling Ruby/Rack
-----> Using Ruby version: ruby-2.3.0
-----> Installing dependencies using bundler 1.11.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Fetching git://github.com/julienma/dm-types.git
Installing bcrypt 3.1.11 with native extensions
Installing backports 3.6.8
Installing addressable 2.4.0
Installing daemons 1.2.3
Using json 1.8.3
Installing fastercsv 1.5.5
Installing json_pure 1.8.3
Installing multi_json 1.11.2
Installing stringex 1.5.1
Installing uuidtools 2.1.5
Installing multipart-post 2.0.0
Installing eventmachine 1.2.0.1 with native extensions
Installing hashie 3.4.3
Installing rack 1.6.4
Installing tilt 2.0.2
Using bundler 1.11.2
Installing bcrypt-ruby 3.1.5
Installing dm-core 1.2.1
Installing faraday 0.9.2
Installing rack-protection 1.5.3
Installing rack-test 0.6.3
Installing faraday_middleware 0.9.2
Installing dm-aggregates 1.2.0
Installing dm-constraints 1.2.0
Installing dm-migrations 1.2.0
Installing dm-serializer 1.2.2
Installing dm-transactions 1.2.0
Using dm-types 1.2.2 from git://github.com/julienma/dm-types.git (at gem-v1.2.2-with-frozen-nilclass-fix#b34937c)
Installing dm-timestamps 1.2.0
Installing dm-validations 1.2.0
Installing sinatra 1.4.7
Installing instagram 1.1.6
Installing sinatra-contrib 1.4.6
Installing data_mapper 1.2.0
Installing thin 1.6.4 with native extensions
Bundle complete! 12 Gemfile dependencies, 35 gems now installed.
Gems in the groups development, test and production were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (42.90s)
Cleaning up the bundler cache.
---
addons: []
config_vars:
LANG: en_US.UTF-8
RACK_ENV: production
default_process_types:
rake: bundle exec rake
console: bundle exec irb
web: bundle exec thin start -R config.ru -e $RACK_ENV -p $PORT
-----> Discovering process types
Procfile declares types -> web
-----> Releasing my-app (dokku/my-app:latest)...
-----> Deploying my-app (dokku/my-app:latest)...
-----> Attempting to run scripts.dokku.predeploy from app.json (if defined)
-----> App Procfile file found (/home/dokku/my-app/DOKKU_PROCFILE)
-----> DOKKU_SCALE file not found in app image. Generating one based on Procfile...
-----> New DOKKU_SCALE file generated
=====> web=1
-----> Running pre-flight checks
For more efficient zero downtime deployments, create a file CHECKS.
See http://dokku.viewdocs.io/dokku/checks-examples.md for examples
CHECKS file not found in container: Running simple container check...
-----> Waiting for 10 seconds ...
remote: App container failed to start!!
=====> my-app web container output:
/app/vendor/bundle/ruby/2.3.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require': cannot load such file -- dm-postgres-adapter (LoadError)
from /app/vendor/bundle/ruby/2.3.0/gems/backports-3.6.8/lib/backports/std_lib.rb:9:in `require_with_backports'
from /app/vendor/bundle/ruby/2.3.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:163:in `load_adapter'
from /app/vendor/bundle/ruby/2.3.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:133:in `adapter_class'
from /app/vendor/bundle/ruby/2.3.0/gems/dm-core-1.2.1/lib/dm-core/adapters.rb:13:in `new'
from /app/vendor/bundle/ruby/2.3.0/gems/dm-core-1.2.1/lib/dm-core.rb:230:in `setup'
from /app/controllers/app.rb:38:in `<top (required)>'
from /app/config.ru:1:in `require'
from /app/config.ru:1:in `block in <main>'
from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from /app/config.ru:1:in `new'
from /app/config.ru:1:in `<main>'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in `eval'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:33:in `load'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/rack/adapter/loader.rb:42:in `for'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:170:in `load_adapter'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:74:in `start'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in `run_command'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in `run!'
from /app/vendor/bundle/ruby/2.3.0/gems/thin-1.6.4/bin/thin:6:in `<top (required)>'
from /app/vendor/bundle/ruby/2.3.0/bin/thin:23:in `load'
from /app/vendor/bundle/ruby/2.3.0/bin/thin:23:in `<main>'
Using rack adapter
=====> end my-app web container output
To ssh://dokku#my-host.com:22/my-app
! [remote rejected] patch-dm-postgres-adapter-deploy -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://dokku#my-host.com:22/my-app'
The ruby error is because it can't require dm-postgres-adapter, because its gem has not been installed.
Bundler also states that Gems in the groups development, test and production were not installed..
Here's what I know:
I do have a local .bundler/config containing BUNDLE_WITHOUT: production, but this is .gitignore'd.
On the dokku instance, this is what dokku run my-app bundle config gives me:
Settings are listed in order of priority. The top value will be used.
without
Set for your local app (/app/.bundle/config): "development:test:production"
Set via BUNDLE_WITHOUT: "development:test"
Set for the current user (/app/.bundle/config): "development:test:production"
...
I can understand where the development:test of the without clause comes from, but I'm really at a lost to understand how and why production is also there.
I also tried to set an ENV var BUNDLE_WITHOUT: development:test before deploying for the 1st time. It's taken into account, however it's preceded by the local bundler config, which already excludes production.
I solved this by manually editing /home/dokku/my-app/cache/.bundle/config and remove production:
BUNDLE_WITHOUT: development:test
After pushing again, Bundler successfully installed my production gem.
But I don't want to have to manually edit configuration files on the server to get it to work.
So, the QUESTION:
Why is production group ignored by Bundler when deploying on Dokku?
How can I force my production gems to be installed?
Thanks!
We use the heroku buildpack, so its possible the latest buildpack has an issue with setting proper defaults?
I've upgraded the tool belt and setup an app in my Heroku account named tycoon but I'm getting an error trying to push to Heroku using git push Heroku master.
There were conflicts pushing to an existing app I deployed earlier so I deleted that app and created a new app called tycoon, but when I do a push i get the error I pasted down below.
It's difficult to make out what it was that tripped it up because it appears to be throwing the error (rake aborted!) in the middle or just after loading the logo image. Then after that, the first file it lists in the error reporting is a JS file (assets/javascript/application), but every line in that file is commented out so it's basically blank and I can't see how that could be causing this deployment error.
! Precompiling assets failed.
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$ git push heroku master
Initializing repository, done.
Counting objects: 1241, done.
Compressing objects: 100% (857/857), done.
Writing objects: 100% (1241/1241), 1.32 MiB | 262 KiB/s, done.
Total 1241 (delta 810), reused 610 (delta 343)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/rails/rails.git
Fetching git://github.com/rails/coffee-rails.git
Fetching git://github.com/thoughtbot/paperclip.git
Fetching https://github.com/rails/sass-rails.git
Using rake (10.1.0)
Installing i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Installing mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activemodel (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using bcrypt-ruby (3.1.2)
Using sass (3.2.12)
Installing bootstrap-sass (3.0.2.0)
Installing climate_control (0.0.3)
Installing cocaine (0.5.3)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using coffee-rails (4.0.1) from git://github.com/rails/coffee-rails.git (at master)
Installing faker (1.2.0)
Installing hash-deep-merge (0.1.1)
Using hike (1.2.3)
Installing jbuilder (1.0.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using bundler (1.3.2)
Installing lazy_high_charts (1.5.0)
Installing mortgage_calc (0.1.8)
Using paperclip (3.5.2) from git://github.com/thoughtbot/paperclip.git (at master)
Installing pg (0.15.1)
Using tilt (1.4.1)
Installing sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using rails_serve_static_assets (0.0.1)
Using rails_stdout_logging (0.0.3)
Using rails_12factor (0.0.2)
Using rdoc (3.12.2)
Using sass-rails (4.0.1) from https://github.com/rails/sass-rails.git (at master)
Using sdoc (0.3.20)
Installing turbolinks (1.1.1)
Installing uglifier (2.1.1)
Installing will_paginate (3.0.5)
Installing will_paginate-bootstrap (1.0.0)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (83.21s)
Cleaning up the bundler cache.
Removing coffee-rails (4.0.1)
Removing activeresource (3.2.14)
Removing actionpack (4.0.1)
Removing sass (3.2.10)
Removing activesupport (3.2.14)
Removing arel (3.0.2)
Removing builder (3.0.4)
Removing kgio (2.8.1)
Removing activemodel (4.0.1)
Removing jbuilder (1.5.2)
Removing sass-rails (4.0.1)
Removing coffee-rails (3.2.2)
Removing railties (4.0.1)
Removing tzinfo (0.3.37)
Removing puma (2.6.0)
Removing mini_portile (0.5.1)
Removing sprockets (2.2.2)
Removing execjs (2.0.1)
Removing sprockets (2.10.0)
Removing rails_stdout_logging (0.0.2)
Removing sass-rails (3.2.6)
Removing rack (1.4.5)
Removing jbuilder (1.5.1)
Removing activerecord (4.0.1)
Removing unicorn (4.6.3)
Removing bcrypt-ruby (3.0.1)
Removing journey (1.0.4)
Removing rack-ssl (1.3.3)
Removing activemodel (3.2.14)
Removing actionmailer (4.0.1)
Removing i18n (0.6.5)
Removing rack-cache (1.2)
Removing activerecord (3.2.14)
Removing activesupport (4.0.1)
Removing nokogiri (1.6.0)
Removing uglifier (2.3.1)
Removing pg (0.17.0)
Removing json (1.8.0)
Removing mime-types (1.25)
Removing raindrops (0.12.0)
Removing actionpack (3.2.14)
Removing multi_json (1.8.0)
Removing uglifier (2.2.1)
Removing actionmailer (3.2.14)
Removing rails (4.0.1)
Removing turbolinks (1.3.1)
Removing rails (3.2.14)
Removing railties (3.2.14)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-12-12T07:21:34.932976 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/american_dream_home-37874daacff06fbb26eb8b84ee1f84a1.jpg
I, [2013-12-12T07:21:34.935188 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/cabin_style_dream_home-9987333105c1424b8fc9aaf7c1efbf07.jpg
I, [2013-12-12T07:21:34.937405 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/contemporary_dream_home-1e8e61d0591ec26a104029ab0e92906c.jpg
I, [2013-12-12T07:21:34.939250 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/csulb_logo-b94fb88ec35ebf0db98c07a4fa00e6ed.jpg
I, [2013-12-12T07:21:34.941295 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_corporate_building-c4adcb12e189ad0215568925af112601.png
I, [2013-12-12T07:21:34.943313 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_header_logo-66f7c71223c8377c2f56dd1261011a65.jpg
I, [2013-12-12T07:21:34.945011 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black-29edd8d4b49980a739dfdb52c2464007.png
I, [2013-12-12T07:21:34.946625 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black_2-d92244c141090ac417f460b7a9d2fbe2.png
rake aborted!
Unexpected token: name (side) (line: 10600, col: 22, pos: 329089)
Error
at new JS_Parse_Error (/tmp/execjs20131212-1556-dj66x9.js:2316:10736)
at js_error (/tmp/execjs20131212-1556-dj66x9.js:2316:10955)
at croak (/tmp/execjs20131212-1556-dj66x9.js:2316:18665)
at token_error (/tmp/execjs20131212-1556-dj66x9.js:2316:18802)
at unexpected (/tmp/execjs20131212-1556-dj66x9.js:2316:18890)
at semicolon (/tmp/execjs20131212-1556-dj66x9.js:2316:19363)
at simple_statement (/tmp/execjs20131212-1556-dj66x9.js:2316:21849)
at /tmp/execjs20131212-1556-dj66x9.js:2316:20090
at /tmp/execjs20131212-1556-dj66x9.js:2316:19536
at /tmp/execjs20131212-1556-dj66x9.js:2316:31209
(in /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/app/assets/javascripts/application.js)/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:68:in `extract_result'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:28:in `block in exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:27:in `exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:176:in `really_compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:100:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/uglifier_compressor.rb:25:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:197:in `block in evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/bundled_asset.rb:25:in `initialize'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `new'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:94:in `block in build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/caching.rb:58:in `cache_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:211:in `block in find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:257:in `benchmark'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:210:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:119:in `block in compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/rake/sprocketstask.rb:146:in `with_logger'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$
Does anyone have any idea about this one? Trying to deploy to heroku. I am able to do a successful launch to heroku but I suspect this warning is probably the reason I get the sorry something went wrong message. Any input on this would be appreciated. By the way I am thinking this is a Windows issue. To be honest this is my first crack at this and it's been interesting so far but if this is the nonsense I am going to deal with trying to develop on Windows I might as well get cracking on setting up a linux machine. I know there will be complications as well but who knows. I have installed and used it before but never for development. Any thoughts? Thanks!
Ruby 2.0.0
Rails 4.0.0
Windows 7 64
WARNINGS:
Removing Gemfile.lock because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
Just for reference here is the whole push to heroku:
c:\dev\project2>git push heroku master
Enter passphrase for key '/c/Users/vern/.ssh/id_rsa':
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 315 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.0)
Using bundler (1.3.2)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Using coffee-rails (4.0.1)
Using hike (1.2.3)
Using jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using mysql2 (0.3.14)
Using tilt (1.4.1)
Using sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rails_serve_static_assets (0.0.1)
Using rails_stdout_logging (0.0.3)
Using rails_12factor (0.0.2)
Using rdoc (3.12.2)
Using sass (3.2.12)
Using sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.1)
Using uglifier (2.3.1)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (9.55s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Asset precompilation completed (2.58s)
Cleaning assets
----->
WARNINGS:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
-----> Compiled slug size: 21.1MB
-----> Launching... done, v12
http://fast-lake-6950.herokuapp.com deployed to Heroku
To git#heroku.com:fast-lake-6950.git
c81423c..01c6a2d master -> master
your Gemfile.lock file likely contains
PLATFORMS
ruby
x86-mingw32
You need to remove
x86-mingw32
for it to play nicely with heroku. There may be lines in your Gemfile.lock that conflict with removing that, e.g. you might have installed a separate version of the mysql2 gem for windows.
mysql2 (0.3.11-x86-mingw32)
mysql2 (0.3.14)
you will likely need to remove the line that references the windows-only version of the gem. And for that to work, you may need to remove the line in your Gemfile that causes bundler to install that gem.
i got a really big problem. Just started learning ruby - everything is fine. But no searching for hours to find a solution to push on heroku. but no luck. please help me, (unfortunately on a Win7)
thanks a lot:
C:\Sites\code\omrails>git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the
list of known hosts.
Enter passphrase for key '/c/Users/mdz/.ssh/id_rsa':
Counting objects: 69, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (55/55), done.
Writing objects: 100% (69/69), 26.54 KiB | 0 bytes/s, done.
Total 69 (delta 5), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> WARNING: Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle -
-binstubs vendor/bundle/bin
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.0.4)
Installing i18n (0.6.1)
Installing multi_json (1.7.6)
Installing activesupport (3.2.13)
Installing builder (3.0.4)
Installing activemodel (3.2.13)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.5)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.3)
Installing tilt (1.4.1)
Installing sprockets (2.2.2)
Installing actionpack (3.2.13)
Installing mime-types (1.23)
Installing polyglot (0.3.3)
Installing treetop (1.4.14)
Installing mail (2.5.4)
Installing actionmailer (3.2.13)
Installing arel (3.0.2)
Installing tzinfo (0.3.37)
Installing activerecord (3.2.13)
Installing activeresource (3.2.13)
Using bundler (1.3.2)
Installing coffee-script-source (1.6.2)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.3)
Installing json (1.8.0)
Installing rdoc (3.12.2)
Installing thor (0.18.1)
Installing railties (3.2.13)
Installing coffee-rails (3.2.2)
Installing jquery-rails (3.0.1)
Installing rails (3.2.13)
Installing sass (3.2.9)
Installing sass-rails (3.2.6)
Installing sqlite3 (1.3.7)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native ex
tension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (
the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
--enable-local
--disable-local
Gem files will remain installed in /tmp/build_2bxzg0nyav6hg/vendor/bundle
/ruby/1.9.1/gems/sqlite3-1.3.7 for inspection.
Results logged to /tmp/build_2bxzg0nyav6hg/vendor/bundle/ruby/1.9.1/gems/
sqlite3-1.3.7/ext/sqlite3/gem_make.out
An error occurred while installing sqlite3 (1.3.7), and Bundler cannot co
ntinue.
Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby/Rails app
You can't use SQLite on Heroku, you'll have to use PostgreSQL. You can set it up to use PostgreSQL on Heroku but SQLite in development by putting the pg gem in a production group in your Gemfile, and sqlite in a development group, but Heroku recommends you use the same database in both your development and production environments.
I'm trying to deploy a PHP project using Capistrano. When I try to do a cap deploy, I get an error:
wes:/var/www/nipponpulse [svn:] → cap deploy
* executing `deploy'
** transaction: start
* executing `deploy:update_code'
executing locally: "svn info https://newcitymedia.svn.beanstalkapp.com/nippon_pulse/expressionengine -rHEAD"
/opt/local/bin/svn
* executing "svn checkout -q -r94 https://newcitymedia.svn.beanstalkapp.com/nippon_pulse/expressionengine /var/www/nipponpulse/releases/20091117150904 && (echo 94 > /var/www/nipponpulse/releases/20091117150904/REVISION)"
servers: ["192.168.2.42"]
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/nipponpulse/releases/20091117150904; true"
servers: ["192.168.2.42"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
Here's the recipe I'm using http://pastie.textmate.org/private/7mix7xhbf3ozwjskwt5orq. I'm using Snow Leopard and here's my list of gems (using sudo gem list --local):
actionmailer (2.3.4, 2.2.2, 1.3.6)
actionpack (2.3.4, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.4, 2.2.2, 1.15.6)
activeresource (2.3.4, 2.2.2)
activesupport (2.3.4, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
adamcooke-key-installer (1.1)
capistrano (2.5.9, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
defunkt-github (0.3.4)
dnssd (1.3.1, 1.3, 0.6.0)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
highline (1.5.1, 1.5.0)
hpricot (0.8.1, 0.6.164)
json_pure (1.1.9)
libxml-ruby (1.1.3, 1.1.2)
mongrel (1.1.5)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.2, 2.0.1, 1.1.1)
net-ssh (2.0.15, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
open4 (0.9.6)
rack (1.0.1, 1.0.0)
rails (2.3.4, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
RedCloth (4.2.2, 4.1.1)
ruby-openid (2.1.7, 2.1.2)
ruby-yadis (0.3.4)
rubygems-update (1.3.5)
rubynode (0.1.5)
sqlite3-ruby (1.2.5, 1.2.4)
termios (0.9.4)
vlad (2.0.0)
xmpp4r (0.5, 0.4)
When I run ruby -v I see this:
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
I'm not sure why it's failing. My experience with rails and ruby in general is slim to none, but I've used Capistrano in the past and it has worked on this machine. Is there something specific with Snow Leopard that I need to fix?
Edit: updated the error
Note that the error reads "exception while rolling back", which means that the error you're seeing occurred when Capistrano was already trying to rollback due to some other error. In other words, it's a red herring. If you can include the complete output of capistrano from the command in question, someone might be able to help you identify what really went wrong.
You should examine this error:
connection failed for: 192.168.2.42 (NoMethodError: private method `split' called for 42:Fixnum)
What host is this? Local? And try to check where the NoMethodError for split comes from.
You can also fire this cap command just to see if the destination server is the one not reachable:
cap invoke COMMAND='ls -l'