Skip to content

Instantly share code, notes, and snippets.

@ringods
ringods / console.out
Created June 7, 2011 11:54
Knife github plugin returning error.
rdesmet@ringo-desktop:~/infrastructure/chef-repo$ knife cookbook github install fnichol/chef-jenkins -V
Installing jenkins from git://github.com/fnichol/chef-jenkins.git to /home/rdesmet/infrastructure/chef-repo/.chef/../cookbooks
Checking out the master branch.
Pristine copy branch (chef-vendor-jenkins) exists, switching to it.
ERROR: TypeError: can't convert nil into String
rdesmet@ringo-desktop:~/infrastructure/chef-repo$
@ringods
ringods / gist:968506
Created May 12, 2011 13:39
Output of "rvm get latest"
$ rvm get latest
Original installed RVM version:
rvm 1.5.2 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
rvm-<html>
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
165 165 0 165 0 0 397 0 --:--:-- --:--:-- --:--:-- 1050
@ringods
ringods / Branch cleanup
Created May 6, 2011 07:33
Sequence of knife cookbook site install
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git branch -d chef-vendor-rabbitmq_chef
Deleted branch chef-vendor-rabbitmq_chef (was 4c29a13).
rdesmet@ringo-desktop:~/Projects/amplidata/infrastructure/chef-repo$ git push origin :chef-vendor-rabbitmq_chef
To [email protected]:amplidata/chef-repo.git
- [deleted] chef-vendor-rabbitmq_chef
@ringods
ringods / QPackage4Builder.py
Created March 7, 2011 10:42
Build log with install not functioning correctly
# QPackage4Builder: QPackage building via SCons
from SCons.Script import *
from pymonkey.InitBase import q
def _qpackage(target, source, env):
name = env['name']
domain = env['domain']
version = env['version']
platforms = env['platforms']
@ringods
ringods / gist:822133
Created February 11, 2011 09:39
chef_package run with RubyGems 1.5.2
vagrant@vagrantup:~$ gem --version
1.5.2
vagrant@vagrantup:~$ sudo /etc/init.d/chef-client start
* Starting chef-client chef-client [ OK ]
vagrant@vagrantup:~$ tail -f /var/log/chef/client.log
[Fri, 11 Feb 2011 01:34:10 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Chef Run complete in 3.576031 seconds
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: cleaning the checksum cache
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Running report handlers
[Fri, 11 Feb 2011 01:34:14 -0800] INFO: Report handlers complete
@ringods
ringods / gist:820181
Created February 10, 2011 09:11
gem_package with binary always installs the gem...
[Thu, 10 Feb 2011 01:10:03 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Thu, 10 Feb 2011 01:10:06 -0800] INFO: Installing gem_package[/var/cache/chef/ohai-0.5.9.gem] version 0.5.9
[Thu, 10 Feb 2011 01:10:15 -0800] INFO: gem_package[/var/cache/chef/ohai-0.5.9.gem] sending restart action to service[chef-client] (delayed)
[Thu, 10 Feb 2011 01:10:15 -0800] FATAL: SIGTERM received, stopping
[Thu, 10 Feb 2011 01:10:15 -0800] ERROR: Running exception handlers
[Thu, 10 Feb 2011 01:10:15 -0800] ERROR: Exception handlers complete
[Thu, 10 Feb 2011 01:10:16 -0800] INFO: Daemonizing..
[Thu, 10 Feb 2011 01:10:16 -0800] INFO: Forked, in 8954. Priveleges: 0 0
[Thu, 10 Feb 2011 01:10:28 -0800] INFO: Starting Chef Run (Version 0.9.12)
[Thu, 10 Feb 2011 01:10:31 -0800] INFO: Installing gem_package[/var/cache/chef/ohai-0.5.9.gem] version 0.5.9
@ringods
ringods / gist:818558
Created February 9, 2011 14:28
gem_package with local file.
[default] [Wed, 09 Feb 2011 06:25:40 -0800] INFO: remote_file[/srv/chef/cache/ohai-0.5.9.gem]: Creating /srv/chef/cache/ohai-0.5.9.gem
[Wed, 09 Feb 2011 06:25:40 -0800] INFO: Setting mode to 644 for remote_file[/srv/chef/cache/ohai-0.5.9.gem]
[Wed, 09 Feb 2011 06:25:40 -0800] INFO: Installing gem_package[/srv/chef/cache/ohai-0.5.9.gem] version 0.5.9
[Wed, 09 Feb 2011 06:25:44 -0800] ERROR: gem_package[/srv/chef/cache/ohai-0.5.9.gem] (/srv/chef/cache/cookbooks/amplidata/recipes/default.rb:29:in `from_file') had an error:
undefined method `runtime_dependencies' for nil:NilClass
/usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb:181:in `tsort_each_child'
/usr/lib/ruby/1.8/tsort.rb:203:in `each_strongly_connected_component_from'
/usr/lib/ruby/1.8/tsort.rb:182:in `each_strongly_connected_component'
/usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb:175:in `each'
/usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb:175:in `tsort_each_node'
rdesmet@ringo-desktop:~/Projects/ruby/bv-chef-setup$ vagrant up
[default] Provisioning enabled with chef_server...
[default] Importing base box 'lucid-amd64'...
[default] Matching MAC address for NAT networking...
[default] Running any VM customizations...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] Creating shared folders metadata...
[default] Booting VM...
@ringods
ringods / gist:807800
Created February 2, 2011 15:02
Running ScmClientIT
2011-02-02 15:57:58 INFO - org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest - Profiler not present
2011-02-02 15:57:58 DEBUG - org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest - staticOncePerClassSetUp
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:94)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:196)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65)
log4j:ERROR Either File or DatePattern options are not set for appender [logfile].
@ringods
ringods / nexus.log
Created November 19, 2010 11:52
Retrieval of .meta/repository-metadata.xml for my repo type
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.s.w.PlexusConfi~ - Lazy initializing filters for pathPattern [/service/*/repositories/*/meta] and filterExpression [authcBasic,perms[nexus:repometa]]
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.s.w.PlexusConfi~ - Processing path [/service/*/repositories/*/meta] with value [authcBasic,perms[nexus:repometa]]
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.s.w.PlexusConfi~ - Applying path [/service/*/repositories/*/meta] to filter [authcBasic] with config [null]
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.s.w.PlexusConfi~ - Applying path [/service/*/repositories/*/meta] to filter [perms] with config [nexus:repometa]
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.s.w.PlexusConfi~ - Matched pathPattern [/service/*/repositories/*/meta] for requestURI [/service/local/repositories/qpackages.org/meta]. Utilizing corresponding
filter chain...
2010-11-19 12:23:14 DEBUG [c=1290165794555] - o.s.n.s.f.a.HttpVer