LINUX.ORG.RU

aerospike php error

 ,


0

1

есть 2 сервера, на одном все работает, на другом в логах ошибки

2019/08/07 12:59:43 [error] 1247#1247: *818680 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Exception: Failed to connect in /var/www/asp.php:61
Stack trace:
#0 /var/www/asp.php(61): Aerospike->__construct(Array)
#1 {main}
  thrown in /var/www/asp.php on line 61" while reading response header from upstream, client: 1.2.3.4, server: *.example.com, request: "GET /asp/75702373089/.jpg HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "send.example.com", referrer: "https://test.com/firebase.js"

aerospike стоит одинаковой версии

ii  aerospike-server-community       4.2.0.3-1                          amd64        The Aerospike distributed datastore allows fully scalable and reliable data storage with elastic server properties.
ii  aerospike-tools                  3.15.3.8                           amd64        Aerospike server tools.

модуль php был скопирован с работающего сервера, где нет ошибок

cat /etc/php/7.0/fpm/conf.d/aerospike.ini
extension=aerospike.so
aerospike.udf.lua_system_path=/usr/local/aerospike/lua
aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua
aerospike.shm.use = 1

1.2.3.4 - - [07/Aug/2019:12:59:43 +0300] "GET /asp/75702373089/.jpg HTTP/1.1" 500 5 "https://test.com/firebase.js" "Mozilla/5.0 (Linux; Android 9; RMX1825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36"
1.2.3.4 - - [07/Aug/2019:12:59:44 +0300] "GET //images/usr.58db988a0ac8c/hahzlxfavmkstudzdwmqcxtl.jpg HTTP/1.1" 200 78076 "https://test.com/firebase.js" "Mozilla/5.0 (Linux; Android 9; RMX1825) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36"

после 500, сразу отдается 200 код

php -v
PHP 7.0.33-0+deb9u3 (cli) (built: Mar  8 2019 10:01:24) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.33-0+deb9u3, Copyright (c) 1999-2017, by Zend Technologies

подскажите куда еще посмотреть, какие библиотеки надо сравнить?


в логах была ошибка

kernel: [83535.878800] cgroup: fork rejected by pids controller in /system.slice/php7.0-fpm.service

добавил

cat /etc/systemd/system/php7.0-fpm.service.d/override.conf
[Service]
TasksMax=infinity

и ошибки пропали

Garcia ()