Error in apache2 when I try to do multicast tasks
-
Hello, I apologize for the English. I am updating from Fog 1.5.0 and in versions 1.5.1, 1.5.2, 1.5.3 and 1.5.4 I have had problems with apache2. When I try to create a Multicast task, I create the task and send Wake on Lan correctly, but they get stuck in boot.php and the portal stops, then I restart the apache service and everything normal, I can start the task manually starting each PC. Checking /etc/apache2/apache2.conf I have the following:
[Fri Jun 08 09:02:30.690171 2018] [proxy_fcgi:error] [pid 11025] (70007)The timeout specified has expired: [client 10.10.10.2:59297] AH01075: Error dispatching request to : (polling) [Fri Jun 08 09:02:35.119557 2018] [proxy_fcgi:error] [pid 11035] (70007)The timeout specified has expired: [client 10.10.10.2:59301] AH01075: Error dispatching request to : (polling) [Fri Jun 08 09:02:36.130298 2018] [proxy_fcgi:error] [pid 11027] (70007)The timeout specified has expired: [client 10.10.10.2:59304] AH01075: Error dispatching request to : (polling) [Fri Jun 08 09:03:04.189678 2018] [proxy_fcgi:error] [pid 11029] (70007)The timeout specified has expired: [client 10.10.10.2:59306] AH01075: Error dispatching request to : (polling) [Fri Jun 08 09:03:06.039723 2018] [proxy_fcgi:error] [pid 11030] (70007)The timeout specified has expired: [client 10.10.10.10:39818] AH01075: Error dispatching request to : (polling), referer: http://10.10.10.2/fog/management/index.php?node=service [Fri Jun 08 09:03:20.829614 2018] [proxy_fcgi:error] [pid 11033] (70007)The timeout specified has expired: [client 10.10.10.10:39852] AH01075: Error dispatching request to : (polling), referer: http://10.10.10.2/fog/management/index.php?node=home [Fri Jun 08 09:05:08.154555 2018] [proxy_fcgi:error] [pid 11032] (70007)The timeout specified has expired: [client 10.10.10.2:59356] AH01075: Error dispatching request to : (polling) [Fri Jun 08 09:05:48.730133 2018] [mpm_prefork:notice] [pid 9367] AH00169: caught SIGTERM, shutting down [Fri Jun 08 09:05:49.599950 2018] [mpm_prefork:notice] [pid 11391] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Fri Jun 08 09:05:49.600000 2018] [core:notice] [pid 11391] AH00094: Command line: '/usr/sbin/apache2'
I use Debian 8 64, probe reinstall in Debian 9 64 but the error remains. Has anyone else had this error?
-
Checking more thoroughly I found a PHP error
in /var/www/html/fog/lib/fog/fogcontroller.class.php
I’m going to review a bit to see what I find. Here are bugs also reported?[Tue Jun 05 07:49:49.744116 2018] [mpm_event:notice] [pid 688:tid 140450431846272] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 07:49:49.744210 2018] [core:notice] [pid 688:tid 140450431846272] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 07:50:19.197942 2018] [mpm_event:notice] [pid 688:tid 140450431846272] AH00491: caught SIGTERM, shutting down [Tue Jun 05 07:51:35.450910 2018] [mpm_event:notice] [pid 679:tid 140487367821184] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 07:51:35.454720 2018] [core:notice] [pid 679:tid 140487367821184] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 07:53:04.185657 2018] [mpm_event:notice] [pid 679:tid 140487367821184] AH00491: caught SIGTERM, shutting down [Tue Jun 05 07:53:15.476661 2018] [mpm_event:notice] [pid 684:tid 140378520545152] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 07:53:15.478153 2018] [core:notice] [pid 684:tid 140378520545152] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 08:01:09.526018 2018] [mpm_event:notice] [pid 684:tid 140378520545152] AH00491: caught SIGTERM, shutting down [Tue Jun 05 08:01:10.601893 2018] [mpm_event:notice] [pid 6830:tid 140579345201024] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 08:01:10.601994 2018] [core:notice] [pid 6830:tid 140579345201024] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 08:01:24.409884 2018] [mpm_event:notice] [pid 6830:tid 140579345201024] AH00493: SIGUSR1 received. Doing graceful restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Tue Jun 05 08:01:24.413173 2018] [mpm_event:notice] [pid 6830:tid 140579345201024] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 08:01:24.413182 2018] [core:notice] [pid 6830:tid 140579345201024] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 08:01:51.861167 2018] [core:warn] [pid 6830:tid 140579345201024] AH00045: child process 6833 still did not exit, sending a SIGTERM [Tue Jun 05 08:01:51.861239 2018] [core:warn] [pid 6830:tid 140579345201024] AH00045: child process 6834 still did not exit, sending a SIGTERM [Tue Jun 05 08:01:53.865245 2018] [core:warn] [pid 6830:tid 140579345201024] AH00045: child process 6833 still did not exit, sending a SIGTERM [Tue Jun 05 08:01:53.865324 2018] [core:warn] [pid 6830:tid 140579345201024] AH00045: child process 6834 still did not exit, sending a SIGTERM [Tue Jun 05 08:01:55.945811 2018] [core:warn] [pid 6830:tid 140579345201024] AH00045: child process 6833 still did not exit, sending a SIGTERM [Tue Jun 05 08:01:57.954736 2018] [core:error] [pid 6830:tid 140579345201024] AH00046: child process 6833 still did not exit, sending a SIGKILL [Tue Jun 05 08:01:58.961238 2018] [mpm_event:notice] [pid 6830:tid 140579345201024] AH00491: caught SIGTERM, shutting down [Tue Jun 05 09:14:11.334775 2018] [mpm_event:notice] [pid 735:tid 139881012828032] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 09:14:11.371753 2018] [core:notice] [pid 735:tid 139881012828032] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 09:23:35.695306 2018] [mpm_event:notice] [pid 735:tid 139881012828032] AH00491: caught SIGTERM, shutting down [Tue Jun 05 09:27:26.172267 2018] [mpm_event:notice] [pid 691:tid 140305527900032] AH00489: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 09:27:26.172623 2018] [core:notice] [pid 691:tid 140305527900032] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 09:35:22.370091 2018] [mpm_event:notice] [pid 691:tid 140305527900032] AH00491: caught SIGTERM, shutting down [Tue Jun 05 09:35:23.469261 2018] [mpm_prefork:notice] [pid 10672] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 09:35:23.469374 2018] [core:notice] [pid 10672] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 09:35:24.895542 2018] [mpm_prefork:notice] [pid 10672] AH00169: caught SIGTERM, shutting down [Tue Jun 05 09:35:26.030780 2018] [mpm_prefork:notice] [pid 10771] AH00163: Apache/2.4.10 (Debian) configured -- resuming normal operations [Tue Jun 05 09:35:26.030832 2018] [core:notice] [pid 10771] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 09:37:21.498841 2018] [mpm_prefork:notice] [pid 10771] AH00169: caught SIGTERM, shutting down [Tue Jun 05 09:45:38.506970 2018] [mpm_prefork:notice] [pid 26640] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Tue Jun 05 09:45:38.507027 2018] [core:notice] [pid 26640] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 09:48:02.983997 2018] [mpm_prefork:notice] [pid 26640] AH00169: caught SIGTERM, shutting down [Tue Jun 05 12:53:18.380034 2018] [mpm_prefork:notice] [pid 542] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Tue Jun 05 12:53:18.482235 2018] [core:notice] [pid 542] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 13:38:22.293996 2018] [mpm_prefork:notice] [pid 578] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Tue Jun 05 13:38:22.317190 2018] [core:notice] [pid 578] AH00094: Command line: '/usr/sbin/apache2' [Tue Jun 05 14:04:28.282636 2018] [proxy_fcgi:error] [pid 709] [client 10.10.10.3:57278] AH01071: Got error 'PHP message: PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 137\n' [Tue Jun 05 14:11:19.654399 2018] [proxy_fcgi:error] [pid 2993] [client 10.10.10.4:49682] AH01071: Got error 'PHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\n' [Tue Jun 05 15:40:21.989868 2018] [proxy_fcgi:error] [pid 4973] [client 10.10.10.4:46194] AH01071: Got error 'PHP message: PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 137\n' [Tue Jun 05 16:11:09.332868 2018] [proxy:error] [pid 715] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Tue Jun 05 16:11:09.396932 2018] [proxy_fcgi:error] [pid 715] [client 10.10.10.14:60529] AH01079: failed to make connection to backend: 127.0.0.1 [Tue Jun 05 16:11:09.443707 2018] [proxy:error] [pid 713] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Tue Jun 05 16:11:09.443758 2018] [proxy_fcgi:error] [pid 713] [client 10.10.10.14:60542] AH01079: failed to make connection to backend: 127.0.0.1 [Tue Jun 05 16:11:09.446495 2018] [proxy:error] [pid 2993] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Tue Jun 05 16:11:09.446526 2018] [proxy_fcgi:error] [pid 2993] [client 10.10.10.14:60543] AH01079: failed to make connection to backend: 127.0.0.1 [Tue Jun 05 16:11:09.731839 2018] [mpm_prefork:notice] [pid 578] AH00169: caught SIGTERM, shutting down [Wed Jun 06 07:07:41.522904 2018] [mpm_prefork:notice] [pid 578] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 07:07:41.540300 2018] [core:notice] [pid 578] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 07:14:25.072554 2018] [proxy_fcgi:error] [pid 1246] [client 10.10.10.3:53921] AH01071: Got error 'PHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\nPHP message: PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100\n' [Wed Jun 06 08:01:22.704611 2018] [proxy_fcgi:error] [pid 589] [client 10.10.10.3:59956] AH01071: Got error 'PHP message: PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 137\n' [Wed Jun 06 08:02:32.161761 2018] [proxy:error] [pid 1595] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 08:02:32.161800 2018] [proxy_fcgi:error] [pid 1595] [client 10.10.10.10:49802] AH01079: failed to make connection to backend: 127.0.0.1, referer: http://10.10.10.2/fog/management/index.php?node=task&sub=active [Wed Jun 06 08:02:32.494365 2018] [mpm_prefork:notice] [pid 578] AH00169: caught SIGTERM, shutting down [Wed Jun 06 08:03:33.999556 2018] [mpm_prefork:notice] [pid 554] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 08:03:34.014415 2018] [core:notice] [pid 554] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 08:04:44.123600 2018] [mpm_prefork:notice] [pid 554] AH00169: caught SIGTERM, shutting down [Wed Jun 06 08:09:44.402663 2018] [mpm_prefork:notice] [pid 4044] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 08:09:44.402731 2018] [core:notice] [pid 4044] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 08:55:01.538138 2018] [proxy_fcgi:error] [pid 7118] [client 10.10.10.1:58144] AH01071: Got error 'PHP message: PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 137\n' [Wed Jun 06 10:04:38.102721 2018] [mpm_prefork:notice] [pid 4044] AH00169: caught SIGTERM, shutting down [Wed Jun 06 10:05:49.632530 2018] [mpm_prefork:notice] [pid 541] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 10:05:49.687310 2018] [core:notice] [pid 541] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 10:05:49.668462 2018] [proxy:error] [pid 549] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:05:49.687780 2018] [proxy_fcgi:error] [pid 549] [client 10.10.10.4:61719] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:05:49.689438 2018] [proxy:error] [pid 553] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:05:49.689476 2018] [proxy_fcgi:error] [pid 553] [client 10.10.10.20:60684] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:05:49.700983 2018] [proxy:error] [pid 551] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:05:49.701034 2018] [proxy_fcgi:error] [pid 551] [client 10.10.10.20:60688] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:39:16.911940 2018] [proxy_fcgi:error] [pid 553] [client 10.10.10.64:63887] AH01067: Failed to read FastCGI header [Wed Jun 06 10:39:17.018232 2018] [proxy_fcgi:error] [pid 553] (104)Connection reset by peer: [client 10.10.10.64:63887] AH01075: Error dispatching request to : [Wed Jun 06 10:39:17.034528 2018] [proxy:error] [pid 551] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:39:17.034572 2018] [proxy_fcgi:error] [pid 551] [client 10.10.10.32:65408] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:39:17.062967 2018] [proxy:error] [pid 552] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:39:17.063024 2018] [proxy_fcgi:error] [pid 552] [client 10.10.10.64:63888] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:39:17.120141 2018] [proxy:error] [pid 549] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:39:17.120184 2018] [proxy_fcgi:error] [pid 549] [client 10.10.10.32:65409] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:39:17.123739 2018] [proxy:error] [pid 1641] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 10:39:17.123776 2018] [proxy_fcgi:error] [pid 1641] [client 10.10.10.32:65410] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 10:39:18.142625 2018] [mpm_prefork:notice] [pid 541] AH00169: caught SIGTERM, shutting down [Wed Jun 06 10:42:46.411580 2018] [mpm_prefork:notice] [pid 727] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 10:42:46.465287 2018] [core:notice] [pid 727] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 11:13:19.107187 2018] [proxy_fcgi:error] [pid 858] [client 10.10.10.2:54753] AH01067: Failed to read FastCGI header [Wed Jun 06 11:13:19.107226 2018] [proxy_fcgi:error] [pid 858] (104)Connection reset by peer: [client 10.10.10.2:54753] AH01075: Error dispatching request to : [Wed Jun 06 11:13:19.320980 2018] [mpm_prefork:notice] [pid 727] AH00169: caught SIGTERM, shutting down [Wed Jun 06 11:22:26.070248 2018] [mpm_prefork:notice] [pid 829] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 11:22:26.137749 2018] [core:notice] [pid 829] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 14:40:49.055159 2018] [mpm_prefork:notice] [pid 829] AH00169: caught SIGTERM, shutting down [Wed Jun 06 14:40:50.552265 2018] [mpm_prefork:notice] [pid 21432] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t configured -- resuming normal operations [Wed Jun 06 14:40:50.552318 2018] [core:notice] [pid 21432] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 06 14:41:39.844810 2018] [proxy_fcgi:error] [pid 21438] [client 10.10.10.10:49126] AH01071: Got error 'PHP message: PHP Warning: trim() expects parameter 1 to be string, array given in /var/www/html/fog/lib/fog/fogbase.class.php on line 1382\n', referer: http://10.10.10.2/fog/management/index.php?node=task&sub=active [Wed Jun 06 16:13:50.301562 2018] [proxy:error] [pid 21439] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 16:13:50.301611 2018] [proxy_fcgi:error] [pid 21439] [client 10.10.10.10:34874] AH01079: failed to make connection to backend: 127.0.0.1, referer: http://10.10.10.2/fog/management/index.php?node=about&sub=customizepxe [Wed Jun 06 16:13:50.394535 2018] [proxy:error] [pid 21448] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed [Wed Jun 06 16:13:50.394576 2018] [proxy_fcgi:error] [pid 21448] [client 10.10.10.51:49235] AH01079: failed to make connection to backend: 127.0.0.1 [Wed Jun 06 16:13:50.463993 2018] [proxy:error] [pid 21461] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed```
-
I’ve been seeing this as well on Centos 7. (haven’t tested multicasting, it happens elsewhere too)
I have switched Apache over to mpm_event (insread of mpm_prefork) which seems to help a lot. I don’t know if it’s safe to just switch to it on production (especially without configuration for it), but it’s possible there are some issues with prefork in combination with php-fpm.
There isn’t really much of a point to use mpm_prefork if we’re using php-fpm anyway.
-
Typically I see this when SELinux hasn’t been set to permissive/disabled.
Please try running the command
setenforce 0
and restarting php-fpm with:systemctl restart php-fpm httpd
Mind you, I’m not sure what OS your FOG Server is running, but this really seems like an SELinux issue.
-
@tom-elliott you’re right, I’m using debian 8 and the default configuration of SELinux was in enforcing. With the command that you gave me, it changes to permissive.
In the end I disabled SELinux completely, I did it in the following way:nano /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # default - equivalent to the old strict and targeted policies # mls - Multi-Level Security (for military and educational use) # src - Custom policy built from source SELINUXTYPE=default # SETLOCALDEFS= Check local definition changes SETLOCALDEFS=0
Thank you very much, I think it’s already working.
-
If this is still not solved, I would like to look into the php-fpm configuration and the log file related to php-fpm. From the apache side your initial post says session time has expired. I’m seeing a lot of multicast posts in the forum. There may be something else going on we don’t expect.