atom feed22 messages in ru.sysoev.nginxRe: RE: getgrnam("root") failed
FromSent OnAttachments
John MccarthyApr 20, 2009 9:33 pm 
AMP AdminApr 20, 2009 10:05 pm 
John MccarthyApr 20, 2009 10:38 pm 
John MccarthyApr 20, 2009 11:07 pm 
Igor SysoevApr 21, 2009 12:12 am 
AMP AdminApr 21, 2009 10:30 am 
Igor SysoevApr 21, 2009 1:34 pm 
AMP AdminApr 21, 2009 1:59 pm 
Igor SysoevApr 22, 2009 4:50 am 
AMP AdminApr 22, 2009 6:52 am 
Igor SysoevApr 22, 2009 6:56 am 
AMP AdminApr 22, 2009 7:38 am 
Igor SysoevApr 22, 2009 7:45 am 
AMP AdminApr 22, 2009 8:47 am 
Igor SysoevApr 22, 2009 9:25 am 
AMP AdminApr 22, 2009 9:16 pm 
Jim OhlsteinApr 22, 2009 9:44 pm 
AMP AdminApr 23, 2009 5:53 am 
Nuno MagalhãesApr 23, 2009 6:01 am 
AMP AdminApr 24, 2009 6:44 am 
Igor SysoevApr 24, 2009 8:50 am 
AMP AdminApr 24, 2009 9:21 am 
Subject:Re: RE: getgrnam("root") failed
From:John Mccarthy (lis@ruby-forum.com)
Date:Apr 20, 2009 10:38:13 pm
List:ru.sysoev.nginx

AMP Admin wrote:

Prolly shouldn't run this as root.

My guess would be to change user root root; to user nginx nginx; and see what happens.

Thanks for the response. It seems the problem was that on my Mac there was no group 'root', so I put 'wheel' and nginx starts up.

Prolly shouldn't run this as root.

Yeah, It seems that AWS only lets you SSH in to an EC2 instance as root, so all of my capistrano code checkouts happen under root, so then my mongrels need to be run as root so they can write to log files/folders. I guess I can customize the cap task to switch user after SSH and before checking out the repository.

Since I need to sudo /usr/local/nginx/sbin/nginx to start nginx, won't that run it as root?

Using the same configuration, I get a 502 error when navigating to http://localhost

The error log look like the following for each request: 2009/04/21 01:30:21 [error] 14504#0: *20 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://0.0.0.0:8082/", host: "localhost:80" 2009/04/21 01:30:21 [error] 14504#0: *20 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://0.0.0.0:8080/", host: "localhost:80" 2009/04/21 01:30:21 [error] 14504#0: *20 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://0.0.0.0:8081/", host: "localhost:80" 2009/04/21 01:30:21 [error] 14504#0: *20 no live upstreams while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://mongrel_cluster1/", host: "localhost:80"

I get the nginx 502 Bad Gateway page.