• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Scheduled tasks are not starting in FOG 1.2.0

    Scheduled Pinned Locked Moved
    FOG Problems
    8
    19
    7.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Axel
      last edited by

      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]

      1 Reply Last reply Reply Quote 0
      • A
        Axel
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • A
          Axel
          last edited by

          Added some errors from apache error log

          1 Reply Last reply Reply Quote 0
          • A
            Axel
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • J
              Josetxu
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • A
                Axel
                last edited by

                What is SVN? How do you update ?

                1 Reply Last reply Reply Quote 0
                • ch3iC
                  ch3i Moderator
                  last edited by

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

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

                  1 Reply Last reply Reply Quote 0
                  • W
                    Wolfbane8653 Developer
                    last edited by

                    ‘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]

                    1 Reply Last reply Reply Quote 0
                    • N
                      NT_Tech
                      last edited by

                      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.

                      1 Reply Last reply Reply Quote 0
                      • A
                        Axel
                        last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • N
                          NT_Tech
                          last edited by

                          Ubuntu 12.04 Fog 1.2.

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

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

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

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            1 Reply Last reply Reply Quote 0
                            • N
                              NT_Tech
                              last edited by

                              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?

                              1 Reply Last reply Reply Quote 0
                              • Tom ElliottT
                                Tom Elliott
                                last edited by

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

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                1 Reply Last reply Reply Quote 0
                                • JunkhackerJ
                                  Junkhacker Developer
                                  last edited by

                                  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

                                  signature:
                                  Junkhacker
                                  We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                                  1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman
                                    last edited by

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

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    1 Reply Last reply Reply Quote 0
                                    • JunkhackerJ
                                      Junkhacker Developer
                                      last edited by

                                      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]

                                      signature:
                                      Junkhacker
                                      We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                                      1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman
                                        last edited by

                                        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.

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                                        Daily Clean Installation Results:
                                        https://fogtesting.fogproject.us/
                                        FOG Reporting:
                                        https://fog-external-reporting-results.fogproject.us/

                                        1 Reply Last reply Reply Quote 0
                                        • JunkhackerJ
                                          Junkhacker Developer
                                          last edited by

                                          [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

                                          signature:
                                          Junkhacker
                                          We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                                          1 Reply Last reply Reply Quote 0
                                          • 1 / 1
                                          • First post
                                            Last post

                                          148

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project