Scheduled tasks are not starting in FOG 1.2.0



  • I’m using Ubuntu server 12.04.5 LTS and FOG 1.2.0. If I schedule an image upload task for a host and the time comes where the task should go from scheduled to active the task just shows a status of active/delayed with the correct start time remaining under the scheduled task section . My problem is the task never moves to Active, it just stays as scheduled and nothing happens. I’ve been looking at the client fog.log,but the task isn’t even being set active by the server so thats not telling me much.

    Can someone help point me in the right direction?

    [CODE]

    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: mysqli::escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 247, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 89, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 180, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: mysqli::escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 247, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 89, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.208] PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 180, referer: http://192.168.60.95/fog/management/index.php?node=tasks&sub=active
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.131] PHP Warning: mysqli::mysqli(): (HY000/2002): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /var/www/fog/lib/db/MySQL.class.php on line 64
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.131] PHP Warning: mysqli::select_db(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 165
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.131] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 89
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.131] PHP Warning: MySQL::sqlerror(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 180
    [Fri Jan 09 22:23:13 2015] [error] [client 192.168.60.131] PHP Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/fog/lib/db/MySQL.class.php on line 150
    [/CODE]


  • Developer

    [quote=“Wayne Workman, post: 47472, member: 28155”]So literally you just put in the host serial and mac address and the dev server’s IP and that’s it?

    That’s pretty sweet, I gotta say.[/quote]

    yep, that’s all you have to do


  • Moderator

    So literally you just put in the host serial and mac address and the dev server’s IP and that’s it?

    That’s pretty sweet, I gotta say.


  • Developer

    edit the default.ipxe file in the root of your tftpboot directory with these kinds of edits

    [CODE]#!ipxe
    cpuid --ext 29 && set arch x86_64 || set arch i386
    params
    param mac0 ${net0/mac}
    param arch ${arch}
    param product ${product}
    param manufacturer ${product}
    param ipxever ${version}
    param filename ${filename}
    isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
    isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

    :bootme

    redirected to dev server for testing

    ##redirect by serial number
    iseq ${serial} <host-serial> && chain http://<alternate-fog-server>/fog/service/ipxe/boot.php##params ||
    ##redirect by mac address
    iseq ${net0/mac} <mac-address-for-host> && chain http://<alternate-fog-server>/fog/service/ipxe/boot.php##params ||
    ##redirect all efi systems
    iseq ${platform} efi && chain http://<alternate-fog-server>/fog/service/ipxe/boot.php##params ||

    normal fog server

    chain http://<main-fog-server>/fog/service/ipxe/boot.php##params
    [/CODE]


  • Moderator

    [quote=“Junkhacker, post: 47412, member: 21583”]i can give you instructions on how to redirect a specific computer or two to the test server without effecting your production server’s operation[/quote]

    Go ahead and spill the beans.


  • Developer

    i can give you instructions on how to redirect a specific computer or two to the test server without effecting your production server’s operation


  • Senior Developer

    [quote=“NT_Tech, post: 47402, member: 27178”]My assistant thinks I would be nuts to try trunk again! We just rebuilt every image back to 1.2 base after a slew of issues with the trunk version. The ONLY thing not working for us in 1.2 is the scheduled imaging feature. Can you pinky swear to me that trunk is stable enough? And can you keep my assistant from sneaking up behind me and whacking me with a pc power supply if it isn’t?[/quote]

    I probably can’t keep your assistant from sneaking up behind you. I know that it is stable enough, though I’m not going to guarantee there aren’t ANY issues. The issues I was absolutely aware of (image upload resizing, boot up problems, etc…), but again I don’t know if every single facet of issue that was faced is now fixed. i won’t know until somebody who was having these problems is able to test.

    Rather than upgrade your production to trunk, maybe a test environment could be used?



  • My assistant thinks I would be nuts to try trunk again! We just rebuilt every image back to 1.2 base after a slew of issues with the trunk version. The ONLY thing not working for us in 1.2 is the scheduled imaging feature. Can you pinky swear to me that trunk is stable enough? And can you keep my assistant from sneaking up behind me and whacking me with a pc power supply if it isn’t?


  • Senior Developer

    @NT_Tech, can you upgrade back to trunk?

    There are likely some things that have been fixed and many more things I KNOW have been fixed.

    I’d really prefer to work out the kinks in it. I know there was a period where things were all out of wack, but I’m ready to say those things are hopefully long gone. There may be a few kwirks here and there, but I can’t fix what I don’t know about.



  • Ubuntu 12.04 Fog 1.2.

    What PHP files? It takes the task, but never moves them to active.



  • I don’t know if I can say its 100% fixed, but its temperamental for me at best. We use FOG as part of our backup solution by uploading images so we can download them back to bare-metal in a hard drive failure. I know this isn’t exactly what FOG was meant to do…but it does it and it works for us. I’ve found that adding some system restart instructions to rc.local has helped to keep fog services,mysql, apache all running. I’ve recently started using cron tasks and they were not working but that was because they were particular with the syntax (and it was my first time messing with cron tasks anyways.

    What OS are you using for fog? in Ubuntu server 12 we have to change some date/time entry in a couple of php files.



  • Did you ever get this fixed? I recently reverted to the 1.2 release and the only thing NOT working is scheduled tasks.

    Appreciate knowing the fix, thanks.


  • Developer

    ‘trunk’ is the proper name for the “lastest” release. SVN is a service that helps deploy the ‘trunk’ and is an easy way to get the most up-to-date ‘trunk’ of fog.

    [url]http://www.fogproject.org/wiki/index.php/Upgrade_to_trunk[/url]


  • Moderator

    [quote=“Axel, post: 40814, member: 686”]What is SVN? How do you update ?[/quote]

    [url]http://www.fogproject.org/wiki/index.php/SVN[/url]



  • What is SVN? How do you update ?



  • I’m having the same problem, I’ve just updated to the last SVN version but it hasn’t solve it



  • Am I the only one having this problem? This is super frustrating and i’m not sure where to look to start fixing this.



  • Added some errors from apache error log



  • This post is deleted!

Log in to reply
 

365
Online

38984
Users

10712
Topics

101687
Posts

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