Skip to content

Instantly share code, notes, and snippets.

[eklein@bld-engbld-01 ~]$ rvm --version
rvm 1.13.4 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
[eklein@bld-engbld-01 ~]$ rvm list
rvm rubies
jruby-1.6.5 [ amd64 ]
jruby-1.6.7 [ amd64 ]
[eklein@bld-engbld-02 ~]$ sudo rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9219 100 9219 0 0 19312 0 --:--:-- --:--:-- --:--:-- 19312
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1044k 100 1044k 0 0 557k 0 0:00:01 0:00:01 --:--:-- 881k
Upgrading the RVM installation in /usr/local/rvm/
export rvm_environments_path="${HOME}/.rvm/environments"
export rvm_gems_path="${HOME}/.rvm/gems"
export rvm_gems_cache_path="${HOME}/.rvm/gems_cache"
export rvm_wrappers_path="${HOME}/.rvm/wrappers"
[buildslave-1@bld-engbld-05 ~]$ cat .rvmrc
export rvm_environments_path="${HOME}/.rvm/environments"
export rvm_gems_path="${HOME}/.rvm/gems"
export rvm_gems_cache_path="${HOME}/.rvm/gems_cache"
export rvm_wrappers_path="${HOME}/.rvm/wrappers"
export rvm_archives_path="${HOME}/.rvm/archives"
export rvm_bin_path="${HOME}/.rvm/bin"
export rvm_log_path="${HOME}/.rvm/log"
export rvm_repos_path="${HOME}/.rvm/repos"
export rvm_rubies_path="${HOME}/.rvm/rubies"
Database file /home/buildslave-2/.rvm/user/db does not exist.
ruby-1.8.7-p352 is not installed.
Database file /home/buildslave-2/.rvm/user/db does not exist.
Installing Ruby from source to: /home/buildslave-2/.rvm/rubies/ruby-1.8.7-p352, this may take a while depending on your cpu(s)...
ruby-1.8.7-p352 - #fetching
[buildslave-2@bld-engbld-06 ~]$ find ${HOME}/.rvm/user
/home/buildslave-2/.rvm/user
/home/buildslave-2/.rvm/user/installs
[Mon Aug 13 11:35:44 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug 13 11:35:45 2012] [error] Unable to configure X.509 CRL storage for certificate revocation
[Mon Aug 13 11:35:45 2012] [error] SSL Library Error: 218570907 error:0D07209B:asn1 encoding routines:ASN1_get_object:too long
[Mon Aug 13 11:35:45 2012] [error] SSL Library Error: 218529894 error:0D068066:asn1 encoding routines:ASN1_CHECK_TLEN:bad object header
[Mon Aug 13 11:35:45 2012] [error] SSL Library Error: 218595386 error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
[Mon Aug 13 11:35:45 2012] [error] SSL Library Error: 151470093 error:0907400D:PEM routines:PEM_X509_INFO_read_bio:ASN1 lib
[Mon Aug 13 11:35:45 2012] [error] SSL Library Error: 185090057 error:0B084009:x509 certificate routines:X509_load_cert_crl_file:PEM lib
Trying to run chef-solo to bootstrap chef-server on OEL 6.2.. I installed chef-client via the omnibus installer.
I went through and modified all the recipes to include support for the oracle platform type, but now i'm getting a ruby error:
[2012-09-08T10:51:32-06:00] INFO: *** Chef 10.14.0 ***
[2012-09-08T10:51:33-06:00] INFO: Setting the run_list to ["recipe[chef-server::rubygems-install]"] from JSON
[2012-09-08T10:51:33-06:00] INFO: Run List is [recipe[chef-server::rubygems-install]]
[2012-09-08T10:51:33-06:00] INFO: Run List expands to [chef-server::rubygems-install]
[2012-09-08T10:51:33-06:00] INFO: Starting Chef Run for bld-chefserver-01.f4tech.com
[2012-09-08T10:51:33-06:00] INFO: Running start handlers
Total Accesses: 2061
Total kBytes: 13165
CPULoad: .0401932
Uptime: 5175
ReqPerSec: .398261
BytesPerSec: 2605.02
BytesPerReq: 6540.98
BusyWorkers: 1
IdleWorkers: 18
Scoreboard: ______________W____.............................................................................................................................................................................................................................................................................................................................................................................................
@eklein
eklein / gist:5823219
Created June 20, 2013 14:30
berks install JSON::ParserError
/Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `new'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `parse'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/lockfile.rb:39:in `load!'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/lockfile.rb:31:in `initialize'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/berksfile.rb:694:in `new'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/berksfile.rb:694:in `lockfile'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4