Skip to content

Instantly share code, notes, and snippets.

View jnarowski's full-sized avatar

JP Narowski jnarowski

View GitHub Profile
#!/usr/bin/env rake
require 'resque/tasks'
require 'resque_scheduler/tasks'
task 'resque:setup' => :environment
task "resque:scheduler_setup" => :environment
require File.expand_path('../config/application', __FILE__)
Karmacrm3App::Application.load_tasks
curl -X GET "http://localhost:9200/contacts_development/_search?&pretty=true" -d '{"filter":{"and":[{"or":[{"and":[{"term":{"private":false}}]},{"and":[{"missing":{"field":"permissions.accessor_id"}},{"or":[{"terms":{"created_by_id":[10734],"user_id":[10734]}}]}]},{"and":[{"terms":{"permissions.accessor_id":[10734],"permissions.accessor_type":["User"]}}]},{"and":[{"terms":{"permissions.accessor_id":[795,797],"permissions.accessor_type":["Group"]}}]}]},{"terms":{"organization_id":["951"]}}]},"size":20,"from":0,"sort":[{"created_at":"desc"}]}'
{
"filter": {
"and": [
{
"or": [
{
"and": [
{
"term": {
"private": false
2.2G /usr
7.1G /db/mysql/5.5/data/karma1_legacy
36G /db/mysql/5.5/data
36G /db/mysql/5.5
36G /db/mysql
36G /db
template "/data/#{app}/shared/config/resque_#{count}.conf" do
owner node[:owner_name]
group node[:owner_name]
mode 0644
source "resque_wildcard.conf.erb"
end
No such file or directory - getcwd
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/template/resolver.rb:221:in `expand_path'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/template/resolver.rb:221:in `initialize'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/template/resolver.rb:251:in `new'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/template/resolver.rb:251:in `instances'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/lookup_context.rb:16:in `<class:LookupContext>'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/lookup_context.rb:12:in `<module:ActionView>'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/lookup_context.rb:5:in `<top (required)>'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/actionpack-3.2.11/lib/action_view/base.rb:206:in `initialize'
/dat
# #
# # Cookbook Name:: resque
# # Recipe:: default
# #
# if ['solo', 'util'].include?(node[:instance_role])
# unless node[:name].include?("elasticsearch_")
# execute "install resque gem" do
# command "gem install resque redis redis-namespace yajl-ruby -r"
# not_if { "gem list | grep resque" }
# end
[Sat, 08 Jun 2013 23:06:58 +0000] INFO: Starting Chef Solo Run
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/node.rb:180:in `method_missing': Attribute default is not defined! (ArgumentError)
from /etc/chef-custom/recipes/cookbooks/sidekiq/attributes/default.rb:6:in `from_file'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:73:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `each'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/compile.rb:61:in `load_attributes'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:107:in `each'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:106:in `each_value'
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-
#!/bin/sh
#
# /engineyard/bin/sidekiq
#
# Author: Jim Neath (jneath@engineyard.com)
#
# must be root
if [[ "$(whoami)" != "root" ]]; then
+ 1m 08s ~> Setting ownership to deploy:deploy
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/psych-1.3.4/lib/psych.rb:96: warning: already initialized constant VERSION
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/psych-1.3.4/lib/psych.rb:99: warning: already initialized constant LIBYAML_VERSION
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
/usr/bin/ruby19 /data/karma2/releases/20140226061235/ey_bundler_binstubs/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
rake aborted!
Command failed with status (): [/usr/bin/ruby19 /data/karma2/releases/2014...]
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/turbo-sprockets-rails3-0.3.5/lib/turbo-sprockets/tasks/assets.rake:24:in `ruby_rake_task'
/data/karma2/shared/bundled_gems/ruby/1.9.1/gems/turbo-sprockets-rails3-0.3.5/li