Project

General

Profile

Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module

Added by Max Kuzmin almost 9 years ago

Hi!
I try to install redmine 3.0.0-3.0.3 on ubuntu 14.04 and get the following error in thin-server logs:

!! Unexpected error while processing request: undefined method `clean_path_info' for Rack::Utils:Module


$ RAILS_ENV=production bin/about 
Environment:
  Redmine version                3.0.3.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
  Rails version                  4.2.1
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Git                            1.9.1
  Filesystem                     
Redmine plugins:
  no plugin installed


Replies (7)

RE: Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module - Added by Tim Totten almost 9 years ago

Please tell me someone has resolved this. I just upgraded a production installation of Redmine from 2.6 to 3.0, and now I'm getting a "502 Bad Gateway" message when I try to go to Redmine, and this error is showing up in the logs.

The server is running Debian 8, and is using thin to run Redmine.


Environment:
  Redmine version                3.0.3.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.3
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Cvs                            1.12.13
  Bazaar                         2.7.0
  Git                            2.1.4
  Filesystem
Redmine plugins:
  no plugin installed

RE: Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module - Added by Thomas Steinbach almost 9 years ago

I don't know how I solved the problem for me, but it should be one of the following considerations. In Ubuntu I have explicitely installed:

  • ruby=1:2.1.0.4ubuntu1
  • ruby-dev=1:2.1.0.4ubuntu1
  • thin=1.3.1-5build2

Hope that would help

RE: Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module - Added by Tim Totten over 8 years ago

One thing about my Redmine installation, it was from source, with a lot of stuff installed via 'gem'. I had to uninstall thin and ruby-rack from the Debian repository, and install them from 'gem', now everything works fine.

RE: Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module - Added by Sgo Skr over 8 years ago

I was also troubled with the same phenomenon.
Try to use "sudo" when you start "thin". Problem may be resolved.

RE: Redmine 3.0.x undefined method `clean_path_info' for Rack::Utils:Module - Added by Javier DL almost 8 years ago

Debian 8.4

Environment:
  Redmine version                3.2.2.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.5.2
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  no plugin installed

Step:

#apt-get remove thin
#apt-get autoremove
#cd APP_REDMINE
#gem install thin
#echo "gem 'thin'" >> Gemfile.local
#bundle install --without development test
#thin install


Work!!!
    (1-7/7)