Page not found #1

Closed
titmael opened this Issue Dec 11, 2012 · 35 comments

Projects

None yet

4 participants

@titmael
titmael commented Dec 11, 2012

Hi,

i installed your plugin. Here some infos :

Environment:
Access URL http://localhost/redmine
Redmine version 2.1.4.stable
Ruby version 1.8.7 (i486-linux)
Rails version 3.2.8
Environment production
Database adapter MySQL
Redmine plugins:
redmine_evm 0.9.0

When i go on the tab EVM i go to this page : http://locahost/redmine/ratios?id=culturatest and get an error : The page you were trying to access doesn't exist or has been removed.

(i tried to contact you before doing this issue, but it's the only way here).

Thanks

@gamafranco
Member

Hi titmael,

Thanks for the report. @JoaoCostaImag will take a look at it.

To confirm, the server was restarted after the plugin was included? Just to confirm that the rails routes were loaded after the plugin was on the folder.

Thanks.

@titmael
titmael commented Dec 11, 2012

Yep it has been restarted, i even reboot the debian server.

I'm not really use to rails :)

2012/12/11 Tiago Franco notifications@github.com

Hi titmael,

Thanks for the report. @JoaoCostaImag https://github.com/JoaoCostaImagwill take a look at it.

To confirm, the server was restarted after the plugin was included? Just
to confirm that the rails routes were loaded after the plugin was on the
folder.

Thanks.


Reply to this email directly or view it on GitHubhttps://github.com/imaginary-cloud/redmine_evm/issues/1#issuecomment-11247045.

@JoaoCostaImag
Member

Hi titmael,

Did restart solved your issue or it has occured again?

@titmael
titmael commented Dec 11, 2012

No no i submited the issue after restarting :)

Maybe it's not from the pluggin :)
Le 11 déc. 2012 16:42, "JoaoCostaImag" notifications@github.com a écrit :

Hi titmael,

Did restart solved your issue or it has occured again?


Reply to this email directly or view it on GitHubhttps://github.com/imaginary-cloud/redmine_evm/issues/1#issuecomment-11248361.

@gamafranco
Member

I think it's fixed on master now. Can you try it again with the master branch and let us know?

Thanks.

@titmael
titmael commented Dec 13, 2012

No :(

Now i have url like that : http://localhost/redmine/projects/regre/ratios/index but still don't work.

@drakontia
Contributor

@titmael

The url you got is correct.
You still get "Page not found"? or Other?
Could you read log/production.log when it occurred?

@titmael
titmael commented Dec 14, 2012

Looks like there is a prob. I isolated the part when i clic on the EVM link and get the page not found error :

Connecting to database specified by database.yml OpenIdAuthentication.store is nil. Using in-memory store.

Started GET "/redmine/projects/testproject/ratios/index" for _..**.**_ at Fri Dec 14 09:59:13 +0100 2012

ActionController::RoutingError (uninitialized constant RatiosController):
activesupport (3.2.8) lib/active_support/inflector/methods.rb:219:in constantize' activesupport (3.2.8) lib/active_support/inflector/methods.rb:218:ineach'
activesupport (3.2.8) lib/active_support/inflector/methods.rb:218:in constantize' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:69:incontroller_reference'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:54:in controller' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:32:incall'
journey (1.0.4) lib/journey/router.rb:68:in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:incall'
rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:incall'
activerecord (3.2.8) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in call' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in_run__397314981__call__4__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in send' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:81:insend'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.8) lib/rails/rack/logger.rb:26:incall_app'
railties (3.2.8) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall'
activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
railties (3.2.8) lib/rails/engine.rb:479:in call' railties (3.2.8) lib/rails/application.rb:223:incall'
railties (3.2.8) lib/rails/railtie/configurable.rb:30:in send' railties (3.2.8) lib/rails/railtie/configurable.rb:30:inmethod_missing'
passenger (3.0.18) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:516:inaccept_and_process_next_request'
passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:321:instart_request_handler'
passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in send' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:275:inhandle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/utils.rb:470:in safe_fork' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:180:instart'
passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:219:inspawn_rails_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:214:inspawn_rails_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize' passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:213:inspawn_rails_application' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:132:inspawn_application'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:insend'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
passenger (3.0.18) helper-scripts/passenger-spawn-server:99

Anything i missed in the rails install, or a gem/conf ?

@gamafranco
Member

Thanks!

For some reason the controller is not loaded. Odd.

What version of Ruby are you using? In which operating system?

Thanks.

@titmael
titmael commented Dec 14, 2012

Ruby 1.8 - Debian 6 "Squeeze"

@gamafranco
Member

Thanks. Can you try it with 1.9? If you're using RVM, that can be easy.

@titmael
titmael commented Dec 14, 2012

I'm not using RVM. And i read that bundler wasn't working on Ruby1.9 and i have to use it :(

@gamafranco
Member

I tried with 1.8 and it worked. We'll need to try a different strategy to squeeze this one down :|

drakontia, I had to rollback your changes because if the app is not named RedmineApp, everything breaks down.

Regarding the routes, drakontia can you test the current master and let me know your error?

titmael, same for you. sorry. can you test it now and post the error?

Thanks!

@titmael
titmael commented Dec 14, 2012

I update the plugin with new version, reboot the Debian and still same error in production.log. Did i forgot a gem or something because the controller seems not be loaded as you said. Or maybe a configuration in Redmine ?

Connecting to database specified by database.yml OpenIdAuthentication.store is nil. Using in-memory store.

Started GET "/redmine/projects/testproject/ratios/index" for _..**.**_ at Fri Dec 14 13:40:13 +0100 2012

ActionController::RoutingError (uninitialized constant RatiosController):
activesupport (3.2.8) lib/active_support/inflector/methods.rb:219:in constantize' activesupport (3.2.8) lib/active_support/inflector/methods.rb:218:ineach'
activesupport (3.2.8) lib/active_support/inflector/methods.rb:218:in constantize' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:69:incontroller_reference'
actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:54:in controller' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:32:incall'
journey (1.0.4) lib/journey/router.rb:68:in call' journey (1.0.4) lib/journey/router.rb:56:ineach'
journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:incall'
rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:25:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:incall'
activerecord (3.2.8) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in call' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in_run__397314981__call__4__callbacks'
activesupport (3.2.8) lib/active_support/callbacks.rb:405:in send' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in__run_callback'
activesupport (3.2.8) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:81:insend'
activesupport (3.2.8) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.8) lib/rails/rack/logger.rb:26:incall_app'
railties (3.2.8) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:incall'
rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall'
activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall'
actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward'
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup'
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall'
railties (3.2.8) lib/rails/engine.rb:479:in call' railties (3.2.8) lib/rails/application.rb:223:incall'
railties (3.2.8) lib/rails/railtie/configurable.rb:30:in send' railties (3.2.8) lib/rails/railtie/configurable.rb:30:inmethod_missing'
passenger (3.0.18) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:516:inaccept_and_process_next_request'
passenger (3.0.18) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:321:instart_request_handler'
passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in send' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:275:inhandle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/utils.rb:470:in safe_fork' passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:180:instart'
passenger (3.0.18) lib/phusion_passenger/classic_rails/application_spawner.rb:149:instart' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:219:inspawn_rails_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:214:inspawn_rails_application'
passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:82:insynchronize' passenger (3.0.18) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:213:inspawn_rails_application' passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:132:inspawn_application'
passenger (3.0.18) lib/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:insend'
passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.18) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously'
passenger (3.0.18) helper-scripts/passenger-spawn-server:99

@gamafranco
Member

It has something to do with the loading of the plugin. It seems it is not being loaded as it should.

Do you have other plugins installed? If so, which ones?

@titmael
titmael commented Dec 14, 2012

No plugs

@gamafranco
Member

Is it too much to ask you to install http://redminecrm.com/projects/contacts-plugin/products ?

I'm trying to figure out if the problem is from the plugin or the installation.

@titmael
titmael commented Dec 14, 2012

I have an error when i try to do "redmine:plugins:migrate"

Uninitialized constant RedmineContacts::Patches::IssuePatch::Contact
[...]

@gamafranco
Member

There's something really wrong with that setup. It's not loading the plugins folder.

It might be from the ruby version, but at this point it's really hard to tell.

@titmael
titmael commented Dec 14, 2012

Well, i'm gonna try next week to play with ruby 1.9. I guess that bundler is not mandatory to install redmine ? :)

@gamafranco
Member

You'll need bundler for sure. Try to use RVM. It's easier to manage ruby installations with that.

@titmael
titmael commented Dec 14, 2012

Ok, but how does people to install redmine on ruby 1.9 without bundler ?

@gamafranco
Member

No. Redmine is rails 3, which requires bundler.

@titmael
titmael commented Dec 14, 2012

So i don't get what would it change to install ruby1.9 ?

@gamafranco
Member

Ruby 1.8 and 1.9 are very different. And some load path issue might arise.

At this point is hard to tell if that is the cause of the problem or not. But the installation that you have is not loading the plugins correctly. Even if we have a bug in redmine_evm, the contacts plugin should work fine.

@titmael
titmael commented Dec 14, 2012

Maybe i can install ruby1.9 now that Redmine is installed ?

@gamafranco
Member

It's a bit more complex than that. You'll have install 1.9 and then tell passenger to use that version.

@drakontia
Contributor

@gamafranco I did test in new version and got no error. RedmineApp is the namespace that Redmine uses. So, it's not important if you use original namespace for your plugin.

And I also think that the problem is caused by plugin loading error. installed into correct path(plugins directory in Redmine 2.x), changed permission of plugin directory to HTTP server user's, rails server setting is correct, etc.

@gamafranco
Member

@drakontia thanks for the update.

Regarding the name of RedmineApp, you're correct. It's the default namespace, but we changed it in our intranet. Don't remember why, but I suspect it has to do with legacy code. We've been using Redmine since 0.8, I think.

So, at this point it might make sense to assume that all redmine instances use RedmineApp.

But at this point I'm a bit confused about how the routes should be developed for a plugin. If you look at the contacts plugin that I suggested above, the routes are not declared in a block. Can you test that one and check if you also get an error?

Regarding the current EVM code, what error do you get on the log?

Thanks,
TF

@titmael
titmael commented Dec 17, 2012

I guess that the access to plugins directory is ok because i installed the plugin Scrum2b and it worked well.

So i updated the evm plugin on my serv this morning and still get the same error.

@drakontia
Contributor

@gamafranco I see. I jumped to the wrong conclusion that routes.rb needs RedmineApp. And I got Routing error when I installed your original version of EVM. Since it worked fine after fixing routes.rb, I thought that it's reason.
I'm learned it by you. I'll study Ruby more. thanks.

@gamafranco
Member

@titmael thanks. I see the routes of the Scrum2b are slightly different. We're trying to nest the route, but something is messed up.

I need to do a couple of tests on the routes. I'll get back to this soon.

@gamafranco
Member

@drakontia no prob. Thank's for the effort on trying to fix it.

Just curious, you're practicing EVM?

@drakontia
Contributor

@gamafranco You mean just EVM? not plugin? I'm practicing EVM just now. It has many unknown words for me, but I understand what EVM means. Because the gap between plan and actual often become a problem.

@gamafranco
Member

I'm going to close this one, as other plugins are also throwing errors in the setup where this was reproduced. Please reopen if there is suspicion that the error is related to this plugin.

Thanks.

@gamafranco gamafranco closed this Jan 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment