File "/tmp/tmpcpuV_zmako/main.html.py", line 253, in render_body__M_writer(filters.decode.utf8(self.body()))File "/tmp/tmpcpuV_zmako/dashboard.html.py", line 79, in render_bodycert_name_short = settings.CERT_NAME_SHORTFile "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/utils/functional.py", line 185, in innerreturn func(self._wrapped, *args)AttributeError: 'Settings' object has no attribute 'CERT_NAME_SHORT'
TASK: [edxapp | checkout edx-platform repo into {{edxapp_code_dir}}] **********
failed: [localhost] => {"failed": true, "item": ""}
msg: Failed to download remote objects and refs
FATAL: all hosts have already failed -- aborting
Hey David,Thanks for the help! When I ran the first command, I got a failure:TASK: [edxapp | checkout edx-platform repo into {{edxapp_code_dir}}] **********
failed: [localhost] => {"failed": true, "item": ""}
msg: Failed to download remote objects and refs
FATAL: all hosts have already failed -- aborting
sudo /edx/bin/update edx-platform master
sudo /edx/bin/update -v edx-platform master
Aside from python folders all over, I only have:/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/features/common.py/edx/app/edxapp/edx-platform/cms/envs/common.py/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/features/common.py/edx/app/edxapp/edx-platform/lms/djangoapps/instructor/features/common.py/edx/app/edxapp/edx-platform/lms/envs/common.pyI had to run an update to get the stanford themes to work; Yarko's patch wasn't applicable until I updated. It sounds like starting a new instance is going to be easiest, but then I'm not sure how to apply the patch.
# these will give you a simple path back:
mv rakefile rakefile-
mv rakelib/assets.rake rakelib/assets.rake-
mv cms/startup.py cms/startup.py-
# startup for studio will fail because paths to theme not found (even though not used);
# the full lms startup will solve this:
ln -s ../lms/startup.py cms/startup.py
curl https://raw.github.com/yarko/edx-platform/yarko/fix-rake-env-assets/rakelib/assets.rake > rakelib/assets.rake
TASK: [edxapp | checkout edx-platform repo into {{edxapp_code_dir}}] **********
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p /tmp/ansible-1394999332.03-9459190570979 && chmod a+rx /tmp/ansible-1394999332.03-9459190570979 && echo /tmp/ansible-1394999332.03-9459190570979']
<localhost> REMOTE_MODULE git dest=/edx/app/edxapp/edx-platform repo=https://github.com/edx/edx-platform.git version=master
<localhost> PUT /tmp/tmplJsjNk TO /tmp/ansible-1394999332.03-9459190570979/git
<localhost> EXEC ['/bin/sh', '-c', 'chmod a+r /tmp/ansible-1394999332.03-9459190570979/git']
<localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=xptzziuniuqzqvuwtowagcimsbgrqupw] password: " -u edxapp /bin/sh -c '"'"'echo SUDO-SUCCESS-xptzziuniuqzqvuwtowagcimsbgrqupw; GIT_SSH=/tmp/edxapp_git_ssh.sh /usr/bin/python /tmp/ansible-1394999332.03-9459190570979/git'"'"''
<localhost> EXEC ['/bin/sh', '-c', 'rm -rf /tmp/ansible-1394999332.03-9459190570979/ >/dev/null 2>&1']
failed: [localhost] => {"failed": true, "item": ""}
msg: Failed to download remote objects and refs
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/ubuntu/edxapp.retry
localhost : ok=3 changed=0 unreachable=0 failed=1
-bash: rakefile: Permission denied
FYI I've been implementing the Stanford theme often in the past month with easy success.
Do note that a small changes required - see https://github.com/Stanford-Online/edx-theme/pull/4
- Yarko
Definitely. I'm noticing that the way I've been compiling manually (https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack#compile-assets-manually) isn't working; how are you causing the changes to take effect?For reference, my errors look like this:error lms/static/sass/application-extend1.scss (Line 23: File to import not found or unreadable: stanford.
And if I could edit that last post, I'd say "I tried Yarko's suggestion here: https://groups.google.com/d/msg/edx-code/pxIRTxe2LDE/HrOc10Lv_g8J", but I got an error about whitespace on one diff, and the other didn't apply:
On Monday, March 17, 2014 10:27:39 PM UTC-5, velcro wrote:Definitely. I'm noticing that the way I've been compiling manually (https://github.com/edx/configuration/wiki/edX-Managing-the-Production-Stack#compile-assets-manually) isn't working; how are you causing the changes to take effect?For reference, my errors look like this:error lms/static/sass/application-extend1.scss (Line 23: File to import not found or unreadable: stanford.This is because the SERVICE_VARIANT isn't set for rakefile & rakelib.That others report this works surprised me, so this means something is different between systems - some can set the extra-vars for ansible (which is what server-vars.yml is) and have lms be passed as the SERVICE_VARIANT, and some not (which is one of two points of #2387).Perhaps the root cause needs to dug into more. But the only way that sass and coffee could porcess properly without #2387 is if theme files were put somewhere within edx-platform (common, lms, or cms) - which would be bad form. To get the /edx/app/edxapp/theme path added to coffee and sass processing, the changes from #2387 to rakelib/assets must be in place.So - my question to the others: how on earth does your theme work using https://github.com/edx/edx-platform/wiki/Stanford-Theming ?For this to work from within server-vars.yml, the ansible playbooks would have to put this in a different place than /edx/app/edxapp/theme...(I'd have tested this tonight, and not asked the questions - but, sorry to say, my graphics card died, so I'm out a computer at the moment)
rake lms:gather_assets:awsrake cms:gather_assets:awsThat's exactly the error I've been getting.