| From | Sent On | Attachments |
|---|---|---|
| John Mccarthy | Apr 20, 2009 9:33 pm | |
| AMP Admin | Apr 20, 2009 10:05 pm | |
| John Mccarthy | Apr 20, 2009 10:38 pm | |
| John Mccarthy | Apr 20, 2009 11:07 pm | |
| Igor Sysoev | Apr 21, 2009 12:12 am | |
| AMP Admin | Apr 21, 2009 10:30 am | |
| Igor Sysoev | Apr 21, 2009 1:34 pm | |
| AMP Admin | Apr 21, 2009 1:59 pm | |
| Igor Sysoev | Apr 22, 2009 4:50 am | |
| AMP Admin | Apr 22, 2009 6:52 am | |
| Igor Sysoev | Apr 22, 2009 6:56 am | |
| AMP Admin | Apr 22, 2009 7:38 am | |
| Igor Sysoev | Apr 22, 2009 7:45 am | |
| AMP Admin | Apr 22, 2009 8:47 am | |
| Igor Sysoev | Apr 22, 2009 9:25 am | |
| AMP Admin | Apr 22, 2009 9:16 pm | |
| Jim Ohlstein | Apr 22, 2009 9:44 pm | |
| AMP Admin | Apr 23, 2009 5:53 am | |
| Nuno Magalhães | Apr 23, 2009 6:01 am | |
| AMP Admin | Apr 24, 2009 6:44 am | |
| Igor Sysoev | Apr 24, 2009 8:50 am | |
| AMP Admin | Apr 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.
-- Posted via http://www.ruby-forum.com/.





