LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-11-2017, 11:35 AM   #1
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Centos | ERROR (setreuid failed): Resource temporarily unavailable


Hi all!

Greetings.

There's a script failing with the below error:

Code:
/home/username/script: line XXX: cannot fork [Resource temporarily unavailable]
/var/log/messages:

Code:
May  7 04:12:01 server crond[7814]: (CRON) ERROR (setreuid failed): Resource temporarily unavailable
I was reading setreuid manpage but I can't figure out what resource should be modified for the user running. Any idea what I can check?

Code:
root@server # uname -a
Linux server 2.6.32-504.16.2.el6.x86_64 #1 SMP Tue Mar 10 17:01:00 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
root@server #
This is a CentOS 6.6 machine.

Thanks.

Last edited by ilesterg; 05-11-2017 at 01:13 PM.
 
Old 05-11-2017, 05:32 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
This is commonly caused by running out of file descriptors.

There are different file descriptor limits.

There is the systems total file descriptor limit, what do you get from the command:

Code:
sysctl fs.file-nr
From this command you will get 3 numbers. First is the number of used file descriptor the second is the number of allocated but not used file descriptor and the last is the system max file descriptor. If either of the first two numbers are new otr at the third you need to increase the number of file descriptors for the system of find out what is consuming them.

Also, you can increase the value of "nproc" parameter for user or all user's in /etc/security/limits.d/90-nproc.conf
 
1 members found this post helpful.
  


Reply

Tags
setreuid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb_bulk_write failed: Resource temporarily unavailable 915086731 Linux - Embedded & Single-board computer 0 09-21-2010 12:09 AM
SIOCGMIIPHY on 'eth1' failed: Resource temporarily unavailable surendra.adhikari Linux - Newbie 1 10-13-2008 08:11 AM
RHEL 4.0 AS mii-tool - SIOCGMIIPHY on eth1 failed: Resource temporarily unavailable Qwerty9119 Red Hat 2 07-04-2007 10:18 AM
Sendmail Error Deferred: Resource temporarily unavailable shawnbishop Linux - Software 3 03-19-2006 01:00 PM
cfork failed: Resource temporarily unavailable x2000koh Linux - Networking 0 05-11-2003 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration