{"action":"created","issue":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/637","labels_url":"https://api.github.com/repos/instructure/canvas-lms/issues/637/labels{/name}","comments_url":"https://api.github.com/repos/instructure/canvas-lms/issues/637/comments","events_url":"https://api.github.com/repos/instructure/canvas-lms/issues/637/events","html_url":"https://github.com/instructure/canvas-lms/issues/637","id":88170903,"number":637,"title":"URI::InvalidURIError compiling assets","user":{"login":"strocode","id":1912169,"avatar_url":"https://avatars.githubusercontent.com/u/1912169?v=3","gravatar_id":"","url":"https://api.github.com/users/strocode","html_url":"https://github.com/strocode","followers_url":"https://api.github.com/users/strocode/followers","following_url":"https://api.github.com/users/strocode/following{/other_user}","gists_url":"https://api.github.com/users/strocode/gists{/gist_id}","starred_url":"https://api.github.com/users/strocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strocode/subscriptions","organizations_url":"https://api.github.com/users/strocode/orgs","repos_url":"https://api.github.com/users/strocode/repos","events_url":"https://api.github.com/users/strocode/events{/privacy}","received_events_url":"https://api.github.com/users/strocode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-14T11:37:00Z","updated_at":"2015-06-15T15:19:34Z","closed_at":null,"body":"Hi,\r\n\r\n(I raised this at the [forum]  (https://groups.google.com/forum/#!topic/canvas-lms-users/ua_kQYZQ3_Q) but thought a ticket might be more suitable.)\r\n\r\nI'm upgrading a Canvas installation (and I'm a complete noob when it comes to canvas & ruby).\r\n\r\nUbuntu 14.04.2 LTS\r\nruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]\r\nCanvas from git:\r\ncommit 5cbb96b79c3e814a6e474ac630ef4013e64c5fab\r\nMerge: 0ec3df3 84e04f1\r\nAuthor: Cody Cutrer <cody@....>\r\nDate:   Mon Dec 8 12:51:04 2014 -0700\r\n\r\nRunning\r\n\r\n`bundle exec rake canvas:compile_assets --trace`\r\nJammit complains about a bunch of missing assets, then\r\n\r\n`URI::InvalidURIError: bad URI(is not URI?): #{$url-path-to-this-file}images/sort-desc.gif`\r\n\r\nLooks like this:\r\n```\r\nkeith@steamer:/var/canvas$ bundle exec rake canvas:compile_assets --trace | tee /tmp/badcompile.txt\r\n/var/canvas/gems/utf8_cleaner/lib/utf8_cleaner.rb:20:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.\r\n** Invoke canvas:compile_assets (first_time)\r\n** Execute canvas:compile_assets\r\nworking in 1 processes\r\n--> Starting: 'Compile sass and make jammit css bundles'\r\n--> Starting: 'npm run compile-sass'\r\n \r\n> canvas-lms@0.0.0 compile-sass /var/canvas\r\n> node script/compile-sass.js\r\n \r\n--> Finished: 'npm run compile-sass' in 125.646636244\r\n--> Starting: 'Jammit'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/legacy_normal_contrast/pages/react_files/compiler-react_files.css'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/legacy_normal_contrast/pages/instructure_eportfolio.css'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/legacy_normal_contrast/pages/course_show.css'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/legacy_normal_contrast/pages/course_list.css'\r\n\r\n... [ Bunch more Jammit Warnings ] ...\r\n\r\nJammit Warning: No assets match 'public/stylesheets_compiled/k12_high_contrast/pages/all_courses.css'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/k12_high_contrast/pages/external_tools/full_width.css'\r\nJammit Warning: No assets match 'public/stylesheets_compiled/k12_high_contrast/client_apps/canvas_quiz_statistics.css'\r\nrake aborted!\r\nURI::InvalidURIError: bad URI(is not URI?): #{$url-path-to-this-file}images/sort-desc.gif\r\n/usr/lib/ruby/1.9.1/uri/common.rb:176:in `split'\r\n/usr/lib/ruby/1.9.1/uri/common.rb:211:in `parse'\r\n/usr/lib/ruby/1.9.1/uri/common.rb:747:in `parse'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:158:in `block (2 levels) in concatenate_and_tag_assets'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:156:in `gsub'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:156:in `block in concatenate_and_tag_assets'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:154:in `map'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:154:in `concatenate_and_tag_assets'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/compressor.rb:95:in `compress_css'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/packager.rb:79:in `pack_stylesheets'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/packager.rb:38:in `block in precache_all'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/packager.rb:37:in `each'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit/packager.rb:37:in `precache_all'\r\n/home/keith/.bundler/ruby/1.9.1/jammit-98b50a67029c/lib/jammit.rb:146:in `package!'\r\n/var/canvas/lib/tasks/canvas.rake:131:in `block (4 levels) in <top (required)>'\r\n/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\r\n/var/canvas/lib/tasks/canvas.rake:7:in `log_time'\r\n/var/canvas/lib/tasks/canvas.rake:129:in `block (3 levels) in <top (required)>'\r\n/var/canvas/lib/tasks/canvas.rake:168:in `call'\r\n/var/canvas/lib/tasks/canvas.rake:168:in `block (5 levels) in <top (required)>'\r\n/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\r\n/var/canvas/lib/tasks/canvas.rake:7:in `log_time'\r\n/var/canvas/lib/tasks/canvas.rake:168:in `block (4 levels) in <top (required)>'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:275:in `call'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:275:in `call_with_index'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:225:in `process_incoming_jobs'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:203:in `block in worker'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:196:in `fork'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:196:in `worker'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:181:in `block in create_workers'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:180:in `each'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:180:in `create_workers'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:144:in `work_in_processes'\r\n/var/lib/gems/1.9.1/gems/parallel-0.5.16/lib/parallel.rb:55:in `map'\r\n/var/canvas/lib/tasks/canvas.rake:167:in `block (3 levels) in <top (required)>'\r\n/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\r\n/var/canvas/lib/tasks/canvas.rake:166:in `block (2 levels) in <top (required)>'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\n/var/lib/gems/1.9.1/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'\r\n/usr/local/bin/rake:23:in `load'\r\n/usr/local/bin/rake:23:in `<main>'\r\nTasks: TOP => canvas:compile_assets\r\nkeith@steamer:/var/canvas$\r\nkeith@steamer:/var/canvas$ ruby --version\r\nruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]\r\n\r\n```\r\n\r\n\r\nFull trace:\r\nhttp://pastebin.com/vqg8yTKs\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/comments/112104594","html_url":"https://github.com/instructure/canvas-lms/issues/637#issuecomment-112104594","issue_url":"https://api.github.com/repos/instructure/canvas-lms/issues/637","id":112104594,"user":{"login":"claydiffrient","id":606262,"avatar_url":"https://avatars.githubusercontent.com/u/606262?v=3","gravatar_id":"","url":"https://api.github.com/users/claydiffrient","html_url":"https://github.com/claydiffrient","followers_url":"https://api.github.com/users/claydiffrient/followers","following_url":"https://api.github.com/users/claydiffrient/following{/other_user}","gists_url":"https://api.github.com/users/claydiffrient/gists{/gist_id}","starred_url":"https://api.github.com/users/claydiffrient/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claydiffrient/subscriptions","organizations_url":"https://api.github.com/users/claydiffrient/orgs","repos_url":"https://api.github.com/users/claydiffrient/repos","events_url":"https://api.github.com/users/claydiffrient/events{/privacy}","received_events_url":"https://api.github.com/users/claydiffrient/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T15:19:34Z","updated_at":"2015-06-15T15:19:34Z","body":"@strocode After looking at this a bit, I would definitely continue down the Ubuntu packaging path.  I'm not sure why it would be doing that, but it is very likely that that is the problem.  There aren't any recent changes in Canvas relating to CSS compilation so it's unlikely that it's an issue with Canvas itself."}}