{"action":"opened","issue":{"url":"https://api.github.com/repos/MISP/MISP/issues/2334","repository_url":"https://api.github.com/repos/MISP/MISP","labels_url":"https://api.github.com/repos/MISP/MISP/issues/2334/labels{/name}","comments_url":"https://api.github.com/repos/MISP/MISP/issues/2334/comments","events_url":"https://api.github.com/repos/MISP/MISP/issues/2334/events","html_url":"https://github.com/MISP/MISP/issues/2334","id":241787776,"number":2334,"title":"rh-php56-php-cli @ CentOS 7: php-cli is not working properly + Workers are not restarting with no entries in the logs","user":{"login":"jakubrybar89","id":2692058,"avatar_url":"https://avatars2.githubusercontent.com/u/2692058?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubrybar89","html_url":"https://github.com/jakubrybar89","followers_url":"https://api.github.com/users/jakubrybar89/followers","following_url":"https://api.github.com/users/jakubrybar89/following{/other_user}","gists_url":"https://api.github.com/users/jakubrybar89/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubrybar89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubrybar89/subscriptions","organizations_url":"https://api.github.com/users/jakubrybar89/orgs","repos_url":"https://api.github.com/users/jakubrybar89/repos","events_url":"https://api.github.com/users/jakubrybar89/events{/privacy}","received_events_url":"https://api.github.com/users/jakubrybar89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T17:28:19Z","updated_at":"2017-07-10T17:28:19Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to fix all issues addressed by 'Server Settings' - 'Diagnostics' on CentOS 7, when followed the install guide for the OS (https://github.com/MISP/MISP/blob/2.4/INSTALL/xINSTALL.centos7.txt). I do have some valuable remarks regarding the procedure of deployment on CentOS 7 incl. ongoing process of upgrading PHP from 5.6.x to PHP 7.\r\n\r\nRight now I am still trying fix php-cli related issue described below as it's not properly working in my environment.\r\n\r\nAny help would be highly appreciated!\r\n\r\nHowgh,\r\n\r\nJakub\r\n\r\n### Work environment\r\n\r\n| Questions                 | Answers\r\n|---------------------------|--------------------\r\n| Type of issue             | Question\r\n| OS version (server)       | CentOS 7 (Linux 3.10.0-514.26.2.el7.x86_64 x86_64)\r\n| OS version (client)       | -\r\n| PHP version               | 5.6.25 (cli) (built: Oct 21 2016 18:00:07)\r\n| MISP version / git hash   | v2.4.76 (1d4bc510bd3e065d0eb1cc6532b083357d136bc4) \r\n| Browser                   | -\r\n\r\n### Expected behavior\r\n\r\n{MISP}/servers/serverSettings/diagnostics >\r\n\r\nPHP CLI Version (>7.0.16 recommended): 5.6.25 (Update highly recommended)\r\n\r\nPHP Extensions\r\n\r\nCli\r\nOK\r\n\r\n--\r\n\r\nWorkers restarted, action logged to /var/www/MISP/app/tmp/logs/resque...\r\n\r\n### Actual behavior\r\n\r\n{MISP}/servers/serverSettings/diagnostics >\r\n\r\nPHP CLI Version (>7.0.16 recommended): Unknown (Issues determining version)\r\n\r\nPHP Extensions\r\n\r\nCli\r\nIssues reading PHP settings. This could be due to the test script not being readable. \r\n\r\n--\r\n\r\nWorkers doesn't restart, but they do start when OS boots up.\r\n\r\n### Steps to reproduce the behavior\r\n\r\n{MISP}/servers/serverSettings/diagnostics\r\n\r\n### Logs, screenshots, configuration dump, ...\r\n\r\n**/var/log/audit/audit.log (for restarting the workers)**\r\n\r\ntype=AVC msg=audit(1499707320.972:169): avc:  denied  { open } for  pid=4109 comm=\"python\" path=\"/usr/lib/python2.7/site-packages/weakrefmethod-1.0.3-py2.7.egg\" dev=\"dm-1\" ino=9082048 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file\r\ntype=SYSCALL msg=audit(1499707320.972:169): arch=c000003e syscall=2 success=no exit=-13 a0=7ffca96907a0 a1=0 a2=1b6 a3=24 items=0 ppid=2208 pid=4109 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=\"python\" exe=\"/usr/bin/python2.7\" subj=system_u:system_r:httpd_t:s0 key=(null)\r\ntype=AVC msg=audit(1499707320.972:170): avc:  denied  { open } for  pid=4109 comm=\"python\" path=\"/usr/lib/python2.7/site-packages/ordered_set-2.0.2-py2.7.egg\" dev=\"dm-1\" ino=9082051 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file\r\ntype=SYSCALL msg=audit(1499707320.972:170): arch=c000003e syscall=2 success=no exit=-13 a0=7ffca96907a0 a1=0 a2=1b6 a3=24 items=0 ppid=2208 pid=4109 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=\"python\" exe=\"/usr/bin/python2.7\" subj=system_u:system_r:httpd_t:s0 key=(null)\r\n\r\n**/var/www/MISP/app/tmp/logs/error.log (for Server Settings' - 'Diagnostics')**\r\n\r\n2017-07-10 19:23:08 Warning: Warning (2): fread(): SSL: Connection reset by peer in [/var/www/MISP/app/Lib/cakephp/lib/Cake/Network/CakeSocket.php, line 415]\r\nTrace:\r\nErrorHandler::handleError() - APP/Lib/cakephp/lib/Cake/Error/ErrorHandler.php, line 230\r\nfread - [internal], line ??\r\nCakeSocket::read() - APP/Lib/cakephp/lib/Cake/Network/CakeSocket.php, line 415\r\nHttpSocket::request() - APP/Lib/cakephp/lib/Cake/Network/Http/HttpSocket.php, line 381\r\nHttpSocket::get() - APP/Lib/cakephp/lib/Cake/Network/Http/HttpSocket.php, line 466\r\nServersController::__checkVersion() - APP/Controller/ServersController.php, line 907\r\nServersController::serverSettings() - APP/Controller/ServersController.php, line 764\r\nReflectionMethod::invokeArgs() - [internal], line ??\r\nController::invokeAction() - APP/Lib/cakephp/lib/Cake/Controller/Controller.php, line 491\r\nDispatcher::_invoke() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 193\r\nDispatcher::dispatch() - APP/Lib/cakephp/lib/Cake/Routing/Dispatcher.php, line 167\r\n[main] - APP/webroot/index.php, line 92"}}
{"actor":{"display_login":"jakubrybar89"}}