Skip to content

Instantly share code, notes, and snippets.

View rsim's full-sized avatar

Raimonds Simanovskis rsim

View GitHub Profile
[root@hand ~]# chef-client -l debug
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:111:in `[]': Cannot find a cookbook named passenger_apache2; did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata) (ArgumentError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:75:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/recipe.rb:64:in `include_recipe'
from /srv/chef/cache/cookbooks/rails/recipes/apps.rb:20:in `from_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:139:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:121:in `load_recipes'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:110:in `load_recipes'
@rsim
rsim / client
Created September 16, 2009 11:51
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Sending HTTP Request via GET to /roles/app-dbatasks
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Loading Recipe rails_apps
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Found recipe default in cookbook rails_apps
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: initial node[:apache][:listen_ports]=[]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Loading Recipe passenger_apache2::mod_rails via include_recipe
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: after passenger_apache2::mod_rails node[:apache][:listen_ports]=[]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: after rails_apps recipe node[:apache][:listen_ports]=["8001"]
[Wed, 16 Sep 2009 14:43:54 +0300] DEBUG: Converging node hand_alise_lv
{
"name": "app-dbatasks",
"default_attributes": {
"apache": {
"listen_ports": [
]
},
"rails": {
"active_applications": {
include_recipe "passenger_apache2::mod_rails"
if node[:rails][:active_applications]
node[:rails][:active_applications].each do |app, confs|
# confs = [confs] unless confs.is_a?(Array)
rails_app = node[:rails][:applications][app]
if rails_app[:rails_version]
$ otool -L /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so
/usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 124.1.1)
libicuuc.43.dylib (compatibility version 43.0.0, current version 43.1.0)
../lib/libicudata.43.1.dylib (compatibility version 43.0.0, current version 43.1.0)
libicui18n.43.dylib (compatibility version 43.0.0, current version 43.1.0)
Darwin_DBG.OBJ/libjs.dylib (compatibility version 0.0.0, current version 0.0.0)
$ couchdb
sh: line 0: exec: crypto_drv: not found
=INFO REPORT==== 2-Oct-2009::15:44:44 ===
application: crypto
exited: {shutdown,{crypto_app,start,[normal,[]]}}
type: temporary
Apache CouchDB 0.9.1 (LogLevel=info) is starting.
{"init terminating in do_boot","dlopen(/usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so, 2): Symbol not found: _driver_alloc\n Referenced from: /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so\n Expected in: flat namespace\n in /usr/local/Cellar/couchdb/0.9.1/lib/couchdb/erlang/lib/couch-0.9.1/priv/lib/couch_erl_driver.so"}
$ ls -la /usr/local/lib/erlang/lib/crypto-1.6.1/priv/lib
total 64
drwxr-xr-x 3 raymond staff 102 Oct 2 00:35 ./
drwxr-xr-x 4 raymond staff 136 Oct 2 00:35 ../
-r--r--r-- 1 raymond staff 30664 Oct 2 00:35 crypto_drv.so
$ erl
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
Eshell V5.7.3 (abort with ^G)
1> application:load(crypto).
ok
2> crypto:start().
{error,{shutdown,{crypto_app,start,[normal,[]]}}}
3>
=INFO REPORT==== 2-Oct-2009::15:57:00 ===
require 'brewkit'
class Couchdb <Formula
@url='http://apache.multihomed.net/couchdb/0.9.1/apache-couchdb-0.9.1.tar.gz'
@homepage='http://couchdb.apache.org/'
@md5='9583efae5adfb3f9043e970fef825561'
depends_on 'spidermonkey'
depends_on 'icu4c'
depends_on 'erlang'
1) Failure:
test_reload_returns_assocition(AssociationProxyTest)
[./test/cases/associations_test.rb:188:in `test_reload_returns_assocition'
./test/cases/associations_test.rb:187:in `test_reload_returns_assocition'
/Users/raymond/rubygems/rails/activerecord/test/cases/../../lib/../../activemodel/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>]> expected but was
<[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>]>.