Following is the terminal output showing the error that I get when I run that step with 'RAILS_ENV=production'.
ubuntu:/var/canvas$ RAILS_ENV=production bundle exec rake canvas:compile_assets
--> Starting: 'Making sure node_modules are up to date'
--> Finished: 'Making sure node_modules are up to date' in 7.686917473
--> Starting: 'compile css (including custom brands)'
compiled bundles/account_admin_tools.scss new_styles_high_contrast in 314 ms
compiled bundles/account_admin_tools.scss legacy_high_contrast in 866 ms
compiled bundles/account_admin_tools.scss new_styles_normal_contrast in 866 ms
compiled bundles/account_admin_tools.scss legacy_normal_contrast in 871 ms
compiled bundles/account_course_user_search.scss legacy_normal_contrast in 866 ms
compiled bundles/account_course_user_search.scss legacy_high_contrast in 866 ms
compiled bundles/account_course_user_search.scss new_styles_high_contrast in 866 ms
compiled bundles/account_course_user_search.scss new_styles_normal_contrast in 866 ms
compiled bundles/account_settings.scss legacy_high_contrast in 866 ms
compiled bundles/account_settings.scss new_styles_normal_contrast in 865 ms
compiled bundles/agenda_view.scss legacy_normal_contrast in 864 ms
compiled bundles/account_settings.scss legacy_normal_contrast in 866 ms
compiled bundles/account_settings.scss new_styles_high_contrast in 866 ms
compiled bundles/agenda_view.scss new_styles_normal_contrast in 865 ms
compiled bundles/alerts.scss legacy_high_contrast in 864 ms
compiled bundles/alerts.scss new_styles_normal_contrast in 864 ms
compiled bundles/alerts.scss legacy_normal_contrast in 864 ms
compiled bundles/agenda_view.scss legacy_high_contrast in 865 ms
compiled bundles/aligned_outcomes.scss legacy_normal_contrast in 863 ms
compiled bundles/aligned_outcomes.scss legacy_high_contrast in 864 ms
compiled bundles/aligned_outcomes.scss new_styles_normal_contrast in 863 ms
compiled bundles/aligned_outcomes.scss new_styles_high_contrast in 863 ms
compiled bundles/all_courses.scss legacy_normal_contrast in 863 ms
compiled bundles/all_courses.scss new_styles_normal_contrast in 863 ms
compiled bundles/all_courses.scss new_styles_high_contrast in 862 ms
compiled bundles/all_courses.scss legacy_high_contrast in 864 ms
compiled bundles/alerts.scss new_styles_high_contrast in 865 ms
compiled bundles/agenda_view.scss new_styles_high_contrast in 866 ms
compiled bundles/assignment_moderation.scss legacy_normal_contrast in 863 ms
compiled bundles/assignment_moderation.scss new_styles_normal_contrast in 863 ms
compiled bundles/assignment_moderation.scss legacy_high_contrast in 863 ms
compiled bundles/assignment_moderation.scss new_styles_high_contrast in 864 ms
compiled bundles/assignments_edit.scss legacy_normal_contrast in 1351 ms
compiled bundles/assignments_edit.scss legacy_high_contrast in 1351 ms
compiled bundles/assignments_edit.scss new_styles_normal_contrast in 1351 ms
compiled bundles/assignments_edit.scss new_styles_high_contrast in 1351 ms
compiled bundles/assignments.scss legacy_normal_contrast in 1350 ms
compiled bundles/assignments.scss legacy_high_contrast in 1350 ms
compiled bundles/attendance.scss legacy_high_contrast in 1350 ms
compiled bundles/assignments.scss new_styles_normal_contrast in 1351 ms
compiled bundles/attendance.scss legacy_normal_contrast in 1350 ms
compiled bundles/attendance.scss new_styles_normal_contrast in 1350 ms
compiled bundles/attendance.scss new_styles_high_contrast in 1350 ms
compiled bundles/assignments.scss new_styles_high_contrast in 1351 ms
compiled bundles/brand_config_index.scss legacy_normal_contrast in 1349 ms
compiled bundles/brand_config_index.scss new_styles_normal_contrast in 1350 ms
compiled bundles/brand_config_index.scss legacy_high_contrast in 1351 ms
compiled bundles/brand_config_index.scss new_styles_high_contrast in 1351 ms
compiled bundles/calendar2.scss legacy_high_contrast in 1350 ms
compiled bundles/calendar2.scss legacy_normal_contrast in 1351 ms
compiled bundles/calendar2.scss new_styles_normal_contrast in 1350 ms
compiled bundles/calendar2.scss new_styles_high_contrast in 1350 ms
compiled bundles/canvas_quizzes.scss legacy_normal_contrast in 1350 ms
compiled bundles/canvas_quizzes.scss new_styles_high_contrast in 1350 ms
compiled bundles/canvas_quizzes.scss legacy_high_contrast in 1350 ms
compiled bundles/canvas_quizzes.scss new_styles_normal_contrast in 1350 ms
brandable_css
warning bundles/common.scss new_styles_normal_contrast contains a url()
to: /images/inst_tree/node-drag.gif which doesn't exist on disk
brandable_css
warning bundles/common.scss new_styles_normal_contrast contains a url()
to: /images/mediaelement/skipback.png which doesn't exist on disk
compiled bundles/common.scss new_styles_normal_contrast in 2698 ms
brandable_css
warning bundles/common.scss new_styles_high_contrast contains a url()
to: /images/inst_tree/node-drag.gif which doesn't exist on disk
brandable_css
warning bundles/common.scss new_styles_high_contrast contains a url()
to: /images/mediaelement/skipback.png which doesn't exist on disk
brandable_css
warning bundles/common.scss legacy_normal_contrast contains a url() to:
/images/inst_tree/node-drag.gif which doesn't exist on disk
brandable_css
warning bundles/common.scss legacy_normal_contrast contains a url() to:
/images/mediaelement/skipback.png which doesn't exist on disk
brandable_css
warning bundles/common.scss legacy_high_contrast contains a url() to:
/images/inst_tree/node-drag.gif which doesn't exist on disk
brandable_css
warning bundles/common.scss legacy_high_contrast contains a url() to:
/images/mediaelement/skipback.png which doesn't exist on disk
compiled bundles/common.scss new_styles_high_contrast in 3523 ms
compiled bundles/common.scss legacy_normal_contrast in 3525 ms
compiled bundles/common.scss legacy_high_contrast in 3525 ms
error compiling sass { [Error: operation timed out after 4080 ms, 5 tries failure: Access Denied]
failure:
{ [AccessDenied: Access Denied]
cause:
{ [AccessDenied: Access Denied]
message: 'Access Denied',
code: 'AccessDenied',
region: null,
time: Thu Sep 08 2016 23:32:36 GMT+0000 (UTC),
requestId: '3E3D814327F4F09C',
extendedRequestId: '6GZwd0/BQN1C9ztWXVDOxUdWnWo7DkdnSIabLMlGEammp/3/2+sgNpkbEs4VHj4VwYYQ+BMIiio=',
cfId: undefined,
statusCode: 403,
retryable: false,
retryDelay: 32.41957230493426 },
isOperational: true,
code: 'AccessDenied',
region: null,
time: Thu Sep 08 2016 23:32:36 GMT+0000 (UTC),
requestId: '3E3D814327F4F09C',
extendedRequestId: '6GZwd0/BQN1C9ztWXVDOxUdWnWo7DkdnSIabLMlGEammp/3/2+sgNpkbEs4VHj4VwYYQ+BMIiio=',
cfId: undefined,
statusCode: 403,
retryable: false,
retryDelay: 32.41957230493426 },
code: 'ETIMEDOUT' } AccessDenied: Access Denied
at Request.extractError (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/services/s3.js:538:35)
at Request.callListeners (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:668:14)
at Request.transition (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:670:12)
at Request.callListeners (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
at Request.emit (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:668:14)
at Request.transition (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request.<anonymous> (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:38:9)
at Request.<anonymous> (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/request.js:670:12)
at Request.callListeners (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
at callNextListener (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/sequential_executor.js:95:12)
at IncomingMessage.onEnd (/var/canvas/node_modules/brandable_css/node_modules/aws-sdk/lib/event_listeners.js:211:11)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16 operation timed out after 4080 ms, 5 tries failure: Access Denied
rake aborted!
Error running BrandableCSS CLI: ./node_modules/.bin/brandable_css
/var/canvas/lib/brandable_css.rb:266:in `block in run_cli!'
/var/canvas/lib/brandable_css.rb:252:in `run_cli!'
/var/canvas/lib/brandable_css.rb:232:in `compile_all!'
/var/canvas/lib/tasks/css.rake:12:in `block (3 levels) in <top (required)>'
/var/canvas/lib/tasks/css.rake:12:in `block (2 levels) in <top (required)>'
/var/canvas/lib/tasks/canvas.rake:125:in `block (2 levels) in <top (required)>'
Tasks: TOP => css:compile
(See full trace by running task with --trace)
ubuntu:/var/canvas$
--