Redmine 1.2 with mongrel: You are being redirected
Added by Daniele Segato over 13 years ago
I just installed redmine 1.2 (from scratch) following the official install guide.
With rvm I installed ruby version 1.8.7 then everything else.
$ mongrel_rails start -d -p 3000 -e production -c /home/redmine/redmine -P log/mongrel.pid
Then I open the website and try to login.
I am presented with this: "You are being redirected"
on "redirected" there is a link to the page where I should be, and I'm not logged in if I go back to the homepage.
In logs I see this:
- Starting Mongrel listening at 0.0.0.0:3000
- Starting Rails with production environment...
- Rails loaded.
- Loading any Rails specific GemPlugins
- Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
- Rails signals registered. HUP => reload (without restart). It might not work well.
- Mongrel 1.1.5 available at 0.0.0.0:3000
- Writing PID file to log/mongrel.pid
Tue May 31 17:36:30 +0200 2011: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass>
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:108:in `send_cookies'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:136:in `out'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/http_response.rb:65:in `start'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:135:in `out'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:81:in `process'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/mongrel_rails:281
/home/redmine/.rvm/gems/ruby-1.8.7-p334/bin/mongrel_rails:19:in `load'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/bin/mongrel_rails:19
Tue May 31 17:36:30 +0200 2011: Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass>
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:108:in `send_cookies'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:136:in `out'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/http_response.rb:65:in `start'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/cgi.rb:135:in `out'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:81:in `process'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/gems/mongrel-1.1.5/bin/mongrel_rails:281
/home/redmine/.rvm/gems/ruby-1.8.7-p334/bin/mongrel_rails:19:in `load'
/home/redmine/.rvm/gems/ruby-1.8.7-p334/bin/mongrel_rails:19
What's wrong?
How am I supposed to make mongrel work?
With webrick it start and I can login just fine
thanks
Replies (18)
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Etienne Massip over 13 years ago
See #7688.
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Daniele Segato over 13 years ago
I'm totally new to ruby / rails / redmine
I'll appreciate help.. where should I apply the fix?
specifically...
what do I do with mongrel.rb?
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Daniele Segato over 13 years ago
solved on my own:
cd <redmine_dir>/config/initializers/
wget 'https://gist.github.com/raw/826692/cb0dcf784c30e6a6d00c631f350de99ab99e389d/mongrel.rb'
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Alex Last over 13 years ago
I tried many combinations of patches. Redmine still does not work.
What are the exact steps to configure Redmine Trunk?
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Alex Last over 13 years ago
ok, I finally fixed this. I installed all the patches, then re-installed ruby:
apt-get install ruby1.8-dev
then installed "mongrel":
gem install mongrel
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Baptiste Gaultier over 13 years ago
The solution provided by Alexey worked for me as well !
> $ cd <redmine_dir>/config/initializers/ > #wget 'https://gist.github.com/raw/826692/cb0dcf784c30e6a6d00c631f350de99ab99e389d/mongrel.rb' > # apt-get install ruby1.8-dev > # gem install mongrel > #/etc/init.d/redmine start
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Mickael Fradin about 13 years ago
It works for me too !! Thanks.
Baptiste Gaultier wrote:
The solution provided by Alexey worked for me as well !
[...]
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Krunal Jariwala almost 13 years ago
I'm facing the same problem on Windows Server 2008 R2. I have installed it as per instruction from one of the blog published on richardnichols dot net for installing Redmine on Windows.
I get everything installed correctly, but facing the same problem on development as well production environment. I'm not sure how to get it fixed on Windows using command prompt.
Awaiting your response.
Thanks
Krunal
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Ivan Cenov almost 13 years ago
See this thread
http://www.redmine.org/boards/2/topics/28918
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Marios Moutzouris over 12 years ago
I am also having the same problem on a Windows 2008 Server R2 as krunal zalavadiya. Tried the mongrel.rb (and adding rails version in 'if') but hitting the mongrel instance i get no response.
Thanks for any help.
c
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Marios Moutzouris over 12 years ago
Ok. Fixed with using the rb file shown here http://www.redmine.org/issues/7688 and adding appropriate rails version
RE: Redmine 1.2 with mongrel: You are being redirected - Added by cm h over 12 years ago
I just resolved this problem on Windows Server 2008 R2.
There are the steps for my case:
1.
Download [[https://gist.github.com/raw/826692/cb0dcf784c30e6a6d00c631f350de99ab99e389d/mongrel.rb]]
2.
Use rails -v to check your rails version and insert the version number in mongrel.rb.
ex: if ['2.3.8', '2.3.9', '2.3.10', '2.3.11', '2.3.14'] ...
3.
Put the edited mongrel.rb to <redmine_dir>/config/initializers/
P.S.
I am using:
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
Rails 2.3.14
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Ernesto Rodriguez over 12 years ago
gem uninstall mongrel -v 1.1.5
gem install mongrel -v 1.2.0.pre2 --pre
upgrading to 1.2.0.pre2 fixed everything form me :-)
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Fabien Potiquet over 12 years ago
Worked for me too on Debian squeeze :)
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Ujjwal Gaurav over 12 years ago
Ernesto Rodriguez wrote:
gem uninstall mongrel -v 1.1.5
gem install mongrel -v 1.2.0.pre2 --preupgrading to 1.2.0.pre2 fixed everything form me :-)
This worked for me as well for -
redmine 1.4.0
ruby 1.8.7
rails 2.3.14
Windows 7
mongrel upgraded from 1.1.5 to 1.2.0.pre2
Thanks
Redmine 1.4.4 with mongrel: You are being redirected - Added by afatac -- about 12 years ago
Redmine 1.4.4
ruby 1.8.7
rails 2.3.14
Shared Linux web hosting, cPanel
After starting redmine apps in cPanel, I can access the app via url mydoamin:12002. Everything seems fine, except that after logging in using the default admin account and password, I am stucked at You are being redirected page. Click on the Redirect link will bring me back to previous page, but I am still not logged in.
The error message in mongrel.log is
Error calling Dispatcher.dispatch #<NoMethodError: undefined method `[]' for nil:NilClass>
I under that there are patches for redmine 1.3 and earlier version, but I do not see the requirement to add these patches in redmine 1.4 installation instruction anymore. I have tried adding the mongrl.rb, patch_for_mongrel.rb and rails_6440_patch.rb though, all do not solve the problem.
I have also install mongrel 1.2.0.pre2 locally (system installed is mongrel 1.1.5)... still not working.
I have run of idea. Any suggestion?
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Etienne Massip about 12 years ago
Yes, drop using mongrel which is not maintained and not compatible with latest Rails versions.
RE: Redmine 1.2 with mongrel: You are being redirected - Added by Raivis Dejus almost 12 years ago
I have managed to get everything working by commenting out the first line with "if" in mongrel.rb
(you also have to remove the last "end")
EDIT: Later I had problems with running scripts from console, so I added it again for the duration of running commands from console. This worked for me.