Forums Redmine

Redmine post-installation problem

Subscribe to Redmine post-installation problem 9 post(s), 2 voice(s)

 
Avatar onewaypub 5 post(s)

Hi everyone,

I have a problem with Redmine. After an installation of redmine (Bitmine stack), I cannot call the local site. I just get an error message in my browser with error code 502. So I checked the logfiles of apache and mongrel. It seems that the apache server correctly forward the request to the next mongrel instance. But mongrel only say the http request in invalid. After I have made inquiries I found some topics about bugs on apache and mongrel (logger problem etc..). Nothing works.

Interesting is that on every machine in the company I work, Bitnami’s redmine don’t work. But on my personal notebook everything is fine. Could this be a problem of something like the domain? After one week I have no more idea, where I can find a solution.

Has someone an idea what happens here?

Many, many thanks for your help,
Carl

 
Avatar beltran Administrator 371 post(s)

Hi,

It is strange. Have you installed over Windows? Apache is configured as a proxy or load balancer between two Mongrel servers. Could you access to Redmine at http://127.0.0.1:3001? Have your office machine a custom network configuration or a firewall which does not let to connect Apache with the Mongrel servers? You can try to change the Apache configuration settings in <installation_directory>/apache2//conf/redmine-mongrel-cluster.conf.


<Proxy balancer://redminecluster>
  BalancerMember <a href="http://127.0.0.1:3001">http://127.0.0.1:3001</a>
  BalancerMember <a href="http://127.0.0.1:3002">http://127.0.0.1:3002</a>
</Proxy>

Maybe your network configuration does not let to manage the 127.0.0.1 ip, try to change to the computer ip or disable the firewall.

I hope it helps you.

 
Avatar onewaypub 5 post(s)

Hi,

Thank you for your answer. Yes the application is installed over Windows.

Over the port 3001 and 3002 I can acess the application without problems.

I have disabled the firewall and also changed the adress:

<proxy balancer: /> BalancerMember http://HOST:3001 BalancerMember http://HOST:3002
</proxy>

Nothing works.

Thx Carl

 
Avatar onewaypub 5 post(s)

The log file of mongrel recordnize the request from apache. But it say that the request is corrupted

 
Avatar beltran Administrator 371 post(s)

Hi,

Could you post the apache log and the mongrel log files to try to know what is the exact error? Thanks.

 
Avatar onewaypub 5 post(s)

Sure. Thank you for your help:

Here the mongrel logfile:

  • INT signal received.
  • Starting Mongrel listening at 192.168.1.116:3001
  • Starting Rails with production environment…
  • Rails loaded.
  • Loading any Rails specific GemPlugins
  • Loading C:\Programme\BitNami Redmine Stack\redmine\scripts\mongrel_rails_envvars external config script
  • Signals ready. INT => stop (no restart).
  • Mongrel 1.1.4 available at 192.168.1.116:3001
  • Use CTRL-C to stop.
  • INT signal received.
  • Starting Mongrel listening at 192.168.1.116:3001
  • Starting Rails with production environment…
  • Rails loaded.
  • Loading any Rails specific GemPlugins
  • Loading C:\Programme\BitNami Redmine Stack\redmine\scripts\mongrel_rails_envvars external config script
  • Signals ready. INT => stop (no restart).
  • Mongrel 1.1.4 available at 192.168.1.116:3001
  • Use CTRL-C to stop.
    Mon Jul 07 17:01:35 +0200 2008: HTTP parse error, malformed request (192.168.1.118): #<mongrel::httpparsererror: format invalid http>
    Mon Jul 07 17:01:35 +0200 2008: REQUEST DATA: “GET / HTTP/1.0\r\nHost: 192.168.1.116:3001\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8\r\nAccept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nX-Forwarded-For: 192.168.1.118\r\nX-Forwarded-Host: idvws29\r\nX-Forwarded-Server: 192.168.1.116\r\nGET / HTTP/1.0\r\nHost: 192.168.1.116:3001\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8\r\nAccept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nX-Forwarded-For: 192.168.1.118\r\nX-Forwarded-Host: idvws29\r\nX-Forwarded-Server: 192.168.1.116\r\n\r\n”

    PARAMS: {“HTTP_X_FORWARDED_HOST”=>”idvws29”, “HTTP_ACCEPT_ENCODING”=>”gzip,deflate”, “HTTP_USER_AGENT”=>”Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0”, “HTTP_ACCEPT_LANGUAGE”=>”de-de,de;q=0.8,en-us;q=0.5,en;q=0.3”, “HTTP_HOST”=>”192.168.1.116:3001”, “REQUEST_PATH”=>”/”, “HTTP_ACCEPT_CHARSET”=>”ISO-8859-1,utf-8;q=0.7,;q=0.7”, “HTTP_VERSION”=>”HTTP/1.0”, “HTTP_X_FORWARDED_SERVER”=>”192.168.1.116”, “REQUEST_URI”=>”/”, “HTTP_X_FORWARDED_FOR”=>”192.168.1.118”, “HTTP_ACCEPT”=>”text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”, “REQUEST_METHOD”=>”GET”}
    -
    Mon Jul 07 17:01:51 +0200 2008: HTTP parse error, malformed request (192.168.1.118): #<mongrel::httpparsererror: format invalid http>
    Mon Jul 07 17:01:51 +0200 2008: REQUEST DATA: “GET / HTTP/1.0\r\nHost: 192.168.1.116:3001\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,
    /;q=0.8\r\nAccept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nX-Forwarded-For: 192.168.1.118\r\nX-Forwarded-Host: idvws29\r\nX-Forwarded-Server: 192.168.1.116\r\nGET / HTTP/1.0\r\nHost: 192.168.1.116:3001\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8\r\nAccept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,;q=0.7\r\nX-Forwarded-For: 192.168.1.118\r\nX-Forwarded-Host: idvws29\r\nX-Forwarded-Server: 192.168.1.116\r\n\r\n”
    -
    PARAMS: {“HTTP_X_FORWARDED_HOST”=>”idvws29”, “HTTP_ACCEPT_ENCODING”=>”gzip,deflate”, “HTTP_USER_AGENT”=>”Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0”, “HTTP_ACCEPT_LANGUAGE”=>”de-de,de;q=0.8,en-us;q=0.5,en;q=0.3”, “HTTP_HOST”=>”192.168.1.116:3001”, “REQUEST_PATH”=>”/”, “HTTP_ACCEPT_CHARSET”=>”ISO-8859-1,utf-8;q=0.7,;q=0.7”, “HTTP_VERSION”=>”HTTP/1.0”, “HTTP_X_FORWARDED_SERVER”=>”192.168.1.116”, “REQUEST_URI”=>”/”, “HTTP_X_FORWARDED_FOR”=>”192.168.1.118”, “HTTP_ACCEPT”=>”text/html,application/xhtml+xml,application/xml;q=0.9,/*;q=0.8”, “REQUEST_METHOD”=>”GET”}

    Mon Jul 07 17:01:54 +0200 2008: HTTP parse error, malformed request (192.168.1.118): #<mongrel::httpparsererror: format invalid http>
    Mon Jul 07 17:01:54 +0200 2008: REQUEST DATA: “GET /favicon.ico HTTP/1.0\r\nHost: 192.168.1.116:3001\r\

and the apache error log:
Mon Jul 07 16:59:24 2008 [client 192.168.1.118] proxy: Error reading from remote server returned by /
Mon Jul 07 17:01:35 2008 [client 192.168.1.118] (70014)End of file found: proxy: error reading status line from remote server 192.168.1.116
Mon Jul 07 17:01:35 2008 [client 192.168.1.118] proxy: Error reading from remote server returned by /
Mon Jul 07 17:01:51 2008 [client 192.168.1.118] (70014)End of file found: proxy: error reading status line from remote server 192.168.1.116
Mon Jul 07 17:01:51 2008 [client 192.168.1.118] proxy: Error reading from remote server returned by /
Mon Jul 07 17:01:54 2008 [client 192.168.1.118] (70014)End of file found: proxy: error reading status line from remote server 192.168.1.116
Mon Jul 07 17:01:54 2008 [client 192.168.1.118] proxy: Error reading from remote server returned by /favicon.ico

and the apache access log:
192.168.1.118 – - [07/Jul/2008:16:59:23 +0200] “GET / HTTP/1.1” 502 379 “” “Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0”
192.168.1.118 – - [07/Jul/2008:17:01:35 +0200] “GET / HTTP/1.1” 502 379 “
” “Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0”
192.168.1.118 – - [07/Jul/2008:17:01:51 +0200] “GET / HTTP/1.1” 502 379 ”-” “Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0”

Thx
Carl

 
Avatar beltran Administrator 371 post(s)

Hi,

I have seen something strange. Your machine IP is 192.168.1.118 no? What machine is 192.168.1.116? Do you have a proxy in the office?

 
Avatar onewaypub 5 post(s)

192.168.1.118 is the machine from where I try to access redmine. The redmine server itself is on the machine 192.168.1.116. Also I tried to access localhost on 192.168.1.116 but with the same result.

So the apache proxy is also on 192.168.1.116.

I looked into the registry and I see that the mongrel server instances start with the switch -a 0.0.0.0. I think this was wrong. But after I changed this to 192.168.1.116 I got the same results as the times before.

We have no other proxy server in our company

 
Avatar beltran Administrator 371 post(s)

Sorry but I can not reproduce your issue and I can not determine the cause of the error. A possible solution is to use the mongrel server directly with the 3001 port.

Forums Redmine