Skip to content

Instantly share code, notes, and snippets.

@tarky
tarky / gist:c76b11e4006b94f5612e
Created November 15, 2014 04:07
Uniconrn doesnt start
[2014-11-15T03:37:10.372836 #5080] INFO -- : Refreshing Gem list
/home/deploy/.bundler/inq/ruby/2.1.0/gems/execjs-2.2.2/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/execjs-2.2.2/lib/execjs.rb:5:in `<module:ExecJS>'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/execjs-2.2.2/lib/execjs.rb:4:in `<top (required)>'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activesupport-4.2.0.beta2/lib/active
[2014-11-15T10:28:20+00:00] INFO: Processing gem_package[berkshelf] action install (opsworks_berkshelf::install line 36)
================================================================================
Error executing action `install` on resource 'gem_package[berkshelf]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
@tarky
tarky / gist:46bb8783e06ef537acda
Created November 20, 2014 01:56
bundle install from chef recipe
==> default: ================================================================================
==> default: Error executing action `run` on resource 'execute[cd /srv/www/inq/current; /usr/local/bin/bundle install --path /home/deploy/.bundler/inq]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of cd /srv/www/inq/current; /usr/local/bin/bundle install --path /home/deploy/.bundler/inq ----
==> default: STDOUT:
@tarky
tarky / gist:5e114626c42387b2c7f2
Created December 2, 2014 05:23
Erro when `bundle exec chromedriver`
bundle exec chromedriver
"/root/.chromedriver-helper/linux64"
--2014-12-02 05:17:23-- http://chromedriver.storage.googleapis.com/2.9/chromedriver_linux64.zip
Resolving chromedriver.storage.googleapis.com (chromedriver.storage.googleapis.com)... 173.194.38.106, 173.194.38.108, 173.194.38.107, ...
Connecting to chromedriver.storage.googleapis.com (chromedriver.storage.googleapis.com)|173.194.38.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2264246 (2.2M) [application/zip]
Saving to: ‘chromedriver_linux64.zip’
100%[========================================================================>] 2,264,246 7.79MB/s in 0.3s
@tarky
tarky / gist:7efa153a8e5134900628
Created December 4, 2014 03:16
vim align usage
・select the targent lines in visualmode
・enter \tsp
http://nanasi.jp/articles/vim/align/align_vim_mapt.html
@tarky
tarky / gist:352559961bd5c8adf737
Created December 6, 2014 04:06
When using "database" comunity cookbook
2014-12-06T01:58:58+00:00] INFO: HTTP Request Returned 412 Precondition Failed: Could not satisfy version constraints for: mysql
================================================================================
Error Resolving Cookbooks for Run List:
================================================================================
Missing Cookbooks:
------------------
Could not satisfy version constraints for: mysql
@tarky
tarky / gist:0d3634e5ad6955531c1d
Created December 6, 2014 14:57
Error while migrate
==> default: ================================================================================
==> default: Error executing action `deploy` on resource 'deploy[/srv/www/inq]'
==> default: ================================================================================
==> default:
==> default:
==> default: Chef::Exceptions::Exec
==> default: ----------------------
==> default: if [ -f Gemfile ]; then echo 'OpsWorks: Gemfile found - running migration with bundle exec' && /usr/local/bin/bundle exec /usr/local/bin/rake db:migrate; else echo 'OpsWorks: no Gemfile - running plain migrations' && /usr/local/bin/rake db:migrate; fi returned 1, expected 0
==> default:
==> default:
@tarky
tarky / gist:7bc0302e7808ed0bcfe3
Created December 6, 2014 15:09
Error when postgres::ruby
==> default:
==> default: ================================================================================
==> default: Error executing action `install` on resource 'chef_gem[pg]'
==> default: ================================================================================
==> default:
==> default:
==> default: Bundler::GemfileNotFound
==> default: ------------------------
==> default: Could not locate Gemfile
==> default:
@tarky
tarky / gist:0cceb06836c3c23b2ba1
Created December 6, 2014 15:21
I heard i dont need create database, but ...
# bundle exec rspec spec
/home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/postgresql_adapter.rb:647:in `rescue in connect': FATAL: database "inq_test" does not exist (ActiveRecord::NoDatabaseError)
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/postgresql_adapter.rb:637:in `connect'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/postgresql_adapter.rb:239:in `initialize'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection'
from /home/deploy/.bundler/inq/ruby/2.1.0/gems/activerecord-4.2.0.beta2/lib/active_record/connection_adapters/abstract/connection_pool.rb:435:in `new_connect
@tarky
tarky / gist:7802a9d8d5599459eb4a
Created December 11, 2014 04:41
vagrant-opsworks output
$ rake virtualbox-build
virtualbox-iso output will be in this color.
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: http://releases.ubuntu.com/14.04/ubuntu-14.04-server-amd64.iso
virtualbox-iso: Download progress: 0%
virtualbox-iso: Download progress: 0%
virtualbox-iso: Download progress: 0%