#2471 closed defect (fixed)
No way to set RLIMIT_NPROC for apache
Reported by: | alsroot | Owned by: | sascha_silbe |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | infrastructure | Version: | Unspecified |
Severity: | Unspecified | Keywords: | |
Cc: | bernie | Distribution/OS: | Unspecified |
Bug Status: | Unconfirmed |
Description
At some point, sunjammer apache started failing to start with errors like:
[Fri Oct 22 15:44:26 2010] [notice] [mod_asn] compiled with APR/APR-Util 1.2.12/1.2.12 [Fri Oct 22 15:44:26 2010] [warn] RSA server certificate CommonName (CN) `www.sugarlabs.org' does NOT match server name!? [Fri Oct 22 15:44:26 2010] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Fri Oct 22 15:44:26 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec) [Fri Oct 22 15:44:26 2010] [notice] [mod_asn] compiled with APR/APR-Util 1.2.12/1.2.12 [Fri Oct 22 15:44:26 2010] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads. [Fri Oct 22 15:44:26 2010] [notice] mod_python: using mutex_directory /tmp [Fri Oct 22 15:44:26 2010] [warn] RSA server certificate CommonName (CN) `www.sugarlabs.org' does NOT match server name!? [Fri Oct 22 15:44:26 2010] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366) [Fri Oct 22 15:44:26 2010] [warn] mod_wsgi: Compiled for Python/2.6.1+. [Fri Oct 22 15:44:26 2010] [warn] mod_wsgi: Runtime using Python/2.6.5. [Fri Oct 22 15:44:26 2010] [warn] mod_wsgi: Python module path '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.> [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30583): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30581): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30586): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30582): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30646): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30656): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30657): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30658): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30712): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30727): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30729): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30728): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30746): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30803): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30801): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: mod_wsgi (pid=30850): Unable to change to uid=33. [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 33 [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 33 [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 33 [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 33 [Fri Oct 22 15:44:26 2010] [alert] (11)Resource temporarily unavailable: setuid: unable to change to uid: 33 [Fri Oct 22 15:44:27 2010] [notice] Apache/2.2.14 (Ubuntu) mod_asn/1.5 mod_mirrorbrain/2.13.4 Phusion_Passenger/2.2.7 PHP/5.2.6-3ubuntu4.6 with Suhosin-Patch > [Fri Oct 22 15:44:27 2010] [alert] Child 30852 returned a Fatal error... Apache is exiting!
but started work after:
# ulimit -u 700 # apache2ctl restart
Change History (4)
comment:1 Changed 12 years ago by alsroot
comment:2 Changed 12 years ago by alsroot
- Cc bernie added
comment:3 Changed 12 years ago by bernie
- Resolution set to fixed
- Status changed from new to closed
I guess this fixed the issue.
comment:4 Changed 11 years ago by alsroot
The ulimit setting was moved to /etc/default/apache2
Note: See
TracTickets for help on using
tickets.
I've added ulimit -u 700 to /etc/init.d/apache2 to not fail for now
(there was another failed startup).