Broken image links, script links and menu button links(no context in the link path resulting in 404)

95 views
Skip to first unread message

hazem...@gmail.com

unread,
Apr 19, 2013, 3:07:01 AM4/19/13
to canvas-l...@googlegroups.com
Hi

            We installed Canvas in Ubuntu 12.04 (Amazon cloud server) following the instructions at https://github.com/instructure/canvas-lms/wiki/Production-Start

The problems start at the login page, the images that should appear at the login page are missing. If I inspect the page using Google Chrome web developer tools, I could see that the image links are there but they are missing the context (i.e '/canvas' in our case). For example, if the path to image is 'http://<IP>/canvas/images/canvas_login.png', what we have here is 'http://<IP>/images/canvas_login.png'. The 'Assigments' link at the top menu is also broken for the same reasons.

           Adding further confusion is the fact that some links work, some do not. Some images appear, some do not. We can login, use a few menu items, but as said earlier, some work, some don't. We have been searching the web and forums for a while and to our astonishment, no results ! 

We are open to all suggestions, indicators, links or comments that you think could help us fix this. Also please let us know if you need any further information that would help you understand the problem better (screenshots, videos, logs). 

Thanks in advance,
Hazem
Screenshot from 2013-04-19 12:29:47.png

Ron Santos

unread,
Apr 19, 2013, 10:12:52 AM4/19/13
to canvas-l...@googlegroups.com
Just confirming that the 'bundle exec rake canvas:compile_assets' ran successfully? Any errors in the Apache or Canvas logs?

Ron Santos
Senior Systems Engineer
Institutional, Collaborative, and Academic Technologies (ICAT)
IT Services
Simon Fraser University www.sfu.ca



From: hazem...@gmail.com
To: canvas-l...@googlegroups.com
Sent: Friday, April 19, 2013 12:07:01 AM
Subject: [Canvas] Broken image links, script links and menu button links(no context in the link path resulting in 404)
--
 
---
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/groups/opt_out.
 
 

Cody Cutrer

unread,
Apr 19, 2013, 10:56:17 AM4/19/13
to canvas-l...@googlegroups.com
Hazem,

I'm not sure what you mean by the "context". Are you saying that you tried to mount Canvas in a subdirectory (i.e. http://<ip>/canvas/login), instead of directly in the root? I'm pretty sure that won't work - Canvas assumes it's the only app running on the domain. I know others have looked into using a reverse proxy in front of Canvas to try and rewrite links and accomplish the same thing, but I don't know how successful they've been.

Cody Cutrer
Software Engineer
Instructure


--

hazem...@gmail.com

unread,
Apr 19, 2013, 11:46:22 AM4/19/13
to canvas-l...@googlegroups.com
            Finally figured out the problem. We had the Canvas installed in the home directory of a linux user (/home/<some user>/canvas/). We pointed a symbolic link from the apache2 www folder to the canvas directory. Later today, when we moved canvas to the www directory, suddenly all of the links started working. It's silly to find how easy the solution is when you have tried everything else complicated (we were reading developer comments from the GitHub canvas source yesterday to get a hint :) ).

Ron & Cody: Thanks a bunch guys, for trying to help ! I don't know if it applies to everyone, but for me It's a nice feeling to have met people who are passionate to help.

Cody: I don't completely understand what you meant, but it appears that you suggested the same solution we accidentally figured out. Now, that's incredible. Thanks :)
Reply all
Reply to author
Forward
0 new messages