Opened 8 years ago

Closed 8 years ago

#76 closed defect (invalid)

error 500 on /xcache-admin

Reported by: till Owned by: moo
Priority: minor Milestone:
Component: cacher Version: 1.2-dev
Keywords: xcache php lighttpd error500 Cc:
Application: xcache-admin PHP Version: 5.1.6
Other Exts: SAPI: FastCGI
Probability: Blocked By:
Blocking:

Description

Versions:

[ebuild   R   ] dev-lang/php-5.1.6-r6  
[ebuild   R   ] www-servers/lighttpd-1.4.13-r1  
[ebuild   R   ] dev-php5/xcache-1.2.0 

The log produces the following error:

2007-02-27 16:57:46: (mod_fastcgi.c.2424) unexpected end-of-file (perhaps the fastcgi process died): pid: 7972 socket: tcp:127.0.0.1:1029 
2007-02-27 16:57:46: (mod_fastcgi.c.3209) response not received, request sent: 1254 on socket: tcp:127.0.0.1:1029 for /xcache-admin/index.php , closing connection

My xcache settings:

xcache.cacher="1"
xcache.size="64M"
xcache.count="2"
xcache.slots="8k"
xcache.var_size="0"
xcache.var_count="1"
xcache.readonly_protection="0"
xcache.mmap_path="/tmp/xcache/cache"
xcache.stat="1"
xcache.optimizer="0"
xcache.coverager="0"
xcache.coveragedump_directory="/tmp/xcache"
xcache.admin.user="till"
xcache.admin.pass="<md5 here>"

Change History (3)

comment:1 follow-up: Changed 8 years ago by moo

are you sure your php can create /tmp/xcache/cache? try to disable xcache and make a php script <?php touch("/tmp/xcache/cache") ?> and see if it creates the file

try strace if u can run external-spawned php

$ strace -s200 php -b 1026

and configure lighttpd to connect it for php-fcgi instead of spawning itself

comment:2 in reply to: ↑ 1 Changed 8 years ago by till

Replying to moo:

are you sure your php can create /tmp/xcache/cache? try to disable xcache and make a php script <?php touch("/tmp/xcache/cache") ?> and see if it creates the file

The xcache directory and (xcache/)cache file both belong to the lighttpd user which is used by the lighttpd. I initially touched the "cache" file and chown'ed it. When I tail/less it now, it contains some "mambo jambo". So it looks like it's used indeed.

I created the following script (because I did not want to mess with the cache on runtime):

<?php
if (is_writable('/tmp/xcache/cache'))
{
    die('hooray!');
}
die('no. :-(');
?>

Run it through the browser and its reply is "hooray!".

try strace if u can run external-spawned php

I've never tried the part where it uses the external handler to manage processes, but I will try this tomorrow.

comment:3 Changed 8 years ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

no feedback, closing. i need a strace output

Note: See TracTickets for help on using tickets.