I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

RoutingError in production.log

Added by Thanas Karapatis about 7 years ago

Although the plugin seems to work fine in production.log I get the following line
when entering the settings page of a project

Started GET "/redmine/plugin_assets/redmine_scm/javascripts/scm_utils_jquery.js” for 127.0.0.1 at Mon Nov 25 21:18:19 +0100 2013
ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_scm/javascripts/scm_utils_jquery.js”):
....

I am using redmine 2.3.1.stable

Complete:

@
Processing by ProjectsController#settings as HTML
Parameters: {“id"⇒“redmine”}
Current user: thanas (id=13)
Rendered plugins/redmine_scm/app/views/projects/_scm.html.erb (0.3ms)
Rendered projects/_form.html.erb (80.2ms)
Rendered projects/_edit.html.erb (81.3ms)
Rendered projects/settings/_modules.html.erb (2.9ms)
Rendered projects/settings/_members.html.erb (115.8ms)
Rendered projects/settings/_versions.html.erb (3.6ms)
Rendered projects/settings/_issue_categories.html.erb (1.3ms)
Rendered projects/settings/_wiki.html.erb (1.3ms)
Rendered plugins/redmine_scm/app/views/projects/settings/_repositories.html.erb (1.3ms)
Rendered projects/settings/_boards.html.erb (1.1ms)
Rendered projects/settings/_activities.html.erb (80.7ms)
Rendered common/_tabs.html.erb (294.0ms)
Rendered projects/settings.html.erb within layouts/base (294.7ms)
Completed 200 OK in 322ms (Views: 296.3ms | ActiveRecord: 16.2ms)
Started GET "/redmine/plugin_assets/redmine_scm/javascripts/scm_utils_jquery.js” for 127.0.0.1 at Mon Nov 25 21:18:19 +0100 2013

ActionController::RoutingError (No route matches [GET] "/plugin_assets/redmine_scm/javascripts/scm_utils_jquery.js”):
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/debug_exceptions.rb:21:in `call’
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/show_exceptions.rb:56:in `call’
/usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:32:in `call_app’
/usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:16:in `call’
/usr/lib/ruby/vendor_ruby/active_support/tagged_logging.rb:22:in `tagged’
/usr/lib/ruby/vendor_ruby/rails/rack/logger.rb:16:in `call’
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/request_id.rb:22:in `call’
/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call’
/usr/lib/ruby/vendor_ruby/rack/runtime.rb:17:in `call’
/usr/lib/ruby/vendor_ruby/active_support/cache/strategy/local_cache.rb:72:in `call’
/usr/lib/ruby/vendor_ruby/rack/lock.rb:15:in `call’
/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/static.rb:63:in `call’
/usr/lib/ruby/vendor_ruby/rack/cache/context.rb:136:in `forward’
/usr/lib/ruby/vendor_ruby/rack/cache/context.rb:245:in `fetch’
/usr/lib/ruby/vendor_ruby/rack/cache/context.rb:185:in `lookup’
/usr/lib/ruby/vendor_ruby/rack/cache/context.rb:66:in `call!'
/usr/lib/ruby/vendor_ruby/rack/cache/context.rb:51:in `call’
/usr/lib/ruby/vendor_ruby/rails/engine.rb:479:in `call’
/usr/lib/ruby/vendor_ruby/rails/application.rb:223:in `call’
/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `send’
/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing’
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/request_handler.rb:96:in `process_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:274:in `main_loop’
/usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler’
/usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `send’
/usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:479:in `safe_fork’
/usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in `start’
/usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:149:in `start’
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add’
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:in `synchronize’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in `synchronize’
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:132:in `spawn_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `__send__’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in `server_main_loop’
/usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously’
/usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99
@


Replies (1)

RE: RoutingError in production.log - Added by Thanas Karapatis almost 7 years ago

I found the problem. The assets of plugin were not copied to
$RAILS_ROOT/public/plugin_assets
The folder plugin_assets was not even there.

What I did is create the folders plugin_assets and plugin_assets/redmine_scm
Within redmine_scm I created a symbolic link to the assets location
ln -s ../../../plugins/redmine_scm/assets/javascripts .

    (1-1/1)

    Terms of use | Privacy policy