LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > strange 503 service unavailable

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2010, 05:00 AM
justjay202 justjay202 is offline
New Member
 
Join Date: Nov 2010
Posts: 3
Default strange 503 service unavailable

I can see my main Magento site, can access a wordpress site within the folders of Magento, but can't access the xcache-admin site.

Can anyone shed any light?

I see this error in the server logs:

2010-11-05 04:40:51.286 INFO [76.174.196.5:51123-0#beta.jgoodin.com] connection to [/tmp/lshttpd/lsphp5.sock.688] on request #1, confirmed, 1, associated process: 30266, running: 1, error: Connection reset by peer!
2010-11-05 04:40:51.295 INFO [76.174.196.5:51123-0#beta.jgoodin.com] connection to [/tmp/lshttpd/lsphp5.sock.688] on request #0, confirmed, 1, associated process: 30266, running: 1, error: Connection reset by peer!
2010-11-05 04:40:51.304 INFO [76.174.196.5:51123-0#beta.jgoodin.com] connection to [/tmp/lshttpd/lsphp5.sock.688] on request #0, confirmed, 1, associated process: 30266, running: 1, error: Connection reset by peer!
2010-11-05 04:40:51.304 NOTICE [76.174.196.5:51123-0#beta.jgoodin.com] Max retries has been reached, 503!
2010-11-05 04:40:51.304 NOTICE [76.174.196.5:51123-0#beta.jgoodin.com] oops! 503 Service Unavailable
2010-11-05 04:40:51.304 NOTICE [76.174.196.5:51123-0#beta.jgoodin.com] Content len: 0, Request line:
GET /xcache-admin/ HTTP/1.1
2010-11-05 04:40:51.304 NOTICE [76.174.196.5:51123-0#beta.jgoodin.com] Cookie len: 255, __utmz=194726454.1288229630.14.5.utmcsr=google|utm ccn=(organic)|utmcmd=organic|utmctr=jgoodin%20chin a; store=default; __utma=194726454.791021586.1278612516.1288727426.1 288738075.17; adminhtml=uhok2pcpit6t62nhri53i5ukk1; frontend=c7n815rt58lkl17n0ku8q3le15
Reply With Quote
  #2  
Old 11-05-2010, 06:38 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
when access beta.jgoodin.com/xcache-admin now,

"XCache is not loaded
Please check /usr/local/lsws/lsphp5/lib/php.ini"
Reply With Quote
  #3  
Old 11-06-2010, 12:49 AM
justjay202 justjay202 is offline
New Member
 
Join Date: Nov 2010
Posts: 3
I disabled xCache as it was causing this 503 mess. I don't know what it was.

I found this in the stderror.log file..

[STDERR] PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:19:28.860 [STDERR] Failed creating file mapping
2010-11-05 04:19:28.860 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
Failed creating file mapping
2010-11-05 04:19:32.188 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 02010-11-05 04:21:44.470 [STDERR] /tmp/xcache: Cannot allocate memory
2010-11-05 04:21:44.471 [STDERR] Failed creating file mapping
2010-11-05 04:21:44.471 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 02010-11-05 04:21:44.471 [STDERR] PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:21:45.294 [STDERR] Failed creating file mapping
2010-11-05 04:21:45.294 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:21:47.030 [STDERR] Failed creating file mapping
2010-11-05 04:21:47.030 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
Failed creating file mapping
2010-11-05 04:21:52.981 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 02010-11-05 04:21:52.982 [STDERR] PHP Fatal error: XCache: Cannot create shm in Unknown on line 02010-11-05 04:29:00.409 [STDERR] /t$
2010-11-05 04:29:00.409 [STDERR] Failed creating file mapping
2010-11-05 04:29:00.409 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 02010-11-05 04:29:00.409 [STDERR] PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:29:01.261 [STDERR] Failed creating file mapping
2010-11-05 04:29:01.261 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
Failed creating file mapping
2010-11-05 04:29:21.153 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 02010-11-05 04:29:21.153 [STDERR] PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:31:50.598 [STDERR] Failed creating file mapping
2010-11-05 04:31:50.598 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 02010-11-05 04:43:58.069 [STDERR] /tmp/xcache: Cannot allocate memory
2010-11-05 04:43:58.069 [STDERR] Failed creating file mapping
2010-11-05 04:43:58.069 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory
2010-11-05 04:43:58.854 [STDERR] Failed creating file mapping
2010-11-05 04:43:58.854 [STDERR] PHP Fatal error: Failed creating file mapping in Unknown on line 0PHP Fatal error: XCache: Cannot create shm in Unknown on line 0/tmp/xcache: Cannot allocate memory

Don't know if that points to anything?
Reply With Quote
  #4  
Old 11-06-2010, 07:08 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
what's the settings of xcache ?
find it in php.ini or phpinfo()
Reply With Quote
  #5  
Old 11-07-2010, 12:59 AM
justjay202 justjay202 is offline
New Member
 
Join Date: Nov 2010
Posts: 3
; zend_extension=/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20060613/xcache.so
; xcache.cacher = On
; xcache.test=Off
; xcache.size = 256M
; xcache.count = 4
; xcache.var_size = 32M
; xcache.var_count = 1
; xcache.var_slots = 8000

; xcache.mmap_path = "/tmp/xcache"
; xcache.readonly_protection = Off
; xcache.optimizer = On
; xcache.coredump_directory = "/tmp/"
; xcache.coveragedump_directory = "/tmp/pcov/"
; xcache.coverager = Off

[below that my user settings]
Reply With Quote
  #6  
Old 11-07-2010, 04:42 PM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
the cache's size(256M + 32M) may be too big. it may exceed php process memory limit so those errors in stderr.log
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:14 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.