Image task not going through
-
The message is failing to update the database because of the error itâs showing (Undefined index), though it seems more related to the update itself. Can you please provide the apache error logs in regards to the now âundefinedâ index youâre seeing? It may help us pinpoint exactly where the issue is. This, also, with the apache access logs so we know exactly what url is being called. The fact that the error is showing for fogcontroller.class.php is semi-irrelevant as all base classes route through the fogcontroller class.
Debian/Ubuntu based typically.
/var/log/apache2/error.log
/var/log/apache2/access.logRedhat/CentOS/Scientific Linux/Fedora based typically.
/var/log/httpd/error_log
/var/log/httpd/access_log -
error_log
[Mon Oct 09 03:39:02.212521 2017] [auth_digest:notice] [pid 1053] AH01757: generating secret for digest authentication ... [Mon Oct 09 03:39:02.214398 2017] [lbmethod_heartbeat:notice] [pid 1053] AH02282: No slotmem from mod_heartmonitor [Mon Oct 09 03:39:02.234365 2017] [mpm_prefork:notice] [pid 1053] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.31 configured -- resuming normal operations [Mon Oct 09 03:39:02.234388 2017] [core:notice] [pid 1053] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Mon Oct 09 14:35:22.319336 2017] [mpm_prefork:notice] [pid 1053] AH00170: caught SIGWINCH, shutting down gracefully [Mon Oct 09 14:36:00.055213 2017] [core:notice] [pid 15512] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Mon Oct 09 14:36:00.079821 2017] [suexec:notice] [pid 15512] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Mon Oct 09 14:36:00.111986 2017] [auth_digest:notice] [pid 15512] AH01757: generating secret for digest authentication ... [Mon Oct 09 14:36:00.113088 2017] [lbmethod_heartbeat:notice] [pid 15512] AH02282: No slotmem from mod_heartmonitor [Mon Oct 09 14:36:00.203123 2017] [mpm_prefork:notice] [pid 15512] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.31 configured -- resuming normal operations [Mon Oct 09 14:36:00.203165 2017] [core:notice] [pid 15512] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Mon Oct 09 14:36:03.049255 2017] [:error] [pid 15523] [client 192.168.26.110:55074] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 383 [Mon Oct 09 14:36:03.382837 2017] [:error] [pid 15523] [client 192.168.26.110:55074] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 400 [Tue Oct 10 08:31:50.686251 2017] [mpm_prefork:notice] [pid 15512] AH00170: caught SIGWINCH, shutting down gracefully [Tue Oct 10 08:34:11.889774 2017] [core:notice] [pid 1065] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Tue Oct 10 08:34:12.073760 2017] [suexec:notice] [pid 1065] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Tue Oct 10 08:34:12.302735 2017] [auth_digest:notice] [pid 1065] AH01757: generating secret for digest authentication ... [Tue Oct 10 08:34:12.367919 2017] [lbmethod_heartbeat:notice] [pid 1065] AH02282: No slotmem from mod_heartmonitor [Tue Oct 10 08:34:12.752934 2017] [mpm_prefork:notice] [pid 1065] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.31 configured -- resuming normal operations [Tue Oct 10 08:34:12.752970 2017] [core:notice] [pid 1065] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Wed Oct 11 11:40:12.402988 2017] [mpm_prefork:notice] [pid 1065] AH00170: caught SIGWINCH, shutting down gracefully [Wed Oct 11 11:40:50.916154 2017] [core:notice] [pid 16724] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Wed Oct 11 11:40:50.917225 2017] [suexec:notice] [pid 16724] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Wed Oct 11 11:40:50.960516 2017] [auth_digest:notice] [pid 16724] AH01757: generating secret for digest authentication ... [Wed Oct 11 11:40:50.961611 2017] [lbmethod_heartbeat:notice] [pid 16724] AH02282: No slotmem from mod_heartmonitor [Wed Oct 11 11:40:51.038445 2017] [mpm_prefork:notice] [pid 16724] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.31 configured -- resuming normal operations [Wed Oct 11 11:40:51.038491 2017] [core:notice] [pid 16724] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Wed Oct 11 11:40:53.266595 2017] [:error] [pid 16734] [client 192.168.26.110:35400] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 383 [Wed Oct 11 11:40:53.509374 2017] [:error] [pid 16734] [client 192.168.26.110:35400] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 400 [Wed Oct 11 11:56:59.121983 2017] [:error] [pid 16736] [client 192.168.26.110:43250] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:56:59.181226 2017] [:error] [pid 17542] [client 192.168.26.110:43258] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:00.126613 2017] [:error] [pid 16738] [client 192.168.26.110:43262] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:00.178991 2017] [:error] [pid 16737] [client 192.168.26.110:43266] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:01.123175 2017] [:error] [pid 16997] [client 192.168.26.110:43270] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:01.177458 2017] [:error] [pid 16739] [client 192.168.26.110:43274] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:02.142876 2017] [:error] [pid 17542] [client 192.168.26.110:43278] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:02.242514 2017] [:error] [pid 16738] [client 192.168.26.110:43284] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:02.299301 2017] [:error] [pid 16737] [client 192.168.26.110:43286] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:03.175503 2017] [:error] [pid 16997] [client 192.168.26.110:43292] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:03.204724 2017] [:error] [pid 16783] [client 192.168.26.110:43298] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:03.249975 2017] [:error] [pid 16739] [client 192.168.26.110:43294] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:04.125616 2017] [:error] [pid 16818] [client 192.168.26.110:43302] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/ [Wed Oct 11 11:57:04.181898 2017] [:error] [pid 16737] [client 192.168.26.110:43306] PHP Fatal error: Call to a member function lastInsertId() on boolean in /var/www/html/fog/lib/db/pdodb.class.php on line 443, referer: http://192.168.26.110/fog/management/index.php?node=home [Wed Oct 11 11:57:07.919202 2017] [mpm_prefork:notice] [pid 16724] AH00170: caught SIGWINCH, shutting down gracefully [Wed Oct 11 11:57:43.283162 2017] [core:notice] [pid 24318] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0 [Wed Oct 11 11:57:43.284634 2017] [suexec:notice] [pid 24318] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message [Wed Oct 11 11:57:43.319017 2017] [auth_digest:notice] [pid 24318] AH01757: generating secret for digest authentication ... [Wed Oct 11 11:57:43.321400 2017] [lbmethod_heartbeat:notice] [pid 24318] AH02282: No slotmem from mod_heartmonitor [Wed Oct 11 11:57:43.353366 2017] [mpm_prefork:notice] [pid 24318] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.31 configured -- resuming normal operations [Wed Oct 11 11:57:43.353404 2017] [core:notice] [pid 24318] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Wed Oct 11 11:57:45.461274 2017] [:error] [pid 24327] [client 192.168.26.110:43644] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 383 [Wed Oct 11 11:57:45.532790 2017] [:error] [pid 24327] [client 192.168.26.110:43644] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/fog/lib/db/mysqldump.class.php on line 400
access_log
https://yadi.sk/d/K-QmxY223NhFCu
download txt file and view it locally.
(Running on CentOS) -
On this machine, Centos, I had vsftpd installed and running already. Doesnât fog come with itâs own ftp setup? Would there be some conflict?
-
I dunno but when creating capture task I uncheck wake on lan right? Because I use FOS USB.
-
@jackiejack Wake on lan is only going to send packets to the registered nicâs MAC Address. It wonât have any impact on the ability to complete a tasking.
There seems to be some disconnect, though I donât know what.
Is your Storage Node master something other than the FOG Server?
-
@tom-elliott I donât understand.
I click on Storage Management | Default Member
What to look for there? -
@jackiejack Did you disable selinux, or more properly set it to permissive?
I ask because:
[Mon Oct 09 14:36:00.055213 2017] [core:notice] [pid 15512] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
Right from the Apache error log.
-
@tom-elliott You know that exact same thing ran across my mind. I have no idea how to play with SELinux. What to do?
-
@jackiejack Try this please:
Then try your capture. If it all works let me know and Iâll walk you through how to get it to maintain operational even on reboots.
From a terminal as root:
setenfoce 0
-
To make it permissive all the time:
https://wiki.fogproject.org/wiki/index.php?title=Fedora_25_Server#Continue_pre-configParticularly the two lines dealing with SELinux.
-
@tom-elliott
It works perfectly nowProblem: image task not going to completion, getting error
could not complete tasking /bin/fog.upload
on hostSolution: configure password - fog user account, tftp in fog settings and storage node - to match that in .fogsettings file
https://forums.fogproject.org/topic/10892/could-not-complete-tasking-bin-fog-upload/2
AND configure SELinux policy (CentOS/Red Hat)
To make it permissive all the time:
https://wiki.fogproject.org/wiki/index.php?title=Fedora_25_Server#Continue_pre-config
Particularly the two lines dealing with SELinux.