Blank Webpage after Production Installation

206 views
Skip to first unread message

Keyur Joshi

unread,
Feb 19, 2015, 10:00:27 AM2/19/15
to canvas-l...@googlegroups.com
Hi!
I did the production install of Canvas.
When I try to access the site, I get a blank page. The Canvas icon is visible next to the URL, but the page is blank.
I tried accessing the .html files in /var/canvas/public such as 404.html, as well as the .ico files like favicon.ico. I am able to do so, so I assume the apache server is running.
The 404.html file contains a link called 'login'. When I follow the link I again get a blank page.

Here is the output of ls in /var/canvas/public:

404.html               dimdim_welcome.html     facebook_success.html  font                        media_record          stylesheets_compiled
422.html               doc                     favicon-green.ico      ie-8-is-not-supported.html  optimized
500.html               drawing.html            favicon.ico            images                      partials
assets                 enable
-javascript.html  favicon-yellow.ico     javascripts                 robots.txt
blank_submission
.html  equella_cancel.html     find.png               loading_submission.html     simple_response.json
_crossdomain
.xml       equella_success.html    flash                  locales                     stylesheets


It seems that some files are missing. Please help.

Rob Orton

unread,
Feb 19, 2015, 10:07:51 AM2/19/15
to canvas-l...@googlegroups.com
Did you compile assets?

Try to run the following commands from the canvas directory. 
npm install
bundle exec rake canvas:compile_assets

I would also check through the production install guide. https://github.com/instructure/canvas-lms/wiki/Production-Start

-Rob
--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Keyur Joshi

unread,
Feb 19, 2015, 10:13:06 AM2/19/15
to canvas-l...@googlegroups.com
I did that. I followed the guide till the end of 'configure canvas with apache'. Then I started the website using the instructions at the bottom.

Graham Ballantyne

unread,
Feb 19, 2015, 10:33:26 AM2/19/15
to canvas-l...@googlegroups.com
What are your logs telling you (both Apache and canvas (canvas/logs/production.log))?

— Graham

Keyur Joshi

unread,
Feb 19, 2015, 10:51:06 AM2/19/15
to canvas-l...@googlegroups.com
There is a lot of stuff in both logs. What in particular should I be looking for?

Graham Ballantyne

unread,
Feb 19, 2015, 10:58:01 AM2/19/15
to canvas-l...@googlegroups.com
Error messages, stack traces. Tail the logs (tail -f) while loading your page and see what comes up. 

Also, passenger is installed and running, right? What does passenger-status output?

— Graham

Keyur Joshi

unread,
Feb 19, 2015, 11:08:20 AM2/19/15
to canvas-l...@googlegroups.com
Here is the error in production.log:

NoMethodError (undefined method `file_namespace' for nil:NilClass):
  app/middleware/load_account.rb:36:in `
configure_for_root_account'
  app/middleware/load_account.rb:9:in `call'

  app
/middleware/request_context_generator.rb:34:in `call'
  app/middleware/prevent_non_multipart_parse.rb:32:in `
call'

and

  /var/canvas/lib/host_url.rb:78:in `file_host_with_shard'
  /var/canvas/lib/host_url.rb:84:in `
file_host'
  /var/canvas/lib/host_url.rb:115:in `is_file_host?'

 
/var/canvas/lib/authentication_methods.rb:89:in `masked_authenticity_token'
  /var/canvas/lib/authentication_methods.rb:97:in `
load_user'

passenger-status output:

Version : 4.0.37
Date    : 2015-02-19 21:34:13 +0530
Instance: 30607
----------- General information -----------
Max pool size : 6
Processes     : 1
Requests in top-level queue : 0

----------- Application groups -----------
/var/canvas#default:
 
App root: /var/canvas
 
Requests in queue: 0
 
* PID: 31521   Sessions: 0       Processed: 5       Uptime: 1h 11m 58s
    CPU
: 0%      Memory  : 322M    Last used: 3m 18s a



The actual error messages much larger, I posted what I thought are the relevant portions.

Keyur Joshi

unread,
Feb 19, 2015, 11:10:37 AM2/19/15
to canvas-l...@googlegroups.com
Sorry, I accidentally cut one of the error messages:
NoMethodError (undefined method `id' for nil:NilClass):
  /var/canvas/lib/host_url.rb:78:in `
file_host_with_shard'
  /var/canvas/lib/host_url.rb:84:in `file_host'

 
/var/canvas/lib/host_url.rb:115:in `is_file_host?'
  /var/canvas/lib/authentication_methods.rb:89:in `
masked_authenticity_token'
  /var/canvas/lib/authentication_methods.rb:97:in `load_user'


Pascal Martineau

unread,
Apr 1, 2018, 9:45:01 AM4/1/18
to Canvas LMS Users
I have the exact same problem on my production setup. One time the problem was a missing "config/file_store.yml" file, but today I got the same error when reinitializing the database.
It seems like the account #1 is not created and that's why #{account.id} is undefined.

Pascal Martineau

unread,
Apr 1, 2018, 10:18:04 AM4/1/18
to Canvas LMS Users
Turns out adding ssl: "true" to config/domain.yml fixed the problem. My docker container sits behind a proxy with letsencrypt.
Reply all
Reply to author
Forward
0 new messages