Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoutingError with sub-uri #78

Open
xzvfinet opened this issue Dec 20, 2015 · 4 comments
Open

RoutingError with sub-uri #78

xzvfinet opened this issue Dec 20, 2015 · 4 comments

Comments

@xzvfinet
Copy link

I installed redmine with sub-uri(www.mydomain.com/redmine).

With your kind installation guide, I successfully installed Redmine Github Hook plugin which shows in Plugin pages.

But when I try POST and GET with www.mydomain.com/redmine/github_hook, both of them make routing error.

Weird thing is, I used bundle and found nothing in redmine/plugins folder. Is this normal situation?

What can I do with this problem?


Environment:
Redmine version 3.2.0.stable.14983
Ruby version 2.2.4-p230 (2015-12-16) [x86_64-linux]
Rails version 4.2.5
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.8
Git 1.9.1
Filesystem
Redmine plugins:
redmine_github_hook 2.2.0


ActionController::RoutingError (No route matches [POST] "/redmine/github_hook"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.5) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
railties (4.2.5) lib/rails/railtie.rb:194:in public_send' railties (4.2.5) lib/rails/railtie.rb:194:inmethod_missing'
puma (2.15.3) lib/puma/configuration.rb:79:in call' puma (2.15.3) lib/puma/server.rb:541:inhandle_request'
puma (2.15.3) lib/puma/server.rb:388:in process_client' puma (2.15.3) lib/puma/server.rb:270:inblock in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in call' puma (2.15.3) lib/puma/thread_pool.rb:106:inblock in spawn_thread'

ActionController::RoutingError (No route matches [GET] "/redmine/github_hook"):
actionpack (4.2.5) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (4.2.5) lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
railties (4.2.5) lib/rails/rack/logger.rb:38:in call_app' railties (4.2.5) lib/rails/rack/logger.rb:20:inblock in call'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in block in tagged' activesupport (4.2.5) lib/active_support/tagged_logging.rb:26:intagged'
activesupport (4.2.5) lib/active_support/tagged_logging.rb:68:in tagged' railties (4.2.5) lib/rails/rack/logger.rb:20:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.4) lib/rack/methodoverride.rb:22:incall'
rack (1.6.4) lib/rack/runtime.rb:18:in call' activesupport (4.2.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
actionpack (4.2.5) lib/action_dispatch/middleware/static.rb:116:in call' rack (1.6.4) lib/rack/sendfile.rb:113:incall'
railties (4.2.5) lib/rails/engine.rb:518:in call' railties (4.2.5) lib/rails/application.rb:165:incall'
railties (4.2.5) lib/rails/railtie.rb:194:in public_send' railties (4.2.5) lib/rails/railtie.rb:194:inmethod_missing'
puma (2.15.3) lib/puma/configuration.rb:79:in call' puma (2.15.3) lib/puma/server.rb:541:inhandle_request'
puma (2.15.3) lib/puma/server.rb:388:in process_client' puma (2.15.3) lib/puma/server.rb:270:inblock in run'
puma (2.15.3) lib/puma/thread_pool.rb:106:in call' puma (2.15.3) lib/puma/thread_pool.rb:106:inblock in spawn_thread'

@koppen
Copy link
Owner

koppen commented Dec 22, 2015

Thanks for reporting this! I didn't even know Redmine supported serving itself from a sub URI.

Looking at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI there are quite a few ways you could have achieved this; which method have you used to configure Redmine to run in this way?

@xzvfinet
Copy link
Author

I saw that page, and used "Using Unicorn+Nginx" configuration.

@YounesN
Copy link

YounesN commented Feb 19, 2017

Have the same issue. Any update on this?

@koppen
Copy link
Owner

koppen commented Nov 27, 2018

Looking at http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_a_sub-URI there are quite a few ways you could have achieved this; which method have you used to configure Redmine to run in this way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants