Created
December 5, 2016 18:37
-
-
Save aqt01/7b7bd0f4d63f79358b674e461c602eea to your computer and use it in GitHub Desktop.
Trying to delete courses using the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
---- | |
$ sudo -u edxapp /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms dump_course_ids --settings=aws | |
Traceback (most recent call last): | |
File "/edx/app/edxapp/edx-platform/manage.py", line 111, in <module> | |
startup = importlib.import_module(edx_args.startup) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/edx/app/edxapp/edx-platform/lms/startup.py", line 9, in <module> | |
settings.INSTALLED_APPS # pylint: disable=pointless-statement | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__ | |
self._setup(name) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup | |
self._wrapped = Settings(settings_module) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__ | |
mod = importlib.import_module(self.SETTINGS_MODULE) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/edx/app/edxapp/edx-platform/lms/envs/aws.py", line 130, in <module> | |
ENV_TOKENS = json.load(env_file) | |
File "/usr/lib/python2.7/json/__init__.py", line 290, in load | |
**kw) | |
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads | |
return _default_decoder.decode(s) | |
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode | |
obj, end = self.raw_decode(s, idx=_w(s, 0).end()) | |
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode | |
obj, end = self.scan_once(s, idx) | |
ValueError: Expecting property name: line 237 column 9 (char 9223) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment