strange 503 service unavailable

Discussion in 'PHP' started by justjay202, Nov 5, 2010.

  1. justjay202

    justjay202 New Member

    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|utmccn=(organic)|utmcmd=organic|utmctr=jgoodin%20china; store=default; __utma=194726454.791021586.1278612516.1288727426.1288738075.17; adminhtml=uhok2pcpit6t62nhri53i5ukk1; frontend=c7n815rt58lkl17n0ku8q3le15
  2. NiteWave

    NiteWave Administrator

    when access beta.jgoodin.com/xcache-admin now,

    "XCache is not loaded
    Please check /usr/local/lsws/lsphp5/lib/php.ini"
  3. justjay202

    justjay202 New Member

    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?
  4. NiteWave

    NiteWave Administrator

    what's the settings of xcache ?
    find it in php.ini or phpinfo()
  5. justjay202

    justjay202 New Member

    ; 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]
  6. NiteWave

    NiteWave Administrator

    the cache's size(256M + 32M) may be too big. it may exceed php process memory limit so those errors in stderr.log

Share This Page