Skip to content

Instantly share code, notes, and snippets.

View aqt01's full-sized avatar
🎯
Focusing

Lowell Tarek Abbott Vidal aqt01

🎯
Focusing
View GitHub Profile
@aqt01
aqt01 / err on ubuntu 12.04 installing dogwood.3
Created November 28, 2016 17:56
err on ubuntu 12.04 installing dogwood.3
Mismatch in number of replacements (base <prefix2=s,d>) for <__l1=S/D>. Ignoring.
Mismatch in number of replacements (base <prefix2=s,d>) for <__l1=S/D>. Ignoring.
Mismatch in number of replacements (base <prefix2c=c,z>) for <__l1=C/Z>. Ignoring.
Mismatch in number of replacements (base <prefix2c=c,z>) for <__l1=C/Z>. Ignoring.
f2py options: []
f2py: build/src.linux-x86_64-2.7/scipy/linalg/flapack.pyf
Reading fortran codes...
Reading file 'build/src.linux-x86_64-2.7/scipy/linalg/flapack.pyf' (format:free)
Line #5993 in build/src.linux-x86_64-2.7/scipy/linalg/flapack.pyf:" char*,char*,char*,int*,int*,complex_float*,int*,complex_float*,int*,float*,float*,int*,int*,float*,int*,float*,complex_float*,int*,complex_float*,float*,int*,int*,int*"
crackline:3: No pattern for line
@aqt01
aqt01 / log_paver_i18n_robot_pull
Created November 29, 2016 19:41
Err configuring openedx to use i18n with latin american spanish (es_419)
....
Pulling translations for resource open-edx-releases.release-eucalyptus-js (source: conf/locale/en/LC_MESSAGES/djangojs.po)
-> es_419: conf/locale/es_419/LC_MESSAGES/djangojs.po
Done.
---> pavelib.i18n.i18n_extract
---> pavelib.prereqs.install_prereqs
NO_PREREQ_INSTALL is set, not installing prereqs
---> pavelib.i18n.i18n_validate_gettext
/usr/bin/xgettext
---> pavelib.assets.compile_coffeescript
@aqt01
aqt01 / log.txt
Created December 3, 2016 19:07
Heroku log error and Procfile configuration
>heroku logs
/home/shadowrain/.heroku/client/lib/heroku/jsplugin.rb:119: warning: Insecure world writable dir /opt/android-sdk in PATH, mode 040777
2016-12-03T06:46:07.341875+00:00 app[web.1]: > babel-node tools/run start
2016-12-03T06:46:07.341876+00:00 app[web.1]:
2016-12-03T06:46:07.347512+00:00 app[web.1]: sh: 1: babel-node: not found
2016-12-03T06:46:07.360873+00:00 app[web.1]: npm ERR! Linux 3.13.0-100-generic
2016-12-03T06:46:07.351863+00:00 app[web.1]:
2016-12-03T06:46:07.361168+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "run" "start"
2016-12-03T06:46:07.361515+00:00 app[web.1]: npm ERR! node v5.9.1
2016-12-03T06:46:07.361821+00:00 app[web.1]: npm ERR! npm v3.7.3
@aqt01
aqt01 / deleting course
Created December 5, 2016 18:37
Trying to delete courses using the command line
sudo -u edxapp /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py cms --settings=aws delete_course lol/lol/lol
$ sudo -u edxapp /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py cms --settings=aws delete_course lol/lol/lol
2016-12-05 13:34:46,550 WARNING 11053 [py.warnings] importlib.py:9 - /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/require/helpers.py:4: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
2016-12-05 13:34:52,565 INFO 11053 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
CommandError: Course with 'lol/lol/lol' key not found.
TASK: [edxapp | install python private requirements] **************************
skipping: [127.0.0.1] => (item=/edx/app/edxapp/edx-platform/requirements/edx/edx-private.txt)
TASK: [edxapp | install python extra requirements] ****************************
skipping: [127.0.0.1]
TASK: [edxapp | install CAS attribute module] *********************************
skipping: [127.0.0.1]
TASK: [edxapp | install sandbox requirements into regular venv] ***************
@aqt01
aqt01 / log
Created December 16, 2016 20:26
edx-ansible crash error on edxapp with paver
TASK: [edxapp | Remove and recreate the staticfiles directory so nothing stale can exist] ***
changed: [127.0.0.1] => (item=absent)
changed: [127.0.0.1] => (item=directory)
TASK: [edxapp | gather {{ item }} static assets with paver] *******************
failed: [127.0.0.1] => (item=lms) => {"changed": true, "cmd": ["/edx/bin/edxapp-update-assets-lms"], "delta": "0:00:19.068285", "end": "2016-12-16 20:23:54.830782", "item": "lms", "rc": 1, "start": "2016-12-16 20:23:35.762497", "warnings": []}
stderr: npm WARN package.json edx@0.1.0 No repository field.
2016-12-16 16:23:53,741 INFO 1347 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
File "manage.py", line 112, in <module>
@aqt01
aqt01 / analytics_single.yml
Last active May 8, 2017 17:09
analytics_single.yml log
``` TASK: [analytics_api | install application requirements] **********************
ok: [localhost] => (item=base.txt)
ok: [localhost] => (item=production.txt)
ok: [localhost] => (item=optional.txt)
TASK: [analytics_api | migrate] ***********************************************
failed: [localhost] => {"changed": true, "cmd": "DB_MIGRATION_USER='????' DB_MIGRATION_PASS='???' /edx/app/analytics_api/venvs/analytics_api/bin/python ./manage.py migrate --noinput", "delta": "0:00:00.764840", "end": "2017-01-02 20:19:06.217027", "rc": 1, "start": "2017-01-02 20:19:05.452187", "warnings": []}
stderr: Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
@aqt01
aqt01 / hadoop_trace.log
Created January 10, 2017 15:19
Err while running remote-task --host localhost --user ubuntu --remote-name analyticstack --skip-setup --wait ImportEnrollmentsIntoMysql --interval 2017-01-01-2017-01-10 --verbose --local-scheduler --overwrite-n-days 12
(pipeline) ubuntu@ip:~/edx-analytics-pipeline$ remote-task --host localhost --user ubuntu --remote-name analyticstack --skip-setup --wait ImportEnrollmentsIntoMysql --interval 2017-01-01-2017-01-10 --verbose --local-scheduler --overwrite-n-days 12
Parsed arguments = Namespace(branch='release', extra_repo=None, host='localhost', job_flow_id=None, job_flow_name=None, launch_task_arguments=['ImportEnrollmentsIntoMysql', '--interval', '2017-01-01-2017-01-10', '--local-scheduler', '--overwrite-n-days', '12'], log_path=None, override_config=None, package=None, private_key=None, remote_name='analyticstack', repo=None, secure_config=None, secure_config_branch=None, secure_config_repo=None, shell=None, skip_setup=True, sudo_user='hadoop', user='ubuntu', vagrant_path=None, verbose=True, virtualenv_extra_args=None, wait=True, wheel_url=None, workflow_profiler=None)
Running commands from path = /home/ubuntu/pipeline/share/edx.analytics.tasks
Remote name = analyticstack
Running command = ['ssh', '-tt', '-o', 'ForwardAge
@aqt01
aqt01 / gist:61f947e22b94bccf50073cb71f478168
Created January 19, 2017 16:57
Running LastCountryOfUser
969637439385692816-temp-2017-01-19T16-33-41.818263
2017-01-19 16:33:45,906 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:45 WARN streaming.StreamJob: -file option is deprecated, please use generic option -files instead.
2017-01-19 16:33:49,043 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:49 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
2017-01-19 16:33:49,544 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:49 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
2017-01-19 16:33:52,698 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:52 INFO mapred.FileInputFormat: Total input paths to process : 1
2017-01-19 16:33:52,879 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:52 INFO mapreduce.JobSubmitter: number of splits:2
2017-01-19 16:33:52,887 INFO 10701 [luigi-interface] hadoop.py:273 - 17/01/19 16:33:52 INFO Configuration.deprecation: mapred.job.name is deprecated. Instead, use mapreduce.job.name
2017-01-19 16:
@aqt01
aqt01 / LastCountryOfUser task error
Created January 19, 2017 17:45
Error log of LastCountryOfUser task qirh fwoloxrion-srerror
remote-task LastCountryOfUser --n-reduce-tasks 1 --host localhost --remote-name analyticstack --user hadoop --repo https://github.com/codetigerco/edx-analytics-pipeline --branch stage_edxapp --local-scheduler --verbose --wait --overwrite --interval-start 2017-01-01 --overwrite-n-days 16 --geolocation-data GeoIP.dat --override-config $HOME/edx-analytics-pipeline/config/devstack.cfg --skip-setup
Parsed arguments = Namespace(branch='stage_edxapp', extra_repo=None, host='localhost', job_flow_id=None, job_flow_name=None, launch_task_arguments=['LastCountryOfUser', '--n-reduce-tasks', '1', '--local-scheduler', '--overwrite', '--interval-start', '2017-01-01', '--overwrite-n-days', '16', '--geolocation-data', 'GeoIP.dat'], log_path=None, override_config='/edx/app/hadoop/edx-analytics-pipeline/config/devstack.cfg', package=None, private_key=None, remote_name='analyticstack', repo='https://github.com/codetigerco/edx-analytics-pipeline', secure_config=None, secure_config_branch=None, secure_config_repo=None, shel