LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-26-2012, 02:48 PM   #1
PacMan?
LQ Newbie
 
Registered: Jan 2012
Posts: 18

Rep: Reputation: Disabled
apache - fatal error - unable to change to uid: 48


hi friends,

there has been a increase in my clients server's traffic and its causing apache to stop exit:

Code:
[Sun Feb 26 14:39:34 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 48
[Sun Feb 26 14:39:34 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 48
[Sun Feb 26 14:39:34 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 48
[Sun Feb 26 14:39:34 2012] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 48
[Sun Feb 26 14:39:35 2012] [alert] Child 22405 returned a Fatal error... Apache is exiting!
ive been researching it for the past 6 hours or so and everything leads to the fix being "ulimit -n 9999 && ulimit -u 9999"

On a dedicated server, do you think it's bad to have "open files" and "max user processes" to unlimited?

also, can/will these ever exceed MaxClients? for example, hypothetically lets say you have 1,000 people connected to the server...will apache ever need more than 1,000 file descriptors and/or user processes open for these 1,000 connections?

thanks in advance

ps...
Code:
# lsof | grep httpd | wc -l
137101

# lsof | grep apache | wc -l
125979

Last edited by PacMan?; 02-26-2012 at 03:22 PM.
 
Old 03-10-2012, 02:39 PM   #2
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
Apache fails on setuid: 48

First you should check out this page regarding a bug:

link

Second, I do not know why you are running the particular command lsof | grep httpd/apache | wc -l - you could explain what you are doing.

Third, apache's httpd.conf would help to see what it is you are doing, I am assuming uid 48 is apache.

Fourth, connections to web servers are ephemeral, in other words the browser sends a GET the server responds and there is no longer a connection, so it seems unlikely that thousands of connections would be occurring simultaneously unless you are running an interactive game server.

So more information is required.

Linux flavor and version,
Apache version,
Any other helper programs such as perl or php etc and their versions and role played.
The game being served if this is the case.

A copy of httpd.conf, apache error_log and apache access_log

Thanks.
 
  


Reply



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
Unable to run startx - fatal error 104 Kenneth1964 Red Hat 5 02-06-2009 12:49 AM
apache 1.3.27, https url returns error -12263 in Firefox, fatal error (40) in Opera leo22838 Linux - Server 0 04-04-2008 01:51 PM
Apache: suPHP: how to change UID value? murr4y Linux - Software 1 06-12-2005 04:10 PM
mixxx under suse 9.1 fatal error Unable to resolve GL/GLX symbols ranjo Linux - Software 3 06-20-2004 03:27 PM
unable to get Xwindows to load..fatal error..pls help 1question Linux - Newbie 2 07-16-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 PM.

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