Nginx worker process wont start

i get this error and it fails to start, i have 8GB free ram

2008/05/21 08:02:19 [emerg] 30558#0: setuid(500) failed (11: Resource
temporarily unavailable)
2008/05/21 08:02:19 [alert] 30557#0: worker process 30558 exited with
fatal code 2 and can not be respawn

free -m
total used free shared buffers
cached
Mem: 16086 7796 8289 0 80
4697
-/+ buffers/cache: 3018 13068
Swap: 1983 0 1983

On Wed, May 21, 2008 at 08:04:21AM -0700, [email protected] wrote:

Mem: 16086 7796 8289 0 80 4697
-/+ buffers/cache: 3018 13068
Swap: 1983 0 1983

http://linux.die.net/man/2/setuid

EAGAIN
The uid does not match the current uid and uid brings process
over it’s NPROC rlimit.

It’s the same error that was returned to fork()

EAGAIN
It was not possible to create a new process because the caller’s
RLIMIT_NPROC resource limit was encountered. To exceed this limit,
the process must have either the CAP_SYS_ADMIN or the
CAP_SYS_RESOURCE
capability.

On Wed, May 21, 2008 at 8:23 AM, Igor S. [email protected] wrote:

On Wed, May 21, 2008 at 08:04:21AM -0700, rem[email protected] wrote:

i get this error and it fails to start, i have 8GB free ram
http://linux.die.net/man/2/setuid

EAGAIN
The uid does not match the current uid and uid brings process
over it’s NPROC rlimit.

more /etc/passwd | grep mark
mark:x:500:500::/home/mark:/bin/bash

from nginx configure

user mark;
worker_processes 1;

and this is how i start nginx
sudo /opt/local/sbin/nginx -c
/home/mark/work/infrastructure/nginx_staticfarm.conf

am i doing something wrong?

It’s the same error that was returned to fork()

EAGAIN
It was not possible to create a new process because the caller’s
RLIMIT_NPROC resource limit was encountered. To exceed this limit,
the process must have either the CAP_SYS_ADMIN or the CAP_SYS_RESOURCE
capability.

do you know how do I give these capabilities to the processes?

On Wed, May 21, 2008 at 8:46 AM, Igor S. [email protected] wrote:

over it’s NPROC rlimit.
sudo /opt/local/sbin/nginx -c
/home/mark/work/infrastructure/nginx_staticfarm.conf

am i doing something wrong?

What does

ps -U mark | wc -l

ps -U mark | wc -l
278

What do

limits
or
ulimit -a

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 137216
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 32768
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

On Wed, May 21, 2008 at 08:37:21AM -0700, [email protected] wrote:

more /etc/passwd | grep mark

am i doing something wrong?

What does

ps -U mark | wc -l

show ?

It’s the same error that was returned to fork()

EAGAIN
It was not possible to create a new process because the caller’s
RLIMIT_NPROC resource limit was encountered. To exceed this limit,
the process must have either the CAP_SYS_ADMIN or the CAP_SYS_RESOURCE
capability.

do you know how do I give these capabilities to the processes?

What do

limits
or
ulimit -a

show ?

On Wed, May 21, 2008 at 08:59:10AM -0700, [email protected] wrote:

The uid does not match the current uid and uid brings process
and this is how i start nginx
ps -U mark | wc -l

ulimit -a
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited

There is no limit for processes and you run not too much processes -
278.
I have no idea why Linux returns EAGAIN.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs