Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 08:53:10PM +0100, Yunior Miguel A. wrote: Hi there, I see that I was wrong in assuming how thin works. > thin configuration: > servers: 1 > socket: /tmp/thin.sock It looks like the *actual* file name used for the socket can add a ".integer" before the final "." in the c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread basti
thin => socket: /tmp/thin.sock nginx => server unix:/tmp/thin.0.sock; would be the problem i think. Am 18.03.2013 20:53, schrieb Yunior Miguel A.: Thans for all. The end configuration: thin configuration: chdir: /var/www/redmine/ environment: production address: 127.0.0.1 port: 3000 timeout:

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
Thans for all. The end configuration: thin configuration: chdir: /var/www/redmine/ environment: production address: 127.0.0.1 port: 3000 timeout: 30 log: /var/log/thin/gespro.log pid: tmp/pids/thin.pid max_conns: 1024 max_persistent_conns: 512 require: [] wait: 30 servers: 1 daemonize: true socke

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 05:13:12PM +0100, Yunior Miguel A. wrote: Hi there, > I am put the same port and change server unix:/tmp/thin.sock; > > and the log is the same. I'm not sure what exact configuration and log you are looking at in this test, but if your nginx.conf says "unix:/tmp/thin.so

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
Whn I am go /tmp/thin.0.sock that file exist. Sometime when i am reset the thin read thin: /var/lib/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead. I am put the same port and c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Maxim Dounin
Hello! On Mon, Mar 18, 2013 at 04:12:58PM +0100, Yunior Miguel A. wrote: > I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am > install redmine, when I try to access the page of redmine gives me the > following error: 502 Bad Gateway. In Nginx log reads: > 2013/03/18 10:45:09 [c

Re: 502 Bad Gateway- Nginx and thin

2013-03-18 Thread Francis Daly
On Mon, Mar 18, 2013 at 04:12:58PM +0100, Yunior Miguel A. wrote: Hi there, > I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am > install redmine, when I try to access the page of redmine gives me the > following error: 502 Bad Gateway. In Nginx log reads: > 2013/03/18 10:45:09

502 Bad Gateway- Nginx and thin

2013-03-18 Thread Yunior Miguel A.
I have install nginx 1.1.19 and thin 1.5.0 in Ubuntu 12.04 and I am install redmine, when I try to access the page of redmine gives me the following error: 502 Bad Gateway. In Nginx log reads: 2013/03/18 10:45:09 [crit] 13886#0: *11 connect() to unix:/tmp/thin.0.sock failed (2: No such file or dir