Newly installed canvas shows Error starting web application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just did a fresh install of canvas successfully. However, when I tried accessing the application from a browser, I kept getting "Error starting web application" with Error ID: 2d92146b on the details tab.
Below are the installed packages:
Ruby: ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
Node: v18.20.4
psql - 12
git - 2.34.1
bundler - 2.5.22
yarn - 1.19.1
apache - 2.4.52
npm - 10.7.0
Below are the full error detail that was displayed;
uninitialized constant Canvas::Errors (NameError) /var/canvas/lib/base/canvas/vault.rb:58:in `rescue in read' /var/canvas/lib/base/canvas/vault.rb:27:in `read' /var/canvas/lib/base/canvas/credentials.rb:53:in `vault_secrets' /var/canvas/lib/base/canvas/credentials.rb:36:in `config' /var/canvas/config/application.rb:435:in `block in <class:Application>' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:32:in `instance_exec' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:32:in `run' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:61:in `block in run_initializers' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:60:in `run_initializers' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/application.rb:426:in `initialize!' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/railtie.rb:226:in `public_send' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/railtie.rb:226:in `method_missing' /var/canvas/config/environment.rb:24:in `<top (required)>' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' config.ru:5:in `block in <main>' /var/canvas/vendor/bundle/ruby/3.3.0/gems/rack-3.0.11/lib/rack/builder.rb:118:in `instance_eval' /var/canvas/vendor/bundle/ruby/3.3.0/gems/rack-3.0.11/lib/rack/builder.rb:118:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:399:in `run_block_and_record_step_progress' /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
The stdout/stderr output of the subprocess so far is:
/var/canvas/vendor/bundle/ruby/3.3.0/gems/rack-3.0.11/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1 Error: The application encountered the following error: uninitialized constant Canvas::Errors (NameError) /var/canvas/lib/base/canvas/vault.rb:58:in `rescue in read' /var/canvas/lib/base/canvas/vault.rb:27:in `read' /var/canvas/lib/base/canvas/credentials.rb:53:in `vault_secrets' /var/canvas/lib/base/canvas/credentials.rb:36:in `config' /var/canvas/config/application.rb:435:in `block in <class:Application>' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:32:in `instance_exec' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:32:in `run' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:61:in `block in run_initializers' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:50:in `tsort_each_child' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `call' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/initializable.rb:60:in `run_initializers' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/application.rb:426:in `initialize!' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/railtie.rb:226:in `public_send' /var/canvas/vendor/bundle/ruby/3.3.0/gems/railties-7.1.3/lib/rails/railtie.rb:226:in `method_missing' /var/canvas/config/environment.rb:24:in `<top (required)>' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require' /home/canvas/.rvm/rubies/ruby-3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require' config.ru:5:in `block in <main>' /var/canvas/vendor/bundle/ruby/3.3.0/gems/rack-3.0.11/lib/rack/builder.rb:118:in `instance_eval' /var/canvas/vendor/bundle/ruby/3.3.0/gems/rack-3.0.11/lib/rack/builder.rb:118:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:101:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:189:in `block in <module:App>' /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:399:in `run_block_and_record_step_progress' /usr/share/passenger/helper-scripts/rack-preloader.rb:188:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<main>'
Any assistance and pointer to get it running and working is highly appreciated.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like the vault tried reading a file related to "vault_secrets" and the file is missing, configured incorrectly, or did not have read permissions set properly. You should be able to see what the file name is by looking at the logs. The logs should be in the subdirectory of your root canvas directory (i.e. ~/canvas/log/...). I assume you were already following the Canvas Quick Start or Production Start guides, but I am providing those links just in case. If you are just trying to test things out, I also highly recommended going the docker container route mentioned in the Quick Start guide for its ease of use.