instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.68k stars 2.5k forks source link

Canvas docker page not found in login #1321

Open sensusaps opened 6 years ago

sensusaps commented 6 years ago

Hi,

I tried running the docker quick start on my Ubuntu 18.04 server and when try I launch inside the browser at the login it says "Page not found"

Server output:

172.18.0.7 - - [13/Jul/2018:14:47:18 +0000] "GET / HTTP/1.1" 302 101 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /login/canvas HTTP/1.1" 404 14635 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/brandable_css/default/variables-750d72b9d3e5d522f965bf904110c132.css HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/lato-fontfaceobserver-ed903d58c4.js HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/webpack-dev/vendor.bundle-4a15b22b10.js HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/timezone/en_US-80a0ce259b.js HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/webpack-dev/common.bundle-221dcfbcfb.js HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/webpack-dev/navigation_header.bundle-04477535c7.js HTTP/1.1" 304 0 "http://192.168.1.4/login/canvas" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" 172.18.0.7 - - [13/Jul/2018:14:47:19 +0000] "GET /dist/fonts/instructure_icons/Line/InstructureIcons-Line-a53e1db734.woff HTTP/1.1" 304 0 "http://192.168.1.4/dist/brandable_css/new_styles_normal_contrast/bundles/common-9a5a4c7f64.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

How do I setup the first run from the docker launch? Thank you!

sensusaps commented 6 years ago

compiled jst/widget/UploadMediaTrackForm.scss responsive_layout_high_contrast_rtl in 26350 ms Done in 28.04s. --> Finished: 'css:compile' in 28.942756034000013 Building client app 'canvas_quizzes' warning package.json: No license field warning Resolution field "babel-helper-evaluate-path@0.4.1" is incompatible with requested version "babel-helper-evalu ate-path@^0.4.3" warning Resolution field "babel-helper-evaluate-path@0.4.1" is incompatible with requested version "babel-helper-evalu ate-path@^0.4.3" warning "apollo-boost > graphql-tag@2.4.2" has incorrect peer dependency "graphql@^0.9.0 || ^0.10.0". warning "canvas-planner > @instructure/ui-presets@5.13.0" has unmet peer dependency "lerna@^3.0.0-beta.21". warning "canvas-planner > @instructure/ui-presets > @instructure/cz-lerna-changelog@5.13.0" has unmet peer dependency "lerna@^3.0.0-beta.21". warning "canvas-planner > @instructure/ui-presets > jira-client > request-promise@4.2.2" has unmet peer dependency "re quest@^2.34". warning "canvas-planner > @instructure/ui-presets > stylelint > postcss-html@0.23.7" has incorrect peer dependency "po stcss-syntax@^0.10.0". warning "canvas-planner > @instructure/ui-presets > stylelint > postcss-markdown@0.23.7" has incorrect peer dependency "postcss-syntax@^0.10.0". warning "canvas-planner > @instructure/ui-presets > jira-client > request-promise > request-promise-core@1.1.1" has un met peer dependency "request@^2.34". warning "canvas-rce > react-transition-group@1.1.3" has incorrect peer dependency "react@^15.0.0". warning "canvas-rce > react-transition-group@1.1.3" has incorrect peer dependency "react-dom@^15.0.0". warning "canvas-rce > react-addons-test-utils@15.6.2" has incorrect peer dependency "react-dom@^15.4.2". warning " > graphiql@0.11.5" has incorrect peer dependency "graphql@^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0". warning " > graphiql@0.11.5" has incorrect peer dependency "react@^15.6.0". warning " > graphiql@0.11.5" has incorrect peer dependency "react-dom@^15.6.0". warning "graphiql > codemirror-graphql@0.6.11" has incorrect peer dependency "graphql@^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.8.0 || ^0.9.0 || ^0.10.0". warning "html-react-parser > react-dom-core@0.0.3" has unmet peer dependency "fbjs@". warning "html-react-parser > react-dom-core@0.0.3" has unmet peer dependency "object-assign@". warning " > react-apollo@2.1.1" has unmet peer dependency "apollo-client@^2.2.3". warning "tinymce-a11y-checker > @instructure/ui-themes@4.8.0" has incorrect peer dependency "@instructure/ui-themeable @^4.8.0". warning "tinymce-a11y-checker > react-aria-live@1.0.5" has incorrect peer dependency "react@15.x || ^16.0.0-rc". warning "workspace-aggregator-5498beea-7d24-4e81-b44a-f0010742245b > canvas_quizzes > jasmine_react > react@0.10.0" ha s unmet peer dependency "envify@~1.2.0". error Could not write file "/usr/src/app/client_apps/canvas_quizzes/yarn-error.log": "EACCES: permission denied, open '/usr/src/app/client_apps/canvas_quizzes/yarn-error.log'" error An unexpected error occurred: "EACCES: permission denied, mkdir '/usr/src/app/packages/canvas-rce/node_modules'" . INSTALL FAILURE: yarn install v1.7.0 [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... info fsevents@1.2.4: The platform "linux" is incompatible with this module. info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. rake aborted! Package installation failure for client app canvas_quizzes /usr/src/app/lib/tasks/js.rake:19:in block (4 levels) in <top (required)>' /usr/src/app/lib/tasks/js.rake:12:inchdir' /usr/src/app/lib/tasks/js.rake:12:in block (3 levels) in <top (required)>' /usr/src/app/lib/tasks/js.rake:9:ineach' /usr/src/app/lib/tasks/js.rake:9:in block (2 levels) in <top (required)>' /usr/src/app/lib/tasks/canvas.rake:52:inblock (2 levels) in <top (required)>' /usr/src/app/lib/tasks/canvas.rake:102:in block (2 levels) in <top (required)>' /home/docker/.gem/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in<top (required)>' Tasks: TOP => js:build_client_apps (See full trace by running task with --trace)

I tried to rerun the install script for docker and I get the above error. What should I do?

decademoon commented 6 years ago

I've had a lot of trouble installing the official canvas docker image in the past. I've had success with https://hub.docker.com/r/lbjay/canvas-docker/ instead, but it is probably out of date.

b-fuze commented 6 years ago

@decademoon I also had trouble with the development Docker, do you simply run it without Docker?

ziaulrehman40 commented 4 years ago

similar issue

balmas commented 4 years ago

I am experiencing something similar. Errors in the yarn install process while running docker setup on Ubuntu 16.04 and then when I start canvas, I get a page without the CSS and in the html of the page, a link to a file which says I must run brandable_css:

http://canvas.docker/dist/brandable_css/responsive_layout_normal_contrast/bundles/common-Error: unknown css checksum. you need to run brandable_css.css

These are the errors received during the docker setup

Screenshot from 2020-06-30 14-55-51

Screenshot from 2020-06-30 14-50-26