hachemsoft / redis-cache-prestashop

Hs Cache Redis Prestashop module
23 stars 6 forks source link

Erreur 502 #2

Open ghost opened 9 years ago

ghost commented 9 years ago

Bonjour,

J'ai voulu tester votre script sur un serveur de test avec Nginx, php5.5 fpm et php5-redis installé (et redis-server bien évidemment). Je tourne sous PS 1.6.0.9. Juste après l'installation du module, j'ai une erreur 502 dans mon navigateur.

Avez vous des pistes pour résoudre ce souci ? Cdt

hachemsoft commented 9 years ago

Bonjour, J'aimerais bien vous aider mais est ce que vous pouvez coller ici les errors logs de votre nginx ?

ghost commented 9 years ago

2014/11/22 10:06:22 [error] 6042#0: *658759 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: monip, server: monsite, request: "GET monsite", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "monsite"

hachemsoft commented 9 years ago

Je crois que c'est lié au php-fpm essaye ça comme solution : http://stackoverflow.com/questions/10003978/php-fpm-and-nginx-502-bad-gateway

ghost commented 9 years ago

J'ai déjà cette config, tout fonctionne parfaitement quand je n'active pas le module.

ghost commented 9 years ago

Je continue de creuser, j'ai ces deux errors dans php-fpm.log à chaque chargement du site quand le module Redis cache est activé.

[24-Nov-2014 20:37:23] WARNING: [pool www] child 19063 exited on signal 11 (SIGSEGV) after 349.457641 seconds from start [24-Nov-2014 20:37:23] NOTICE: [pool www] child 19649 started

ghost commented 9 years ago

Et ça dans le syslog mysqld: 141124 20:47:16 [Warning] Aborted connection 371718 to db: 'dbbeta' user: 'phpbeta' host: 'localhost' (Unknown error)

ghost commented 9 years ago

strace php index.php

(j'ai tronqué le début)

stat("/var/www/sites/beta.prestashop/public_html/classes/Configuration.php", {st_mode=S_IFREG|0775, st_size=18235, ...}) = 0 lstat("/var/www/sites/beta.prestashop/public_html/classes/Configuration.php", {st_mode=S_IFREG|0775, st_size=18235, ...}) = 0 open("/var/www/sites/beta.prestashop/public_html/classes/Configuration.php", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0775, st_size=18235, ...}) = 0 fstat(4, {st_mode=S_IFREG|0775, st_size=18235, ...}) = 0 fstat(4, {st_mode=S_IFREG|0775, st_size=18235, ...}) = 0 mmap(NULL, 18235, PROT_READ, MAP_SHARED, 4, 0) = 0x7f53ab351000 brk(0x14e3000) = 0x14e3000 munmap(0x7f53ab351000, 18235) = 0 close(4) = 0 poll([{fd=3, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout) sendto(3, "\355\0\0\0\3SELECT c.name, cl.`id_lan"..., 241, 0, NULL, 0) = 241 recvfrom(3, "\1\0\0\1\0057\0\0\2\3def\10dbpsbeta\1c\20ps_conf"..., 16384, 0, NULL, NULL) = 9752 recvfrom(3, "\0\243\34PS_ADMINREFRESH_NOTIFICATION\373"..., 16384, 0, NULL, NULL) = 16384 recvfrom(3, "81\373\373\0011\0011\27\0\0k\17KWX_CATEGORY_82\373\0010\1"..., 16384, 0, NULL, NULL) = 16384 recvfrom(3, "egamenu_show_depth\373\0014\0011\0013\37\0\0\"\26po"..., 16384, 0, NULL, NULL) = 16384 brk(0x1508000) = 0x1508000 recvfrom(3, "avis-clients"..., 16384, 0, NULL, NULL) = 16384 recvfrom(3, "5\373\373\373\373\25\0\0\310\17KWX_CATEGORY_86\373\0010\373\373\30\0"..., 16384, 0, NULL, NULL) = 16384 brk(0x152c000) = 0x152c000 recvfrom(3, "\0012\33\0\0\22\24KWX_CATEGORY_DLV_346\373\373\0011\1"..., 16384, 0, NULL, NULL) = 13538