Redmine 2.3, ruby 2.0.0, nginx 1.4.1 with passenger 4.0.2 all HTTP POSTs fail -
i'm new nginx , attempting run redmine 2.3 using ruby 2.0.0, phusion passenger 4.0.2 , nginx 1.4.1. compiled passenger-install-nginx script on armv5te system in arch linux arm.
i getting following in nginx log: (note: i've removed server name logs/configs)
2013/05/08 23:41:12 [notice] 1359#0: signal process started [ 2013-05-08 23:41:13.1325 1367/b6f9a000 agents/helperagent/main.cpp:554 ]: passengerhelperagent online, listening @ unix:/tmp/passenger.1.0.1363/generation-0/request.socket [ 2013-05-08 23:41:13.2641 1387/b6f26000 agents/helperagent/main.cpp:554 ]: passengerhelperagent online, listening @ unix:/tmp/passenger.1.0.1381/generation-0/request.socket [ 2013-05-08 23:41:13.3028 1392/b6faa000 agents/loggingagent/main.cpp:272 ]: passengerloggingagent online, listening @ unix:/tmp/passenger.1.0.1381/generation-0/logging.socket [ 2013-05-08 23:41:15.9700 1387/b59ff450 pool2/spawner.h:739 ]: [app 1408 stdout] [ 2013-05-08 23:41:43.5820 1387/b6b4a450 pool2/spawner.h:159 ]: [app 1408 stderr] /var/www/sites/public-redmine-2.3/lib/svg/graph/graph.rb:3: warning: class variable access toplevel [ 2013-05-08 23:41:55.8491 1387/b59ff450 pool2/spawner.h:739 ]: [app 1439 stdout] [ 2013-05-08 23:44:15.2842 1387/b57ff450 agents/helperagent/requesthandler.h:581 ]: [client 20] disconnecting error: invalid scgi header 2013/05/08 23:44:15 [error] 1402#0: *3 upstream prematurely closed connection while reading response header upstream, client: 192.168.4.254, server: (removed), request: "post /login http/1.1", upstream: "passenger:/tmp/passenger.1.0.1381/generation-0/request.socket:", host: "(removed)", referrer: "http://(removed)/login"
the last error occurs consistently whenever http post on page in redmine. http requests work fine pages rendered.
nginx.conf
worker_processes 2; events { worker_connections 1024; } http { passenger_root /usr/lib/ruby/gems/2.0.0/gems/passenger-4.0.2; passenger_ruby /usr/bin/ruby; passenger_max_pool_size 2; passenger_pool_idle_time 120; passenger_pre_start http://(removed)/; passenger_spawn_method smart; include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; location / { root html; index index.html index.htm; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } include sites-enabled/*.conf; }
sites-enabled/redmine.conf
server { listen *:80; server_name (removed); passenger_enabled on; rails_env production; passenger_spawn_method conservative; root /var/www/sites/kamikaze-kb/public; location /plugin_assets/ { root /var/www/sites/kamikaze-kb/public/plugin_assets/; } }
one thing may relevant - can run redmine fine if use built in ruby webrick server, i'm guessing nginx/passenger problem. has got idea issue is?
looks problem tied arm platform.
i got same problem on arm, same code , configuration works fine on x86.
Comments
Post a Comment