Image task not going through



  • Me again

    Yesterday evening changed all passwords from .fogconfig file. rm -rf all image files, free up space. Imaged machine, left it overnight. This morning, host reboot to login screen no probs. Fog server, no valid data image, task still running. Space on FOG server taken up. Hosts not found error.

    3_1507034129118_Screenshot from 2017-10-03 08-31-55.png 2_1507034129118_Screenshot from 2017-10-03 08-31-48.png 1_1507034129118_Screenshot from 2017-10-03 08-31-34.png 0_1507034129117_Screenshot from 2017-10-03 08-31-18.png

    Should I delete all host+image defs and start over registration etc?



  • @tom-elliott :D
    It works perfectly now

    Problem: image task not going to completion, getting error
    could not complete tasking /bin/fog.upload
    on host

    Solution: 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.


  • Senior Developer

    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.


  • Senior Developer

    @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



  • @tom-elliott You know that exact same thing ran across my mind. I have no idea how to play with SELinux. What to do?


  • Senior Developer

    @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 I don’t understand.
    I click on Storage Management | Default Member
    What to look for there?


  • Senior Developer

    @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?



  • I dunno but when creating capture task I uncheck wake on lan right? Because I use FOS USB.



  • 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?



  • 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)


  • Senior Developer

    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.log

    Redhat/CentOS/Scientific Linux/Fedora based typically.
    /var/log/httpd/error_log
    /var/log/httpd/access_log


  • Developer

    @JackieJack Thanks for the detailed information. Things start to make sense again. Don’t have enough time for a full answer right now. So this is just a quick one for now, more later.

    The update database retry sounds like a mysql password/login issue. Search for our mysql troubleshoting article in the wiki and for “ubuntu enemy” in the forum. That should help you fix that issue.

    Sure a clearer install will always help but learning how to debug, find and fix issues is worth the time spend…



  • I’m thinking, should I put a password for mysql? It does say reattempting to update database - on the host screen just after cloning is done



  • @sebastian-roth The nerve of your…
    Okay, when creating the image definition, I choose “multiple partition single disk not resizable”, even though I have a single disk single partition. I did not choose single partition option as that has resizable in it. I am of the understanding that resizable is a no no. It is not as safe a bet as non resizable.

    I was asking for confirmation if I can choose multiple partition, in image def, even though I don’t have multiple partitions.

    The ‘yes it worked’ was Tom’s advice to continue my ./installfog.sh. When I changed the password to something simple in .fogsettings, and changed it everywhere else - fog account, storage managment node - I reran ./installfog.sh to “realign the remaining bits” as george put it. When it asked to update database schema, and hit enter, the enter button stopped working so to speak. It was not registering. So, I opened a new terminal (as Tom suggested) and ran ./installfog.sh and this time the everything went through. Hit enter button at mysql update.

    But, still getting the same
    could not complete tasking /bin/fog.upload

    As a matter of fact, I’m thinking about installing fog tomorrow in the lab - on ubuntu


  • Developer

    @JackieJack I am sorry but what you tell is mostly very short and therefore unclear or possibly misleading.

    Have a single disk but no mulitple partitions
    Choose multiple partition single disk not resizable?

    and

    yes it worked. Running next clone fresh win 10 no smart installer

    This is a great example. What the he** do you mean by that? I’d really like to help you and I am sure others would say the same but how on earth should we know what you mean if don’t use more words to explain.

    I really don’t mean to offend. Hope you don’t mind.



  • I set up my centos server like this don’t know if it will cause error0_1507742579858_Screenshot from 2017-10-11 13-22-22.png



  • Same error could not complete tasking /bin/fog.upload



  • Have a single disk but no mulitple partitions
    Choose multiple partition single disk not resizable?



  • @tom-elliott yes it worked. Running next clone fresh win 10 no smart installer

    Thank you for your patience.


Log in to reply
 

493
Online

39211
Users

10858
Topics

103356
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.