Uninitialized constant Rack::MethodOverride::REQUEST_METHOD

Added by Ranieri Althoff about 6 years ago

I'm trying to host Redmine under Nginx+uWSGI, but I keep having an error on every endpoint:

/var/lib/gems/2.1.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:14:in `call': uninitialized constant Rack::MethodOverride::REQUEST_METHOD (NameError)
from /var/lib/gems/2.1.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
from /var/lib/gems/2.1.0/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
from /var/lib/gems/2.1.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/static.rb:116:in `call'
from /var/lib/gems/2.1.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
from /var/lib/gems/2.1.0/gems/railties-4.2.3/lib/rails/engine.rb:518:in `call'
from /var/lib/gems/2.1.0/gems/railties-4.2.3/lib/rails/application.rb:165:in `call'
from /var/lib/gems/2.1.0/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `public_send'
from /var/lib/gems/2.1.0/gems/railties-4.2.3/lib/rails/railtie.rb:194:in `method_missing'

I could find absolutely nothing that works or even helps on the internet, it seems that rack is broken since the stack trace shows Redmine wasn't even accessed.

Server runs on Ubuntu 14.10, rack is version 1.6.4, rails is 4.2.3 and Redmine is 3.1.0