Redmine 1.4.4 & Mongrel & Sub-URI : Bad Gateway on Login & Logout
Added by Alexandre Guilleme over 12 years ago
Hi,
I'm having some troubles when logging in/out after migration from an old server on Win2k with RM 1.3.1 to a Win2008 r2 with RM 1.4.4
Log-in works, but only if I do not check the checkbox "remember me". If I do check it, or when I want to log off, I've got a "Bad Gateway" error from apache.
The apache log says :
[proxy_http:warn] [pid 3740:tid 1092] [client 127.0.0.1:53647] AH01106: bad HTTP/1.1 header returned by /redmine/login (POST), referer: http://127.0.0.1/redmine/login
I modified environment.rb to add
Redmine::Utils::relative_url_root = "/redmine"
at the end of the file.
I've added "mongrel.rb" and "patch_for_mongrel.rb" in the config/initializers folder (with my rails version added at the first line).
I tried to add gemfile.local as said in RE: redmine 1.4 can not use mongrel? but it's breaking whole the redmine website.
Here is my configuration :- Windows 2008 R2 x64
- MySql 5.5.27
- apache 2.2.16 (Win32)
- 2 mongrel services on 3001 & 3002
- proxy balancer (on "/redmine")
- ruby 1.8.7 p302 with :
- actionmailer (2.3.14)
- actionpack (2.3.14)
- activerecord (2.3.14)
- activeresource (2.3.14)
- activesupport (2.3.14)
- bundler (1.2.1)
- cgi_multipart_eof_fix (2.5.0)
- coderay (1.0.8)
- daemons (1.1.9)
- eventmachine (1.0.0 x86-mingw32)
- fastercsv (1.5.5)
- gem_plugin (0.2.3)
- i18n (0.4.2)
- mongrel (1.2.0.pre2 x86-mingw32)
- mongrel_service (0.3.4 i386-mswin32)
- mysql (2.8.1 x86-mingw32)
- net-ldap (0.3.1)
- rack (1.1.3)
- rails (2.3.14)
- rake (0.9.2.2)
- ruby-openid (2.1.8)
- thin (1.5.0)
- tzinfo (0.3.33)
- win32-service (0.5.2 mswin32)
- output of script/about:
About your application's environment Ruby version 1.8.7 (i386-mingw32) RubyGems version 1.3.7 Rack version 1.1.3 Rails version 2.3.14 Active Record version 2.3.14 Active Resource version 2.3.14 Action Mailer version 2.3.14 Active Support version 2.3.14 Application root E:/www/redmine Environment production Database adapter mysql Database schema version 20120301153455
Thanks for help.
Replies (2)
RE: Redmine 1.4.4 & Mongrel & Sub-URI : Bad Gateway on Login & Logout
-
Added by Alexandre Guilleme over 12 years ago
I found more informations starting mongrel in a command window (not in a service), when i try to access the concerned pages, I've got a trace which starts with :
Error calling Dispatcher.dispatch (... something like "split" method does not exists)
So I replaced my redmine folder (1.4) with my old 1.3, downgrade rake to 0.8.7, made a "rake db:migrate", and now all is fine.
Is it ok to uses a newer database and do a migration, or am I going to face problems ?
RE: Redmine 1.4.4 & Mongrel & Sub-URI : Bad Gateway on Login & Logout
-
Added by Fabien Potiquet about 12 years ago
I've got exactly the same issue :(
I'am with Redmine 1.4.1.stable (MySQL) with Apache and mongrel.
Don't know what to do or what to watch.