This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake install | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `initialize': Neither PUB key nor PRIV key:: not enough data (OpenSSL::PKey::RSAError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `run_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:121:in `put_rest' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/role.rb:249:in `save' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife/role_from_file.rb:32:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/application/knife.rb:110:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/knife:26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rake install | |
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `initialize': Neither PUB key nor PRIV key:: not enough data (OpenSSL::PKey::RSAError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `run_request' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:121:in `put_rest' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/role.rb:249:in `save' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife/role_from_file.rb:32:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/application/knife.rb:110:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/knife:26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log_level :info | |
log_location STDOUT | |
node_name 'zbelzer' | |
client_key '/root/.chef/zbelzer.pem' | |
validation_client_name 'chef-validator' | |
validation_key '/root/.chef/chef-validator.pem' | |
chef_server_url 'http://ec2-204-236-254-87.compute-1.amazonaws.com:4000' | |
cache_type 'BasicFile' | |
cache_options( :path => '/root/.chef/checksums' ) | |
cookbook_path [ './cookbooks', './site-cookbooks' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merb : worker (port 4000) ~ Starting Thin at port 4000 | |
merb : worker (port 4000) ~ Using Thin adapter on host 0.0.0.0 and port 4000. | |
merb : worker (port 4000) ~ Successfully bound to port 4000 | |
INFO: Compiling routes... (totally normal to see 'Cannot find resource model') | |
~ Loaded slice 'ChefServerApi' ... | |
~ Compiling routes... | |
~ Could not find resource model User | |
~ Could not find resource model Node | |
~ Could not find resource model Role | |
~ Could not find resource model Search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActiveSupport::TestCase | |
# Drop all columns after each test case. | |
def teardown | |
MongoMapper.database.collections.each do |coll| | |
coll.remove unless coll.name =~ /^system\./ | |
end | |
end | |
# Make sure that each test case has a teardown | |
# method to clear the db after each test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@ip-10-245-142-226:/var/www# chef-client | |
[Tue, 23 Mar 2010 19:21:44 +0000] INFO: Starting Chef Run | |
[Tue, 23 Mar 2010 19:21:48 +0000] INFO: Storing updated cookbooks/likeassets/recipes/appserver.rb in the cache. | |
[Tue, 23 Mar 2010 19:21:49 +0000] WARN: Missing gem 'right_aws' | |
[Tue, 23 Mar 2010 19:21:50 +0000] INFO: Setting up Rails app likeassets git@github.com:moneypools/rails @staging | |
[Tue, 23 Mar 2010 19:21:51 +0000] INFO: Ran bash[create_temp_git_ssh_key] successfully | |
[Tue, 23 Mar 2010 19:22:06 +0000] INFO: Ran ruby[create-new-local-repo] successfully | |
[Tue, 23 Mar 2010 19:22:06 +0000] INFO: Ran bash[delete_temp_git_ssh_key] successfully | |
[Tue, 23 Mar 2010 19:22:06 +0000] INFO: Setting owner to 33 for directory[/var/www/likeassets] | |
[Tue, 23 Mar 2010 19:22:06 +0000] INFO: Setting group to 33 for directory[/var/www/likeassets] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
desc 'Dumps your current schema and data from the database into a timestamped .sql dumpfile' | |
task :dump => :environment do | |
puts "Dumping schema and data from #{@data_reload_helper.db_name} to #{@data_reload_helper.dump_path}" | |
# -c Includes the column names in the insert statement. Important when rails reorders your columns on different machines | |
@data_reload_helper.mysqldump('--add-drop-table -c') | |
end | |
desc 'Dumps your current schema and data from the database into a timestamped, gzipped .sql dumpfile' | |
task :dump_deflated => ['dump', 'dump:deflate'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:440:in `load_missing_constant': uninitialized constant Delayed::Job (NameError) | |
from /var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing' | |
from /var/www/project/.bundle/gems/ts-delayed-delta-1.0.4/lib/thinking_sphinx/deltas/delayed_delta/job.rb:7 | |
from /var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' | |
from /var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' | |
from /var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in' | |
from /var/www/project/.bundle/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require' | |
from /var/www/project/.bundle/gems/ts-delayed-delta-1.0.4/lib/thinking_sphinx/deltas/delayed_delta.rb:5 | |
from /var/www/project/.bundle/environment.rb:251:in `require' | |
from /var/www/project/.bund |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setting up libxml-commons-external-java (1.3.04-2ubuntu1) ... | |
Setting up solr-common (1.4.0+ds1-1) ... | |
Setting up solr-jetty (1.4.0+ds1-1) ... | |
* Not starting jetty - edit /etc/default/jetty and change NO_START to be 0 (or comment it out). | |
Setting up chef-solr (0.8.8-3) ... | |
Creating vhost "/chef" ... | |
...done. | |
Creating user "chef" ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby code snippet: | |
def self.find_available(worker_name, limit = 6, max_run_time = Worker.max_run_time) | |
right_now = db_time_now | |
conditions = { | |
:run_at => {"$lte" => right_now}, | |
:limit => -limit, # In mongo, positive limits are 'soft' and negative are 'hard' | |
:failed_at => nil, | |
:sort => [['priority', 1], ['run_at', 1]] |
OlderNewer