Skip to content

Instantly share code, notes, and snippets.

cat /var/chef/cache/chef-stacktrace.out
Generated at Mon Mar 26 17:53:32 +0000 2012
RuntimeError: Could not locate the chef-client bin in any known path. Please set the proper path by overriding node['chef_client']['bin'] in a role.
/var/chef/cache/cookbooks/chef-client/recipes/service.rb:38:in `from_file'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/var/chef/cache/cookbooks/chef-client/recipes/default.rb:20:in `from_file'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/chef-0.10.8/bin/../lib/chef/cookbook_version.rb:578:in `load_recipe'
108-166-96-237.static.cloud-ips.com GET http://rubygems.org/latest_specs.4.8.gz
108-166-96-237.static.cloud-ips.com 302 Moved Temporarily
108-166-96-237.static.cloud-ips.com GET http://production.s3.rubygems.org/latest_specs.4.8.gz
108-166-96-237.static.cloud-ips.com 200 OK
108-166-96-237.static.cloud-ips.com GET http://rubygems.org/quick/Marshal.4.8/ohai-0.6.12.gemspec.rz
108-166-96-237.static.cloud-ips.com 302 Moved Temporarily
108-166-96-237.static.cloud-ips.com GET http://production.cf.rubygems.org/quick/Marshal.4.8/ohai-0.6.12.gemspec.rz
108-166-96-237.static.cloud-ips.com 200 OK
108-166-96-237.static.cloud-ips.com GET http://rubygems.org/quick/Marshal.4.8/systemu-2.5.0.gemspec.rz
108-166-96-237.static.cloud-ips.com 302 Moved Temporarily
108-166-96-237.static.cloud-ips.com [Mon, 26 Mar 2012 17:53:32 +0000] ERROR: Running exception handlers
108-166-96-237.static.cloud-ips.com [Mon, 26 Mar 2012 17:53:32 +0000] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
108-166-96-237.static.cloud-ips.com [Mon, 26 Mar 2012 17:53:32 +0000] ERROR: Exception handlers complete
108-166-96-237.static.cloud-ips.com [Mon, 26 Mar 2012 17:53:32 +0000] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
108-166-96-237.static.cloud-ips.com [Mon, 26 Mar 2012 17:53:32 +0000] FATAL: RuntimeError: Could not locate the chef-client bin in any known path. Please set the proper path by overriding node['chef_client']['bin'] in a role.
@didip
didip / gist:2018847
Created March 12, 2012 00:25
What to do after upgrading Python
cd /tmp
# fix pip
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python /tmp/get-pip.py
# Fix setuptools
# Download the appropriate .egg from here: http://pypi.python.org/pypi/setuptools
curl -O http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
sudo python /tmp/setuptools-0.6c11-py2.7.egg
curl -O http://python-distribute.org/distribute_setup.py
/usr/bin/python2.6 distribute_setup.py
/usr/bin/easy_install-2.6:7: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import load_entry_point
# PyPy version: 1.6
# OSX Snow Leopard
# Virtualenv: 1.6.4
# Problem: os.py is actually located under pypy-env/lib-python/modified-2.7
Running virtualenv with interpreter /path/to/pypy/pypy-1.6/bin/pypy
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "/Library/Python/2.6/site-packages/virtualenv.py", line 1952, in <module>
@didip
didip / pypy-mysqldb-segfault.txt
Created August 2, 2011 18:55
PyPy MySQLdb segmentation fault report
Process: pypy [87651]
Path: /path/to/app/pypy/pypy-env/bin/pypy
Identifier: pypy
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [83336]
Date/Time: 2011-08-02 11:57:14.213 -0700
OS Version: Mac OS X 10.6.8 (10K540)
Report Version: 6
@didip
didip / tornado.database-error.pypy.txt
Created August 2, 2011 15:29
tornado.database error when running inside PyPy
Traceback (most recent call last):
File "app_main.py", line 53, in run_toplevel
File "./app.py", line 5, in <module>
import tornado.database
File "/path/to/app/pypy/pypy-env/site-packages/tornado/database.py", line 183, in <module>
CONVERSIONS = copy.deepcopy(MySQLdb.converters.conversions)
File "/path/to/app/pypy/pypy-c-jit-43780-b590cf6de419-osx64/lib-python/2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/path/to/app/pypy/pypy-c-jit-43780-b590cf6de419-osx64/lib-python/2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
@didip
didip / tornado-pypy-env-setup.sh
Created August 1, 2011 21:20
Downloading and Configuring PyPy under virtualenv
#!/bin/bash
#
# Convenience script for downloading and configuring pypy under virtualenv
#
# Dependencies:
# * pip install virtualenv
# Configure these variables to your liking...
project_name="my_tornado_project"