Steini87 Posted October 29, 2017 Share Posted October 29, 2017 Hey guys, So I decided it was time to get wit the times and upgrade our server PHP from 5.6 to 7.0 and MySQL from 5.5 to 5.7, it all went without a hitch. Nginx is 1.8 so the stats are System:Nginx 1.8PHP-FPM 7.0MySQL 5.7 Then it started happening, I realized that the issue ONLY happens on the supporttickets.php file, and nowhere else on the site, no other site reproduces this fault. Below are more indetail as I can get to this and since its ioncube encoded there is not much more information. 2017/10/29 10:45:39 [error] 21391#0: *144046 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?filter=1 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com" The moment I had checked and found this in the error, log in the NGINX log file I went on to check what happened at 10:45:39 in PHP-FPM [29-Oct-2017 10:45:39] WARNING: [pool www] child 3128 exited on signal 11 (SIGSEGV) after 1694.187287 seconds from start Now that I knew it was SIGSEV which means it faulted, after 1700 seconds nearly, I ran 3128 against the dmesg for just a little more information php-fpm[3318]: segfault at 7f8736400001 ip 00000000005be969 sp 00007fff727256d0 error 4 in php-fpm[400000+344000] Even this, this didn't tell me much so i made a core dump, and read it and this was the outcome with few debuginfo's missing but I am no expert on core reading so this is what it pushed out when the error happened Core was generated by `php-fpm: pool www '. Program terminated with signal 11, Segmentation fault. 0 0x00000000005be969 in zend_set_function_arg_flags (func=0x7f843b5eb188) at /usr/src/debug/php-7.0.24/Zend/zend_compile.c:4448 4448 if (UNEXPECTED(func->common.fn_flags & ZEND_ACC_VARIADIC && func->common.arg_info[i].pass_by_reference)) { Missing separate debuginfos, use: debuginfo-install c-ares-1.10.0-5.0.cf.rhel6.x86_64 libcurl-7.44.0-2.0.cf.rhel6.x86_64 libidn-1.18-2.el6.x86_64 libssh2-1.6.0-2.0.cf.rhel6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64 sqlite-3.6.20-1.el6.x86_64 (gdb) bt 0 0x00000000005be969 in zend_set_function_arg_flags (func=0x7f843b5eb188) at /usr/src/debug/php-7.0.24/Zend/zend_compile.c:4448 1 0x00007f844600ef2a in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 2 0x00007f844600f1f3 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 3 0x00007f8445fef414 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 4 0x00007f8445ff131b in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 5 0x00007f8445fb3b45 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 6 0x00007f8445fb70de in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 7 0x00007f8445fb3197 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 8 0x00007f8445fb5fb5 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 9 0x00007f8445fb8873 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 10 0x00007f8445fb3197 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 11 0x00007f8445fb5fb5 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 12 0x00007f8445fb77e1 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 13 0x00007f8445fb3197 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 14 0x00007f8445fb5fb5 in ?? () from /usr/lib64/php/modules/ioncube_loader_lin_7.0.so 15 0x00000000006742cb in zend_execute (op_array=0x7f844c07c1c0, return_value=<value optimized out>) at /usr/src/debug/php-7.0.24/Zend/zend_vm_execute.h:458 16 0x00000000005e0623 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/debug/php-7.0.24/Zend/zend.c:1443 17 0x00000000005814c0 in php_execute_script (primary_file=0x7fff0f35de50) at /usr/src/debug/php-7.0.24/main/main.c:2493 18 0x000000000068239e in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/php-7.0.24/sapi/fpm/fpm/fpm_main.c:1967 There is nothing more I hav on this, I did open a ticket to WHMCS but in case any of you know why this is happening on PHP 7.0 I would be very appreciative, it's PHP 7.0.24 from Webtatic repo. php70w Currently installed modules are [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv ionCube Loader json libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session shmop SimpleXML soap sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules] the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) None of which stand out to cause this, What frightens me is that this just happened after the upgrade of PHP version, and only on the supporttickets.php page nothing else, no other page reproduces this seen here 2017/10/29 09:44:24 [error] 21392#0: *133750 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?view=active HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com" 2017/10/29 09:50:14 [error] 21392#0: *134527 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: x.com, request: "GET /x-admin/supporttickets.php?view=active HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com" 2017/10/29 09:56:16 [error] 21394#0: *135335 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?view=active HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com" 2017/10/29 10:00:07 [error] 21389#0: *135893 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?view=active HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com", referrer: "https://secure.x.com/x-admin/index.php" 2017/10/29 10:04:59 [error] 21391#0: *136523 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?view=active HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com" 2017/10/29 10:06:40 [error] 21393#0: *136800 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 117.240.93.242, server: secure.x.com, request: "GET /x-admin/supporttickets.php?action=view&id=58757 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "secure.x.com", referrer: "https://secure.x.com/x-admin/supporttickets.php?view=active" all of these are received within the supporttickets.php, nothing else no matter how long the log goes it's not happening on any other page and I don't feel 7.0 down to 5.6 be the solution here. 0 Quote Link to comment Share on other sites More sharing options...
Steini87 Posted October 29, 2017 Author Share Posted October 29, 2017 Also I am running WHMCS 7.3 latest 0 Quote Link to comment Share on other sites More sharing options...
Steini87 Posted October 29, 2017 Author Share Posted October 29, 2017 Downgraded from PHP 7 to PHP 5.6, luckily i kept the htdocs folder backed up as htdocs.56 in case i had to. the 502 is gone on supporttickets.php in the admin area, Something about php70w causes this 1 file to flake on me with PHP-FPM. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.