échoué (104: Connection reset by peer)
Nous utilisons le php5-fpm et de nginx.
# nginx -v nginx version: nginx/1.1.19
* # php -v PHP 5.3.27-1~dotdeb.0 with Suhosin-Patch (cli) (construit: le 25 Juillet 2013 19:30:39) Copyright (c) 1997-2013 Le PHP Group Zend Engine v2.3.0, le droit d'Auteur (c) 1998-2013 Zend Technologies avec Xdebug v2.2.3, le droit d'Auteur (c) 2002-2013, par Derick Rethans *
Ai l'erreur suivante,
2013/08/21 20:00:20 [erreur] 12740#0: *46 recv() a échoué (104: Connection reset by peer) lors de la lecture en-tête de réponse à partir de l'amont, du client: 172.17.7.12, serveur: fe.test.locale, demande: "OBTENIR /search?gender=female&ageFrom=20&ageTo=32&religionId=&casteId=&countryId=&heightFrom=&heightTo=&profileImageStatus=%28y+p%29&search=Recherche HTTP/1.1", en amont: "fastcgi://unix:/var/run/php5-fpm.chaussette:", de l'hôte: "fe.test.locaux", parrain: "http://fe.test.local/
PHP5-FPM configuration,
# grep ^[^\;] /etc/php5/fpm/php-fpm.conf [global] pid = /var/run/php5-fpm.pid error_log = /var/log/php5-fpm.journal log_level = avis process_control_timeout = 30 include=/etc/php5/fpm/pool.d/*.conf
# grep ^[^\;] /etc/php5/fpm/pool.d/www.conf [www] écouter = /var/run/php5-fpm.chaussette écouter.carnet de commandes = -1 utilisateur = www-data groupe = www-data pm = dynamique pm.max_children = 10 pm.start_servers = 4 pm.min_spare_servers = 2 pm.max_spare_servers = 6 rlimit_files = 131072 rlimit_core = illimité chdir = /
Nginx fascgi configuration de la partie
localisation ~ \.php$ { fastcgi_index index.php; inclure fastcgi_params; fastcgi_connect_timeout 120; fastcgi_send_timeout 600; fastcgi_read_timeout 600; fastcgi_buffers 8 256k; fastcgi_buffer_size 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; client_max_body_size 20M; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php5-fpm.chaussette; }
# strace -f -s 8000 -p 12761 Processus 12761 joint à l'interruption de quitter epoll_wait(9, {}, 1, 944) = 0 epoll_wait(9, {}, 1, 1000) = 0 epoll_wait(9, {}, 1, 1000) = 0 epoll_wait(9, 269f530, 1, 1000) = -1 EINTR (appel système Interrompu) --- SIGCHLD de l'Enfant (quitté) @ 0 (0) --- write(6, "C", 1) = 1 rt_sigreturn(0x6) = -1 EINTR (appel système Interrompu) epoll_wait(9, {{EPOLLIN, {u32=15427040, u64=15427040}}}, 1, 122) = 1 lire(4, "C", 1) = 1 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], WNOHANG|WSTOPPED, NULL) = 12826 écrire(3, "[21-Août-2013 19:33:37] ATTENTION: [pool www] enfant 12826 terminé avec le code 127 après 275.844033 secondes avant de commencer\n", 112) = 112 clone(Processus 12832 joint (en attente d'un parent) Processus 12832 reprise (parent 12761 prêt) child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd7a31cfa10) = 12832 [pid 12832] set_robust_list(0x7fd7a31cfa20, 0x18) = 0 [pid 12832] dup2(1, 2) = 2 [pid 12832] fermer(3) = 0 [pid 12832] dup2(7, 0) = 0 [pid 12832] geteuid() = 0 [pid 12832] setrlimit(RLIMIT_NOFILE, {rlim_cur=128*1024, rlim_max=128*1024}) = 0 [pid 12832] setrlimit(RLIMIT_CORE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 [pid 12832] chdir("/") = 0 [pid 12832] setgid(33) = 0 [pid 12832] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3 [pid 12832] lire(3, "65536\n", 31) = 6 [pid 12832] fermer(3) = 0 [pid 12832] open("/etc/group", O_RDONLY|O_CLOEXEC) = 3 [pid 12832] lseek(3, 0, SEEK_CUR) = 0 [pid 12832] fstat(3, {st_mode=S_IFREG|0644, st_size=777, ...}) = 0 [pid 12832] mmap(NULL, 777, PROT_READ, MAP_SHARED, 3, 0) = 0x7fd7a31c1000 [pid 12832] lseek(3, 777, SEEK_SET) = 777 [pid 12832] fstat(3, {st_mode=S_IFREG|0644, st_size=777, ...}) = 0 [pid 12832] munmap(0x7fd7a31c1000, 777) = 0 [pid 12832] fermer(3) = 0 [pid 12832] setgroups(1, [33]) = 0 [pid 12832] setuid(33) = 0 [pid 12832] prctl(PR_SET_DUMPABLE, 1) = 0 [pid 12832] fermer(4) = 0 [pid 12832] fermer(6) = 0 [pid 12832] rt_sigaction(SIGTERM, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] rt_sigaction(SIGUSR1, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] rt_sigaction(SIGUSR2, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] rt_sigaction(SIGQUIT, {0x7633f0, [], SA_RESTORER|SA_RESTART, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12832] fermer(7) = 0 [pid 12832] accepter(0, [pid 12761] écrire(3, "[21-Août-2013 19:33:37] AVIS: [pool www] enfant 12832 commencé\n", 62) = 62 [pid 12761] wait4(-1, 0x7fff07258a7c, WNOHANG|WSTOPPED, NULL) = 0 [pid 12761] lire(4, 0x7fff07258b5f, 1) = -1 EAGAIN (Ressource temporairement non disponible) [pid 12761] epoll_wait(9, {}, 1, 108) = 0 [pid 12761] epoll_wait(9, {}, 1, 1000) = 0 [pid 12761] epoll_wait(9, 269f530, 1, 1000) = -1 EINTR (appel système Interrompu) [pid 12761] --- SIGCHLD de l'Enfant (quitté) @ 0 (0) --- [pid 12761] write(6, "C", 1) = 1 [pid 12761] rt_sigreturn(0x6) = -1 EINTR (appel système Interrompu) [pid 12761] epoll_wait(9, {{EPOLLIN, {u32=15427040, u64=15427040}}}, 1, 769) = 1 [pid 12761] lire(4, "C", 1) = 1 [pid 12761] wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 127}], WNOHANG|WSTOPPED, NULL) = 12830 [pid 12761] écrire(3, "[21-Août-2013 19:33:39] ATTENTION: [pool www] enfant 12830 terminé avec le code 127 après 10.053632 secondes avant de commencer\n", 111) = 111 [pid 12761] clone(Processus 12833 attaché child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd7a31cfa10) = 12833 [pid 12761] écrire(3, "[21-Août-2013 19:33:39] AVIS: [pool www] enfant 12833 commencé\n", 62) = 62 [pid 12761] wait4(-1, 0x7fff07258a7c, WNOHANG|WSTOPPED, NULL) = 0 [pid 12761] lire(4, 0x7fff07258b5f, 1) = -1 EAGAIN (Ressource temporairement non disponible) [pid 12761] epoll_wait(9, [pid 12833] set_robust_list(0x7fd7a31cfa20, 0x18) = 0 [pid 12833] dup2(1, 2) = 2 [pid 12833] fermer(3) = 0 [pid 12833] dup2(7, 0) = 0 [pid 12833] geteuid() = 0 [pid 12833] setrlimit(RLIMIT_NOFILE, {rlim_cur=128*1024, rlim_max=128*1024}) = 0 [pid 12833] setrlimit(RLIMIT_CORE, {rlim_cur=RLIM_INFINITY, rlim_max=RLIM_INFINITY}) = 0 [pid 12833] chdir("/") = 0 [pid 12833] setgid(33) = 0 [pid 12833] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3 [pid 12833] lire(3, "65536\n", 31) = 6 [pid 12833] fermer(3) = 0 [pid 12833] open("/etc/group", O_RDONLY|O_CLOEXEC) = 3 [pid 12833] lseek(3, 0, SEEK_CUR) = 0 [pid 12833] fstat(3, {st_mode=S_IFREG|0644, st_size=777, ...}) = 0 [pid 12833] mmap(NULL, 777, PROT_READ, MAP_SHARED, 3, 0) = 0x7fd7a31c1000 [pid 12833] lseek(3, 777, SEEK_SET) = 777 [pid 12833] fstat(3, {st_mode=S_IFREG|0644, st_size=777, ...}) = 0 [pid 12833] munmap(0x7fd7a31c1000, 777) = 0 [pid 12833] fermer(3) = 0 [pid 12833] setgroups(1, [33]) = 0 [pid 12833] setuid(33) = 0 [pid 12833] prctl(PR_SET_DUMPABLE, 1) = 0 [pid 12833] fermer(4) = 0 [pid 12833] fermer(6) = 0 [pid 12833] rt_sigaction(SIGTERM, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] rt_sigaction(SIGUSR1, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] rt_sigaction(SIGUSR2, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] rt_sigaction(SIGQUIT, {0x7633f0, [], SA_RESTORER|SA_RESTART, 0x7fd7a02234a0}, NULL, 8) = 0 [pid 12833] fermer(7) = 0 [pid 12833] accepter(0, [pid 12761] {}, 1, 766) = 0 [pid 12761] epoll_wait(9, {}, 1, 1000) = 0'enter code ici" [pid 12761] epoll_wait(9, {}, 1, 1000) = 0
Vous devez vous connecter pour publier un commentaire.
Ci-dessus nginx erreur indiquent que le problème est lié à la fastcgi(php-fpm).
Après l'activation de la "catch_workers_output" /etc/php5/fpm/pool.d/www.conf
Eu l'erreur pertinentes sur php5-fpm.journal. Maintenant comprendre que le problème est lié à la AMQP module.
[21-Août-2013 23:32:57] ATTENTION: [pool www] enfant 16091 dit dans stderr: "php-fpm: piscine www: symbol lookup error: /usr/lib/php5/20090626/amqp.so: undefined symbol: amqp_open_socket"
Problème a été résolu afterrecompiled et installer amqp module
catch_workers_output
montre rien de nouveau. Probablement, la raison en est quelque part dans le opcache.