Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error 324 (net::ERR_EMPTY_RESPONSE). when using memcache in kohana

i'm getting this error when i try to use memcache using kohana. all i did was changed the hostname in the configuration file and used $cache = Cache::instance('memcache');.

i can telnet my memcached servers so probably the problem is not there.

any help?

like image 712
gianebao Avatar asked Jun 13 '11 10:06

gianebao


2 Answers

When using a PHP framework like FuelPHP https://fuelphp.com/forums/topics/view/4256#11344

Problem

  • In Google Chrome "Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data."
  • No PHP errors, due to Apache dying before anything is sent back to the browser
  • In Apache logs, this not helpful message "Error [notice] child pid 19647 exit signal Segmentation fault (11)"

Solution Double check there is an opening php tag (duh!), or check for other silly, rookie syntax mistakes.

like image 75
allella Avatar answered Sep 19 '22 18:09

allella


The error described is a Google Chrome error. This suggests that Kohana is not responding with anything, most likely because the error/exception handling is being suppressed. Check that PHP error_reporting is on (E_ALL is a good value).

If there still is no output, it could be that PHP is segfaulting during execution. If so you should be able to find out what is wrong in your web server logs if not the system log.

My best guess is that php-memcache and/or the memcache library is not compiled correctly or has been corrupted.

like image 36
samsoir Avatar answered Sep 19 '22 18:09

samsoir