Welcome! Log In Create A New Profile

Advanced

Re: RE: getgrnam("root") failed

John Mccarthy
April 21, 2009 02:07AM
John Mccarthy wrote:
> 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.



I found the error. In my mongrel_cluster.yml configuration file, I
specified the address as localhost, instead of 0.0.0.0.

Thanks for your help!,
John
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

getgrnam("root") failed

John Mccarthy April 21, 2009 12:33AM

Re: RE: getgrnam("root") failed

Igor Sysoev April 21, 2009 03:12AM

Re: RE: getgrnam("root") failed

John Mccarthy April 21, 2009 02:07AM

Re: RE: getgrnam("root") failed

John Mccarthy April 21, 2009 01:38AM

RE: getgrnam("root") failed

AMP Admin April 21, 2009 01:05AM

Logs Assistance

AMP Admin April 21, 2009 01:30PM

Re: Logs Assistance

Igor Sysoev April 21, 2009 04:34PM

RE: Logs Assistance

AMP Admin April 21, 2009 05:00PM

Re: Logs Assistance

Igor Sysoev April 22, 2009 07:50AM

RE: Logs Assistance

AMP Admin April 22, 2009 09:53AM

Re: Logs Assistance

Igor Sysoev April 22, 2009 09:56AM

RE: Logs Assistance

AMP Admin April 22, 2009 10:39AM

Re: Logs Assistance

Igor Sysoev April 22, 2009 10:45AM

RE: Logs Assistance

AMP Admin April 22, 2009 11:47AM

Re: Logs Assistance

Igor Sysoev April 22, 2009 12:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready