0

Не работает личный кабинет

Сергей_kms 1 год назад обновлен 1 год назад 3

Здравствуйте!

Разворачиваем билинг на Debian 7.11 x64, админка работает и Flash и HTML5.

При попытке входа в личный кабинет пишет: "Ошибка сетевого транспорта. Попробуйте зайти позже...".

Запись в /etc/hosts для stat  имеется:

Настраивал по:

https://wiki.mikbill.ru/billing/config_file?s[]=config&s[]=xml

https://wiki.mikbill.ru/cabinet/html5/setdefault

https://mikbill.blogspot.com/2017/04/mikbill-stat-html5.html

Версия php:

root@mikbill:/etc/nginx/conf.d# php -v
PHP 5.4.45-0+deb7u14 (cli) (built: May 9 2018 16:47:00)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v2.0.0, Copyright (c) 2005-2012, by mOo
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.

Файлы конфигураций:

/etc/nginx/conf.d/stat_vhost.conf:

server {
listen *:80;
server_name stat.itg.local;
rewrite ^ https://$server_name/$1 permanent;
}

server {
listen *:443;
server_name stat.itg.local;

ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
ssl_certificate /etc/nginx/conf.d/ssl/ca.crt;
ssl_certificate_key /etc/nginx/conf.d/ssl/ca.key;

access_log /var/log/nginx/stat_access.log;
error_log /var/log/nginx/stat_error.log warn;
root /var/www/mikbill/stat;

index main.php;
location / {
root /var/www/mikbill/stat;
index main.php;
try_files $uri $uri/ /index.php?$args;
}

location ~* ^(/app/|/sys/).*\.(php|sh|xml|log|txt)$ {deny all;}

location ~ \.php$ {
include /etc/nginx/fastcgi_params;
#fastcgi_pass unix:/var/run/php-worker-socket;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/mikbill/stat/$fastcgi_script_name;
}
}

/var/www/mikbill/stat/app/etc/config.xml:

Параметры подключения к базе для админки  и ЛК одинаковые.

DEBUG:

php вылетает segmentaion fault

/var/log/syslog:

Jan 14 18:51:39 mikbill kernel: [ 1848.554902] php5-fpm[4860]: segfault at 7f1bf4c44c1c ip 000000000069ff7d sp 00007ffd7979ff20 error 6 in php5-fpm[400000+769000]
Jan 14 18:51:39 mikbill kernel: [ 1848.722964] php5-fpm[4861]: segfault at 7f1bf4c44c1c ip 000000000069ff7d sp 00007ffd7979ff20 error 6 in php5-fpm[400000+769000]
Jan 14 18:51:40 mikbill kernel: [ 1848.863751] php5-fpm[4878]: segfault at 7f1bf4c44d64 ip 000000000069ff7d sp 00007ffd7979ff20 error 6 in php5-fpm[400000+769000]
Jan 14 18:51:40 mikbill kernel: [ 1848.991095] php5-fpm[4879]: segfault at 7f1bf4c44e2c ip 000000000069ff7d sp 00007ffd7979ff20 error 6 in php5-fpm[400000+769000]
Jan 14 18:51:40 mikbill kernel: [ 1849.484210] php5-fpm[4880]: segfault at 7f1bf4c44c94 ip 000000000069ff7d sp 00007ffd7979ff20 error 6 in php5-fpm[400000+769000]


/var/log/php5-fpm.log:

[14-Jan-2019 18:51:40] WARNING: [pool www] child 4880 exited on signal 11 (SIGSEGV) after 0.620463 seconds from start
[14-Jan-2019 18:51:40] NOTICE: [pool www] child 4882 started

/var/log/nginx/stat_error.log

2019/01/14 18:51:40 [error] 4877#0: *8 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: stat.itg.local, request: "POST /ajax/index/authip HTTP/1.1", upstream: "fastcgi:/
/unix:/var/run/php5-fpm.sock:", host: "stat.itg.local", referrer: "https://mikbill.ru"
2019/01/14 18:51:40 [error] 4877#0: *10 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 127.0.0.1, server: stat.itg.local, request: "POST /ajax/index/authfl HTTP/1.1", upstream: "fastcgi:
//unix:/var/run/php5-fpm.sock:", host: "stat.itg.local", referrer: "https://mikbill.ru"
2019/01/14 18:51:40 [error] 4877#0: *16 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.3.16, server: stat.itg.local, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://un
ix:/var/run/php5-fpm.sock:", host: "stat.itg.local"


Сокет "/unix:/var/run/php5-fpm.sock"  рабочий, через него админка работает.

stat_error.log с дэбагом:

stat.zip

Может я конечно где то в параметрах ошибся при настройке, но не работает, куда копать?

В догонку:

root@mikbill:/var/www/mikbill/stat# php ./index.php
Ошибка сегментирования



root@mikbill:/var/www/mikbill/stat# strace php ./index.php
...
...
...


open("./index.php", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=5381447, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68a36d9000

read(3, "?php //ICB0 53:0 72:2654f5 "..., 4096) = 4096

lseek(3, 0, SEEK_SET) = 0
getcwd("/var/www/mikbill/stat", 4096) = 22
time(NULL) = 1547515710
lstat("/var/www/mikbill/stat/./index.php", {st_mode=S_IFREG|0644, st_size=5381447, ...}) = 0
lstat("/var/www/mikbill/stat", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/www/mikbill", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rt_sigaction(SIGPROF, {0x68ed50, [PROF], SA_RESTORER|SA_RESTART, 0x7f68a04ed1a0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
time(NULL) = 1547515710
brk(0x268d000) = 0x268d000
brk(0x26ae000) = 0x26ae000
brk(0x26cf000) = 0x26cf000
brk(0x26f0000) = 0x26f0000
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
fstat(0, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68a36d8000
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68a36d7000
lseek(1, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
getcwd("/var/www/mikbill/stat", 4096) = 22
time(NULL) = 1547515710
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7ffc205ee750) = -1 ENOTTY (Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0644, st_size=5381447, ...}) = 0
mmap(NULL, 5381479, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f689415e000
mmap(NULL, 5509120, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893c1d000
brk(0x2714000) = 0x2714000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68a34f3000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893bdc000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893b9b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893b5a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893b19000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893ad8000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893a97000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893a56000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893a15000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68939d4000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893993000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893952000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893911000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68938d0000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689388f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689384e000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689380d000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68937cc000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689378b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689374a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893709000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68936c8000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893687000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893646000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893605000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68935c4000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893583000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893542000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893501000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68934c0000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689347f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689343e000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68933fd000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68933bc000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689337b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689333a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68932f9000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68932b8000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893277000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893236000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68931f5000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68931b4000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893173000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6893132000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68930f1000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68930b0000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689306f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689302e000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892fed000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892fac000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892f6b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892f2a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892ee9000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892ea8000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892e67000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892e26000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892de5000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892da4000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892d63000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892d22000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892ce1000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892ca0000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892c5f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892c1e000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892bdd000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892b9c000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892b5b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892b1a000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6892ad9000
munmap(0x7f689415e000, 5381479) = 0
close(3) = 0
munmap(0x7f68a36d9000, 4096) = 0
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f689463f000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68945fe000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Ошибка сегментирования

root@mikbill:/var/www/mikbill/stat#

Восстановил биллинг до обновления на 3-ку, последняя рабочая версия 2.13.0.2:

И таки да, личный кабинет работает, и flash и html5:

Личный кабинет сломался после обновления на 3-ку, либо с переходом на ioncube.

root@mikbill:/var/www/mikbill/stat# php ./index.php
Ошибка сегментирования

root@mikbill:/var/www/mikbill/stat# ls -la index.php

-rwxr--r-- 1 500 500 5381447 Янв 15 11:56 index.php

root@mikbill:/var/www/mikbill/stat# md5sum index.php

274d0670b4d92caac5fcdf4d385460ed index.php

Сервис поддержки клиентов работает на платформе UserEcho