ActionController::MissingExactTemplate (WelcomeController#index is missing a template for request formats: text/html)
Added by Haihan Ji almost 2 years ago
I download 5.0.4, and open it with RubyMine(2021.3) as a new project.
Everything looks fine. Run(Shift+F10) and Debug(Shift+F9) are good.
I got those information by browser (http://127.0.0.1:3000/admin/info):
Environment: Redmine version 5.0.4.stable Ruby version 2.6.9-p207 (2021-11-24) [x64-mingw32] Rails version 6.1.7 Environment development Database adapter Mysql2 Mailer queue ActiveJob::QueueAdapters::AsyncAdapter Mailer delivery smtp Redmine settings: Redmine theme Default SCM: Subversion 1.14.1 Git 2.34.1 Filesystem Redmine plugins: demo 0.0.1
But, I run rails server
on console, something is wrong.
PS D:\ruby\redmine-5.0.4> rails server -e development => Booting Puma => Rails 6.1.7 application starting in development => Run `bin/rails server --help` for more startup options *** SIGUSR2 not implemented, signal based restart unavailable! *** SIGUSR1 not implemented, signal based restart unavailable! *** SIGHUP not implemented, signal based logs reopening unavailable! Puma starting in single mode... * Puma version: 5.6.5 (ruby 2.6.9-p207) ("Birdie's Version") * Min threads: 0 * Max threads: 5 * Environment: development * PID: 7772 * Listening on http://[::1]:3000 * Listening on http://127.0.0.1:3000 Use Ctrl-C to stop Started GET "/" for 127.0.0.1 at 2022-12-06 16:32:06 +0800 (0.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Processing by WelcomeController#index as HTML (0.6ms) SELECT MAX(`settings`.`updated_on`) FROM `settings` ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Creating scope :sorted. Overwriting existing method User.sorted. Setting Load (0.8ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'rest_api_enabled' ORDER BY `settings`.`id` DESC LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' AnonymousUser Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`type` = 'AnonymousUser' AND `users`.`lastname` = 'Anonymous' LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Current user: anonymous Setting Load (0.8ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'login_required' ORDER BY `settings`.`id` DESC LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Setting Load (0.7ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'force_default_language_for_anonymous' ORDER BY `settings`.`id` DESC LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`builtin` = 2 LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Creating scope :sorted. Overwriting existing method Group.sorted. GroupAnonymous Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`type` = 'GroupAnonymous' ORDER BY id LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' (0.8ms) SELECT `users`.`id` FROM `users` WHERE `users`.`type` = 'GroupAnonymous' LIMIT 1 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' (5.7ms) SELECT `members`.`user_id`, `role_id`, `members`.`project_id` FROM `members` INNER JOIN `projects` ON `projects`.`id` = `members`.`project_id` INNER JOIN `member_roles` ON `member_roles`.`member_id` = `members`.`id` WHERE (projects.status <> 9) AND (members.user_id = 4 OR (projects.is_public = TRUE AND members.user_id = 2)) ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' News Load (5.0ms) SELECT `news`.* FROM `news` INNER JOIN `projects` ON `projects`.`id` = `news`.`project_id` WHERE (((projects.status <> 9 AND EXISTS (SELECT 1 AS one FROM enabled_modules em WHERE em.project_id = projects.id AND em.name='news')) AND ((projects.is_public = TRUE AND projects.id NOT IN (SELECT project_id FROM members WHERE user_id IN (4,2)))))) ORDER BY news.created_on DESC LIMIT 5 ↳ activerecord (6.1.7) lib/active_record/log_subscriber.rb:119:in `debug' Completed 406 Not Acceptable in 4447ms (ActiveRecord: 38.6ms | Allocations: 1130117) ActionController::MissingExactTemplate (WelcomeController#index is missing a template for request formats: text/html): actionpack (6.1.7) lib/action_controller/metal/implicit_render.rb:45:in `default_render' actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in `block in send_action' actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in `tap' actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' actionpack (6.1.7) lib/abstract_controller/base.rb:228:in `process_action' actionpack (6.1.7) lib/action_controller/metal/rendering.rb:30:in `process_action' actionpack (6.1.7) lib/abstract_controller/callbacks.rb:42:in `block in process_action' activesupport (6.1.7) lib/active_support/callbacks.rb:117:in `block in run_callbacks' lib/redmine/sudo_mode.rb:61:in `sudo_mode' activesupport (6.1.7) lib/active_support/callbacks.rb:126:in `block in run_callbacks' activesupport (6.1.7) lib/active_support/callbacks.rb:137:in `run_callbacks' actionpack (6.1.7) lib/abstract_controller/callbacks.rb:41:in `process_action' actionpack (6.1.7) lib/action_controller/metal/rescue.rb:22:in `process_action' actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:34:in `block in process_action' activesupport (6.1.7) lib/active_support/notifications.rb:203:in `block in instrument' activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb:24:in `instrument' activesupport (6.1.7) lib/active_support/notifications.rb:203:in `instrument' actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:33:in `process_action' actionpack (6.1.7) lib/action_controller/metal/params_wrapper.rb:249:in `process_action' activerecord (6.1.7) lib/active_record/railties/controller_runtime.rb:27:in `process_action' actionpack (6.1.7) lib/abstract_controller/base.rb:165:in `process' actionview (6.1.7) lib/action_view/rendering.rb:39:in `process' actionpack (6.1.7) lib/action_controller/metal.rb:190:in `dispatch' actionpack (6.1.7) lib/action_controller/metal.rb:254:in `dispatch' actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:50:in `dispatch' actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:33:in `serve' actionpack (6.1.7) lib/action_dispatch/journey/router.rb:50:in `block in serve' actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in `each' actionpack (6.1.7) lib/action_dispatch/journey/router.rb:32:in `serve' actionpack (6.1.7) lib/action_dispatch/routing/route_set.rb:842:in `call' rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in `call' rack (2.2.4) lib/rack/etag.rb:27:in `call' rack (2.2.4) lib/rack/conditional_get.rb:27:in `call' rack (2.2.4) lib/rack/head.rb:12:in `call' actionpack (6.1.7) lib/action_dispatch/http/permissions_policy.rb:22:in `call' actionpack (6.1.7) lib/action_dispatch/http/content_security_policy.rb:19:in `call' rack (2.2.4) lib/rack/session/abstract/id.rb:266:in `context' rack (2.2.4) lib/rack/session/abstract/id.rb:260:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb:689:in `call' activerecord (6.1.7) lib/active_record/migration.rb:601:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:27:in `block in call' activesupport (6.1.7) lib/active_support/callbacks.rb:98:in `run_callbacks' actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:26:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' railties (6.1.7) lib/rails/rack/logger.rb:37:in `call_app' railties (6.1.7) lib/rails/rack/logger.rb:26:in `block in call' activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in `block in tagged' activesupport (6.1.7) lib/active_support/tagged_logging.rb:37:in `tagged' activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in `tagged' railties (6.1.7) lib/rails/rack/logger.rb:26:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' request_store (1.5.1) lib/request_store/middleware.rb:19:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/request_id.rb:26:in `call' rack (2.2.4) lib/rack/method_override.rb:24:in `call' rack (2.2.4) lib/rack/runtime.rb:22:in `call' activesupport (6.1.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/static.rb:24:in `call' rack (2.2.4) lib/rack/sendfile.rb:110:in `call' rack (2.2.4) lib/rack/content_length.rb:17:in `call' actionpack (6.1.7) lib/action_dispatch/middleware/host_authorization.rb:148:in `call' railties (6.1.7) lib/rails/engine.rb:539:in `call' puma (5.6.5) lib/puma/configuration.rb:252:in `call' puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request' puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown' puma (5.6.5) lib/puma/request.rb:76:in `handle_request' puma (5.6.5) lib/puma/server.rb:443:in `process_client' puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in spawn_thread'
As you can see, I remove all the backtrace silencers.
What happend? How I fix it?¶
I ran yarn install
in redmine root directory,
because RubyMine found package.json
and suggested me to do.
Is that why?