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 / 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 *
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)
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
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
@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
@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 / gist:7e13eda2d819c4ac7e7a
Created February 5, 2015 19:00
failure using a separate configuration repo
[db@mastodon:~/fullstack-migrate]
% echo $OPENEDX_RELEASE
named-release/aspen
[db@mastodon:~/fullstack-migrate]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aspen-fullstack-1'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: fullstack-migrate_default_1423162409088_59002
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
@singingwolfboy
singingwolfboy / gist:1ada2aed52ac0664a5ca
Created February 5, 2015 20:31
another migration failure
[db@mastodon:~/fullstack-migrate]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aspen-fullstack-1'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: fullstack-migrate_default_1423166159990_55615
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
Feb 5 20:50:31 precise64 [service_variant=lms][dd.dogapi][env:sandbox] INFO [precise64 15480] [dog_stats_api.py:
66] - Initializing dog api to use statsd: localhost, 8125
Feb 5 20:50:32 precise64 [service_variant=lms][xblock.plugin][env:sandbox] WARNING [precise64 15480] [plugin.py:138] - Unable to load XBlock 'course_info'
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 136, in load_classes
yield (class_.name, cls._load_class_entry_point(class_))
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 73, in _load_class_entry_point
class_ = entry_point.load()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 2087, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
@singingwolfboy
singingwolfboy / gist:88c6391903acc48890ed
Created February 13, 2015 16:20
Problem with Birch RC2 devstack install
% echo $OPENEDX_RELEASE
named-release/birch.rc2
[db@mastodon:~/devstack]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'lavash-devstack'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: devstack_default_1423844040266_27283
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...