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

    Tasks do not start

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    22
    6.8k
    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 Former User
      last edited by

      Hi

      I had been running fog 1.2.0 for a whilst mostly ok but came to a problem with a vista machine and apparently this was a bug in that version after posting here, i tried updating to svn 2996 on Tom’s recommendation but had a bunch of other unrelated issues issues so instead I decided to start from scratch and installed Xubuntu LTS 14.04b and svm 2996 again everything seems to be behaving, i can boot to pxe menu and register my host just fine

      Created image on the web gui, assigned to host and queued instant upload task. But my client just boots to the pxe menu, quick image tells me host already has active task (which it does).

      Bit stumped as to where I have gone wrong here. I am not seeing any obvious errors, checked the /var/log/fog folder but no errors. Similarly apache logs shows my client booting pxe fine.

      Any pointers for where to look next?

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        Computergeek01
        last edited by

        Is the host booting to the PXE menu using the NIC with the primary MAC address listed in the Web UI?

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by

          yes, the mac is correct and collected during the registration only one nic which is the built in one on the motherboard

          similarly a debug task doesnt work either

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            AFAIK that client gets to see a different iPXE file depending on a task being scheduled for it or not. The file your are looking for is being generated output by the following PHP script: [url]http://<fog-server-ip>/fog/service/ipxe/boot.php[/url]

            Type this URL into your browser. It should look different when you request it from your normal PC than when you send the request from that Client that is supposed to run a task (should be way shorter then!). Does it look different??

            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
            • ?
              A Former User
              last edited by

              I will heck that out tomorrow morning don’t have vpn access to test network - thanks

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                hard to tell how much different, lots of code displayed, FWIW booting machine post registration lists machine at top of boot screen as registered as <machinename> - Starting to wonder if build is buggy? this is 2996, is there a relatively stable earlier rev? i understand later ones are possibly broken whilst Tom is working on speed improvements?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by

                  You’d see the difference, I am sure! The output from boot.php is only 4-5 lines if that particular client is scheduled with a task BUT is much longer if there is no task (and therefore shows the menu).

                  Are you sure that you are scheduling that task for the same machine that you try to access the URL from?? Maybe MAC address was changed or something like that. Please double check the clients MAC address and compare it with the one being configured for that particular client in the webinterface…

                  Tom reverted the whole repository back to 2996 just a few days ago as he couldn’t get to a satisfying end tracking down the performace issue. I think you’re pretty alright with 2996 at the moment!

                  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
                  • Tom ElliottT
                    Tom Elliott
                    last edited by

                    You could try 3036. I’ve reverted most of the speed improvements while leaving the code available for me to fiddle with. I’ve seen much better success with this at work and in testing so hopefully it’ll work better for your needs as well? If earlier is what you’re after you could definitely use 2948 as a fairly rock solid build as well.

                    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
                    • ?
                      A Former User
                      last edited by

                      thanks guys will give a different build a try.

                      uncle frank, in both cases the boot.php was quite long. But the machines were definitely registered and MAC addresses all checked out as well as bios/system time etc both ends which has tripped me up before now.

                      Think i might also bite bullet and put on something like centos in place of xubuntu as I read a few places ubuntu had its issues , eg image size

                      Will let you know how I get on

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

                        in order to see the different output of boot.php for the host with a scheduled task, you need to make the url [URL=‘http://%3Cfog-server-ip%3E/fog/service/ipxe/boot.php’]http://<fog-server-ip>/fog/service/ipxe/boot.php[/URL]?mac=<host-mac-address>

                        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
                        • ?
                          A Former User
                          last edited by

                          ok centos installed, fog installed and getting tftp timeout error, testing from any remote machine for tftp just does not seem to respond.

                          Its very strange, ive tested and queried my dhcp server on draytek router, it is definitely handing out the tftp server ip and the undionly.kpxe fine, but any attempt to connect to the tftp server outside of the machine itself fails. Also even locally now when i try the test command I get a permissions fail unless i use sudo.

                          But strangely if i delete my .fogsettings and re-set up with fogserver as dhcp it works fine. Any ideas?

                          This is on 3036 now but had exact same issue with ubuntu 14.

                          my local user on machine at the moment (which is an admin) is ccsadmin

                          os at the moment is centos 7

                          Ideally would be nice to have fog on main network rather than separated to its own switch hence using dhcp of the router.

                          tried from other posts setting recursive 777 permissions on tftpboot folder
                          and chown -R ccsadmin:root
                          and restorecon -Rv /tftpboot

                          selinux is definitely disabled, as it iptables etc

                          Possibly one small thing im missing here, just seem to his this same point then his problems. Any help would be much appreciated.

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by

                            [quote=“Junkhacker, post: 42675, member: 21583”]in order to see the different output of boot.php for the host with a scheduled task, you need to make the url [URL=‘http://%3Cfog-server-ip%3E/fog/service/ipxe/boot.php’]http://<fog-server-ip>/fog/service/ipxe/boot.php[/URL]?mac=<host-mac-address>[/quote]

                            thanks I will try that to check it out, presume i write mac as is without colons or dashes?

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

                              [quote=“bengillam, post: 42692, member: 28624”]thanks I will try that to check it out, presume i write mac as is without colons or dashes?[/quote]

                              with colons

                              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
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                AFAIK it’s …mac=12:34:56:78:90:ab (colons and lowercase letters). Please correct me if I am wrong!

                                I am not sure if I get your setup right. Is the draytek router also setup to offer TFTP or just DHCP pointing to FOG as next-server? Which commands do you use to test TFTP???

                                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
                                • ?
                                  A Former User
                                  last edited by

                                  Options 66/67 eg the tftp server and then the boot file name are set, I was under impression these were the two settings needed? The clients get an IP fine but when they attempt to connect to what they are given it times out.

                                  Testing tftp I’m using (off top of head, at home now)

                                  Tftp -v localhost -c get undionly.kpxe , appears to work when using sudo but not without

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by

                                    Yes, those two options should suite you. Really wired, why should tftp(-client) need sudo??

                                    See if your TFTP server ist running an listening on the correct address:
                                    [CODE]# netstat -antup | grep tftp
                                    udp 0 0 0.0.0.0:69 0.0.0.0:* 10149/in.tftpd[/CODE]
                                    Check iptables firewall rules:
                                    [CODE]# iptables -L -n -v
                                    Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
                                    pkts bytes target prot opt in out source destination

                                    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
                                    pkts bytes target prot opt in out source destination

                                    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
                                    pkts bytes target prot opt in out source destination[/CODE]
                                    Here you see three chains. Pay close attention to INPUT and OUTPUT. ‘policy’ should be ‘ACCEPT’ and no rules defined (as you see in the output here) unless you really know how to configure linux firewall.

                                    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
                                    • ?
                                      A Former User
                                      last edited by

                                      First command doesn’t return anything, however this is centos install now as I started from scratch again due to earlier problems, however xinetd I believe handles tftp which does run if I grep xinetd.

                                      But returns same as you with the 0.0.0.0:69

                                      Similarly up tables lists fine again no rules and accept as you say, I would paste my console but only got access via ssh client on my iphone at the moment which doesn’t want to let me 😕

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        Sebastian Roth Moderator
                                        last edited by

                                        And you still can’t ‘tftp’ from your clients to the server?!

                                        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
                                        • ?
                                          A Former User
                                          last edited by

                                          Yep, still broken but I have one last idea. Going to reinstall with fog as dhcp and then disable the dhcp service plug back into my meyeork and see if it makes a difference but seems each time using fog as own dhcp seems to allow connections

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Sebastian Roth Moderator
                                            last edited by

                                            Shouldn’t make the difference! DHCP and TFTP don’t need to be on the same machine. Have you tried to follow this step by step: [URL=‘http://fogproject.org/wiki/index.php/Tftp_timeout…’]http://fogproject.org/wiki/index.php/Tftp_timeout[/URL]…

                                            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
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            164

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project