Error about Stanford Theme

394 views
Skip to first unread message

Douglas Tang

unread,
Sep 11, 2014, 3:51:44 AM9/11/14
to Ned Batchelder, edx-...@googlegroups.com
Hi, all

I had try again after run: sudo rm -rf  /edx/app/edxapp/themes/stanford

And then 

vagrant@precise64:~$ cd /edx/app/edxapp/themes/stanford/static/sass

vagrant@precise64:/edx/app/edxapp/themes/stanford/static/sass$ sudo nano _default.scss

vagrant@precise64:/edx/app/edxapp/themes/stanford/static/sass$ sudo mv _default.scss stanford.scss

vagrant@precise64:/edx/app/edxapp/themes/stanford/static/sass$ sudo nano stanford.scss

vagrant@precise64:/edx/app/edxapp/themes/stanford/static/sass$ cd

vagrant@precise64:~$ sudo /edx/bin/update edx-platform release

And It shows errors as below:

TASK: [edxapp | gather  static assets with paver] ***************************** 

failed: [localhost] => (item=lms) => {"changed": true, "cmd": "SERVICE_VARIANT=lms paver update_assets lms --settings=aws ", "delta": "0:01:12.697223", "end": "2014-09-11 07:22:31.211680", "item": "lms", "rc": 1, "start": "2014-09-11 07:21:18.514457"}

stderr: 2014-09-11 03:21:24,693 INFO 23451 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125

stdout: ---> pavelib.assets.update_assets

---> pavelib.prereqs.install_ruby_prereqs

---> pavelib.prereqs.install_node_prereqs

python manage.py lms --settings=aws preprocess_assets

xmodule_assets common/static/xmodule

---> pavelib.assets.compile_coffeescript

node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`

sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass

      error /edx/app/edxapp/themes/stanford/static/sass/stanford.scss (Line 47: Undefined variable: "$sans-serif".)

      write cms/static/sass/style-app-extend1.css

      write cms/static/sass/style-app-extend1.css.map

      write cms/static/sass/style-app.css

      write cms/static/sass/style-app.css.map

      write cms/static/sass/style-xmodule.css

      write cms/static/sass/style-xmodule.css.map

      write lms/static/sass/application-extend1.css

      write lms/static/sass/application-extend1.css.map

      write lms/static/sass/application-extend2.css

      write lms/static/sass/application-extend2.css.map

      write lms/static/sass/application.css

      write lms/static/sass/application.css.map

      write lms/static/sass/course.css

      write lms/static/sass/course.css.map

      write lms/static/sass/ie.css

      write lms/static/sass/ie.css.map



Captured Task Output:

---------------------


---> pavelib.assets.update_assets

---> pavelib.prereqs.install_ruby_prereqs

---> pavelib.prereqs.install_node_prereqs

python manage.py lms --settings=aws preprocess_assets

xmodule_assets common/static/xmodule

---> pavelib.assets.compile_coffeescript

node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`

sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass


Build failed running pavelib.assets.update_assets: Subprocess return code: 1

failed: [localhost] => (item=cms) => {"changed": true, "cmd": "SERVICE_VARIANT=cms paver update_assets cms --settings=aws ", "delta": "0:01:17.507753", "end": "2014-09-11 07:23:50.028910", "item": "cms", "rc": 1, "start": "2014-09-11 07:22:32.521157"}

stderr: 2014-09-11 03:22:38,851 INFO 24694 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125

2014-09-11 03:23:28,769 INFO 25679 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125

Traceback (most recent call last):

  File "manage.py", line 95, in <module>

    execute_from_command_line([sys.argv[0]] + django_args)

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line

    utility.execute()

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute

    self.fetch_command(subcommand).run_from_argv(self.argv)

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv

    self.execute(*args, **options.__dict__)

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute

    output = self.handle(*args, **options)

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle

    return self.handle_noargs(**options)

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 169, in handle_noargs

    collected = self.collect()

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/management/commands/collectstatic.py", line 126, in collect

    for original_path, processed_path, processed in processor:

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/storage.py", line 279, in post_process

    content = pattern.sub(converter, content)

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/storage.py", line 218, in converter

    hashed_url = self.url(unquote(joined_result), force=True)

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/storage.py", line 164, in url

    hashed_name = self.hashed_name(clean_name).replace('\\', '/')

  File "/edx/app/edxapp/venvs/edxapp/src/django-staticfiles/staticfiles/storage.py", line 127, in hashed_name

    (clean_name, self))

ValueError: The file 'themes/default/images/sunrise.jpg' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x482c410>.

stdout: ---> pavelib.assets.update_assets

---> pavelib.prereqs.install_ruby_prereqs

---> pavelib.prereqs.install_node_prereqs

python manage.py cms --settings=aws preprocess_assets

xmodule_assets common/static/xmodule

---> pavelib.assets.compile_coffeescript

node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`

sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass

      write lms/static/sass/application-extend1.css

      write lms/static/sass/application-extend1.css.map

      write lms/static/sass/application-extend2.css

      write lms/static/sass/application-extend2.css.map

      write lms/static/sass/application.css

      write lms/static/sass/application.css.map

      write lms/static/sass/course.css

      write lms/static/sass/course.css.map

python manage.py cms --settings=aws collectstatic --noinput > /dev/null



Captured Task Output:

---------------------


---> pavelib.assets.update_assets

---> pavelib.prereqs.install_ruby_prereqs

---> pavelib.prereqs.install_node_prereqs

python manage.py cms --settings=aws preprocess_assets

xmodule_assets common/static/xmodule

---> pavelib.assets.compile_coffeescript

node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`

sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass

python manage.py cms --settings=aws collectstatic --noinput > /dev/null


Build failed running pavelib.assets.update_assets: Subprocess return code: 1


FATAL: all hosts have already failed -- aborting


PLAY RECAP ******************************************************************** 

           to retry, use: --limit @/home/vagrant/edxapp.retry


localhost                  : ok=37   changed=13   unreachable=0    failed=1  


I had try all methord I find in the googlegroup but it still shows error.

While set  edxapp_use_custom_theme: false in  /edx/app/edx_ansible/server-vars.yml  Then run sudo /edx/bin/update edx-platform release 

Using the default theme it goes well, Could you tell me why and How to fix it?  Thanks in advance.


Regards,

Douglas

--
I shall return!

Kenneth Kinyanjui

unread,
Sep 11, 2014, 4:05:17 AM9/11/14
to edx-...@googlegroups.com, n...@edx.org
I am also facing the similar problem for the 3rd day now.

After following all the Docs and blogs showing how to install the Stanford online custom theme

I am running the Production Stack on AWS and even after doing what is required everything fails. at this play

TASK: [edxapp | gather  static assets with paver] *****************************
 failed: [localhost] => (item=lms) => {"changed": true, "cmd": "SERVICE_VARIANT=lms paver update_assets lms --settings=aws ", "delta": "0:01:57.982191", "end": "2014-09-10 14:15:53.523518", "item": "lms", "rc": 1, "start": "2014-09-10 14:13:55.541327"}
stderr: 2014-09-10 10:13:57,693 INFO 14689 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
2014-09-10 10:15:35,595 INFO 14790 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
ValueError: The file 'themes/default/images/sunrise.jpg' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x4902b50>.

stdout: ---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
python manage.py lms --settings=aws preprocess_assets
xmodule_assets common/static/xmodule
---> pavelib.assets.compile_coffeescript
node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`
sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass
      write cms/static/sass/style-app-extend1.css
      write cms/static/sass/style-app-extend1.css.map
      write cms/static/sass/style-app.css
      write cms/static/sass/style-app.css.map
      write cms/static/sass/style-xmodule.css
      write cms/static/sass/style-xmodule.css.map
      write lms/static/sass/application-extend1.css
      write lms/static/sass/application-extend1.css.map
      write lms/static/sass/application-extend2.css
      write lms/static/sass/application-extend2.css.map
      write lms/static/sass/application.css
      write lms/static/sass/application.css.map
      write lms/static/sass/course.css
      write lms/static/sass/course.css.map
      write lms/static/sass/ie.css
      write lms/static/sass/ie.css.map
python manage.py lms --settings=aws collectstatic --noinput > /dev/null



Captured Task Output:
---------------------

---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
---> pavelib.prereqs.install_node_prereqs
python manage.py lms --settings=aws preprocess_assets
xmodule_assets common/static/xmodule
---> pavelib.assets.compile_coffeescript
node_modules/.bin/coffee --compile `find /edx/app/edxapp/themes/stanford /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`
sass --style compressed --sourcemap --cache-location /tmp/sass-cache --load-path ./common/static/sass /edx/app/edxapp/themes/stanford/static/sass --update -E utf-8 */static /edx/app/edxapp/themes/stanford/static/sass
python manage.py lms --settings=aws collectstatic --noinput > /dev/null


Build failed running pavelib.assets.update_assets: Subprocess return code: 1
failed: [localhost] => (item=cms) => {"changed": true, "cmd": "SERVICE_VARIANT=cms paver update_assets cms --settings=aws ", "delta": "0:01:23.722387", "end": "2014-09-10 14:17:17.428706", "item": "cms", "rc": 1, "start": "2014-09-10 14:15:53.706319"}
stderr: 2014-09-10 10:15:55,079 INFO 14831 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
2014-09-10 10:17:04,415 INFO 14931 [dd.dogapi] dog_stats_api.py:66 - Initializing dog api to use statsd: localhost, 8125
ValueError: The file 'themes/default/images/sunrise.jpg' could not be found with <pipeline.storage.PipelineCachedStorage object at 0x53e0e50>.
           to retry, use: --limit @/home/ubuntu/edxapp.retry

localhost                  : ok=41   changed=14   unreachable=0    failed=1  

hsin han

unread,
Sep 13, 2014, 3:43:26 AM9/13/14
to edx-...@googlegroups.com, n...@edx.org


Kenneth Kinyanjui於 2014年9月11日星期四UTC+8下午4時05分17秒寫道:
hi,
i followed and stuck on the same problem
then i changed  'themes/default/images/sunrise.jpg' =>'themes/theme_name/images/sunrise.jpg'
and  i modified theme-header.html the same way 
paver update~
  • sudo -H -u edxapp bash
  • source /edx/app/edxapp/edxapp_env
  • cd /edx/app/edxapp/edx-platform
  • paver update_assets lms --settings=aws
everything works now
hope this helped

Hsin Han Liu

roger huang

unread,
Sep 16, 2014, 9:08:54 PM9/16/14
to edx-...@googlegroups.com, n...@edx.org
I think that is timezone problem.


First,try to check you system(ex.Linunx or ubuntu )timezone.
If the timezone is not represent for you country,please change.
Second, change timezone to you country on lms.env.json, cms.env.json and ./edx-platform/cms/envs/common.py.

Third, Compile assets manually
    • sudo -H -u edxapp bash

    • source /edx/app/edxapp/edxapp_env

    • cd /edx/app/edxapp/edx-platform

    • paver update_assets lms --settings=aws

    • paver update_assets cms --settings=aws

    roger

    Kenneth Kinyanjui於 2014年9月11日星期四UTC+8下午4時05分17秒寫道:
    Reply all
    Reply to author
    Forward
    0 new messages