Skip to content

Instantly share code, notes, and snippets.

View singingwolfboy's full-sized avatar
Available for contract work

David Baumgold singingwolfboy

Available for contract work
View GitHub Profile
@singingwolfboy
singingwolfboy / log.sh
Created February 4, 2015 18:48
aspen devstack fails
% vagrant destroy
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Destroying VM and associated drives...
==> default: Pruning invalid NFS exports. Administrator privileges will be required...
Password:
==> default: Removing hosts
==> default: Running cleanup tasks for 'shell' provisioner...
[db@mastodon:~/devstack]
% curl -O https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile
% Total % Received % Xferd Average Speed Time Time Time Current
@singingwolfboy
singingwolfboy / migrate-devstack.sh
Last active August 29, 2015 14:14
Open edX: Migrate Aspen to Birch RC2
# This script is for devstack
INTERACTIVE=true
while getopts "y" opt; do
case "$opt" in
y)
INTERACTIVE=false
esac
done
if [ "$INTERACTIVE" = true ] ; then
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="kphoen"
plugins=(git vi-mode virtualenvwrapper rbenv)
source $ZSH/oh-my-zsh.sh
if which gh > /dev/null; then
eval "$(gh alias -s zsh)";
elif which hub > /dev/null; then
eval "$(hub alias -s zsh)";
fi
CERTS_DOWNLOAD_URL: http://192.168.33.10:18090
CERTS_VERIFY_URL: http://192.168.33.10:18090
EDXAPP_LMS_NGINX_PORT: '80'
EDX_ANSIBLE_DUMP_VARS: true
2015-01-29 14:53:59,380 INFO 32731 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/bin/gunicorn", line 9, in <module>
load_entry_point('gunicorn==0.17.4', 'console_scripts', 'gunicorn')()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 36, in run
WSGIApplication("%(prog)s [OPTIONS] APP_MODULE").run()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 135, in run
Arbiter(self).run()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 59, in __init__
self.setup(app)
@singingwolfboy
singingwolfboy / gist:64d070c76c3648317ea9
Created January 29, 2015 15:09
Update from Aspen to master
% vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*******************************************************************
* _ __ __ *
* _ _| |\ \/ / This system is for the use of authorized *
vagrant@precise64:~$ cd /edx/app/edxapp/
vagrant@precise64:/edx/app/edxapp$ source venvs/edxapp/bin/activate
(edxapp)vagrant@precise64:/edx/app/edxapp$ cd edx-platform/
(edxapp)vagrant@precise64:/edx/app/edxapp/edx-platform$ ls
AUTHORS CONTRIBUTING.rst manage.pyc pavement.py setup.py
bin docs mongo_indexes.md pavement.pyc setup.pyc
Brewfile Gemfile node_modules pylintrc test_root
CHANGELOG.rst Gemfile.lock openedx README.md vendor_extra
cms LICENSE Open_edX.egg-info requirements
common lms package.json scripts
2014-10-28 14:31:05 [14528] [INFO] Worker exiting (pid: 14528)
2014-10-28 14:31:05,000 INFO 14528 [gunicorn.error] glogging.py:213 - Worker exiting (pid: 14528)
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/handlers.py", line 807, in emit
self._connect_unixsocket(self.address)
File "/usr/lib/python2.7/logging/handlers.py", line 745, in _connect_unixsocket
self.socket.connect(address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 111] Connection refused
@singingwolfboy
singingwolfboy / gist:a2ddff80f5dbb9a1dde9
Created January 27, 2015 21:45
Updating edx-platform via ansible
vagrant@precise64:/edx/app/edx_ansible/edx_ansible/playbooks/edx-east$ /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -i localhost, -c local edxapp.yml -e "@/edx/app/edx_ansible/server-vars.yml"
[WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.
PLAY [Deploy edxapp] **********************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Profiled execution.