nginx not responding to requests

Igor Sysoev is at rambler-co.ru
Tue Sep 23 08:48:28 MSD 2008


On Mon, Sep 22, 2008 at 04:40:42PM -0500, Jim Freeze wrote:

> I am running nginx 0.6.1 on Linux  2.4.21-40.ELsmp #1 SMP.
> I have a very simple config file and am just trying to get it
> working with static pages.
> 
> I can telnet to the port that nginx is listening on, but it doesn't appear
> to be getting input and there is definitely no response from the server.
> 
> The error.log and the config file are below.
> Any help would be appreciated.
> 
> Thanks
> 
> Jim
> 
> 2008/09/22 16:37:23 [debug] 21465#0: bind() 0.0.0.0:8005 #5
> 2008/09/22 16:37:23 [notice] 21465#0: using the "rtsig" event method
> 2008/09/22 16:37:23 [debug] 21465#0: counter: 0000002A9566D080, 1
> 2008/09/22 16:37:23 [notice] 21465#0: nginx/0.6.17
> 2008/09/22 16:37:23 [notice] 21465#0: built by gcc 3.2.3 20030502 (Red
> Hat Linux 3.2.3-54)
> 2008/09/22 16:37:23 [notice] 21465#0: OS: Linux 2.4.21-40.ELsmp
> 2008/09/22 16:37:23 [notice] 21465#0: sysctl(KERN_RTSIGMAX): 1024
> 2008/09/22 16:37:23 [notice] 21465#0: getrlimit(RLIMIT_NOFILE): 1024:1024
> 2008/09/22 16:37:23 [debug] 21467#0: write: 7, 0000007FBFFF8D50, 6, 0
> 2008/09/22 16:37:23 [debug] 21467#0: setproctitle: "nginx: master
> process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/min1"
> 2008/09/22 16:37:23 [notice] 21467#0: start worker processes
> 2008/09/22 16:37:23 [debug] 21467#0: channel 7:8
> 2008/09/22 16:37:23 [notice] 21467#0: start worker process 21468
> 2008/09/22 16:37:23 [debug] 21467#0: channel 9:10
> 2008/09/22 16:37:23 [notice] 21467#0: start worker process 21469
> 2008/09/22 16:37:23 [debug] 21467#0: pass channel s:1 pid:21469 fd:9
> to s:0 pid:21468 fd:7
> 2008/09/22 16:37:23 [debug] 21467#0: sigsuspend
> 2008/09/22 16:37:23 [debug] 21468#0: malloc: 000000000058AF00:128
> 2008/09/22 16:37:23 [debug] 21468#0: malloc: 00000000005916C0:8192
> 2008/09/22 16:37:23 [debug] 21468#0: malloc: 0000002A95E39010:147456
> 2008/09/22 16:37:23 [debug] 21468#0: malloc: 00000000005A1BF0:106496
> 2008/09/22 16:37:23 [debug] 21468#0: malloc: 00000000005BBC00:106496
> 2008/09/22 16:37:23 [debug] 21468#0: rtsig add connection: fd:8 signo:43
> 2008/09/22 16:37:23 [debug] 21468#0: setproctitle: "nginx: worker process"
> 2008/09/22 16:37:23 [debug] 21468#0: worker cycle
> 2008/09/22 16:37:23 [debug] 21468#0: accept mutex locked
> 2008/09/22 16:37:23 [debug] 21468#0: rtsig add connection: fd:5 signo:43
> 2008/09/22 16:37:23 [debug] 21468#0: rtsig timer: -1
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 000000000058AF00:128
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 00000000005916C0:8192
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 0000002A95E39010:147456
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 00000000005A1BF0:106496
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 00000000005A1BF0:106496
> 2008/09/22 16:37:23 [debug] 21469#0: malloc: 00000000005BBC00:106496
> 2008/09/22 16:37:23 [debug] 21469#0: rtsig add connection: fd:10 signo:43
> 2008/09/22 16:37:23 [debug] 21469#0: setproctitle: "nginx: worker process"
> 2008/09/22 16:37:23 [debug] 21469#0: worker cycle
> 2008/09/22 16:37:23 [debug] 21469#0: accept mutex lock failed: 0
> 2008/09/22 16:37:23 [debug] 21469#0: rtsig timer: 500
> 2008/09/22 16:37:23 [debug] 21469#0: rtsig signo:-1 (11: Resource
> temporarily unavailable)
> 2008/09/22 16:37:24 [debug] 21469#0: timer delta: 530
> 2008/09/22 16:37:24 [debug] 21469#0: posted events 0000000000000000
> 2008/09/22 16:37:24 [debug] 21469#0: worker cycle
> 2008/09/22 16:37:24 [debug] 21469#0: accept mutex lock failed: 0
> 2008/09/22 16:37:24 [debug] 21469#0: rtsig timer: 500
> 2008/09/22 16:37:24 [debug] 21469#0: rtsig signo:-1 (11: Resource
> temporarily unavailable)
> 2008/09/22 16:37:24 [debug] 21469#0: timer delta: 510
> 2008/09/22 16:37:24 [debug] 21469#0: posted events 0000000000000000
> 2008/09/22 16:37:24 [debug] 21469#0: worker cycle

It's strange that there is 16 second pause. Or have you skipped
some duplicate llines ?

> 2008/09/22 16:37:40 [debug] 21469#0: worker cycle
> 2008/09/22 16:37:40 [debug] 21469#0: accept mutex lock failed: 0
> 2008/09/22 16:37:40 [debug] 21469#0: rtsig timer: 500
> 2008/09/22 16:37:40 [debug] 21469#0: rtsig signo:-1 (11: Resource
> temporarily unavailable)
> 2008/09/22 16:37:41 [debug] 21469#0: timer delta: 510
> 2008/09/22 16:37:41 [debug] 21469#0: posted events 0000000000000000
> 2008/09/22 16:37:41 [debug] 21469#0: worker cycle
> 2008/09/22 16:37:41 [debug] 21469#0: accept mutex lock failed: 0
> 2008/09/22 16:37:41 [debug] 21469#0: rtsig timer: 500
> 2008/09/22 16:37:41 [debug] 21469#0: rtsig signo:-1 (11: Resource
> temporarily unavailable)
> 
> 
> #-- nginx.conf file
> user me mygroup;
> worker_processes  2;
> error_log   logs/error.log debug;
> events {
>   worker_connections  1024;
> }
> http {
>   include mime.types;
>   default_type  application/octet-stream;
> 
>   log_format main '$remote_addr - $remote_user [$time_local] '
>                   '"$request" $status $body_bytes_sent "$http_referer" '
>                   '"$http_user_agent" "$http_x_forwarded_for"';
>   sendfile off;
> 
>   upstream merb {
>     server 127.0.0.1:8001;
>   }
> 
>  server {
>     listen 0.0.0.0:8005;
>     server_name mywebsite.com;
>     client_max_body_size 50M;
> 
>     root /path/to/public;
> 
>     access_log  logs/access.log main;
>   }
> }

Could you set "worker_processes 1" and retry the request and debug log ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list