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

    Fog Menu loop

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    40
    5.9k
    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.
    • R
      Rebelman
      last edited by

      Running Fog server 1.5.5, Ubuntu 14.03.
      Deploying to a new UEFI boot Dell machine, DHCP Windows 2016 running Option 66 - Fog IP Address Option 67 - ipxe.efi
      When deploying an image to a new machine, I am able to get to the fog menu with no problems, but once I select either Full or Quick Registration I am greeted with a black menu screen with no cursor or location of where the menu is seletcted. I can hit down twice and hit enter on Full Reg and it just loops back to this menu, if I hit escape I get an operation canceled, could not boot, chainloading error.Fog-Menu.jpg

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        Is this a new fog install, or is this behavior just happening with this new dell?

        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!

        1 Reply Last reply Reply Quote 0
        • R
          Rebelman
          last edited by

          Fog server has been in place just updated to 1.5.5 was running 1.2.0. Just experiencing this on new Dell machines that can’t boot Legacy.

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

            @Rebelman said in Fog Menu loop:

            Ubuntu 14.03.

            Quite old. Hope you are aware if it went out of support just these days.

            About the issue. Please open the following URL in your browser and post full output here: http://x.x.x.x/fog/service/ipxe/boot.php (put in the FOG xerver IP instead of x.x.x.x)

            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
            • R
              Rebelman
              last edited by Sebastian Roth

              #!ipxe
              set fog-ip 10.254.1.20
              set fog-webroot fog
              set boot-url http://${fog-ip}/${fog-webroot}
              cpuid --ext 29 && set arch x86_64 || set arch i386
              iseq ${platform} efi && set key 0x1b || set key 0x1b
              iseq ${platform} efi && set keyName ESC || set keyName Escape
              prompt --key ${key} --timeout 0 Booting... (Press ${keyName} to access the menu) && goto menuAccess || sanboot --no-describe --drive 0x80
              :menuAccess
              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param platform ${platform}
              param username ${username}
              param password ${password}
              param menuaccess 1
              param debug 1
              param sysuuid ${uuid}
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
              :bootme
              chain -ar http://10.254.1.20/fog/service/ipxe/boot.php##params
              
              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Rebelman
                last edited by Sebastian Roth

                @Rebelman said in Fog Menu loop:

                just updated to 1.5.5 was running 1.2.0

                Just to clarify this is the first system you are trying to image since the upgrade from 1.2.0? The reason why I ask is that your boot menu via the url that Sebastian supplied is incomplete.

                You might want to try this url
                http://x.x.x.x/fog/service/ipxe/boot.php&mac=00:00:00:00:00:00

                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!

                1 Reply Last reply Reply Quote 0
                • R
                  Rebelman
                  last edited by

                  Yes the first system to image since updating, also should you’re proposed URL mac address on the end be a specific address or all 0’s?

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @Rebelman
                    last edited by george1421

                    @Rebelman Yes all zeros.

                    This is what I might expect the beginning of your boot menu to look like.

                    #!ipxe
                    set fog-ip 192.168.1.50
                    set fog-webroot fog
                    set boot-url http://${fog-ip}/${fog-webroot}
                    cpuid --ext 29 && set arch x86_64 || set arch i386
                    goto get_console
                    :console_set
                    colour --rgb 0x00567a 1 ||
                    colour --rgb 0x00567a 2 ||
                    colour --rgb 0x00567a 4 ||
                    cpair --foreground 7 --background 2 2 ||
                    goto MENU
                    :alt_console
                    cpair --background 0 1 ||
                    cpair --background 1 2 ||
                    goto MENU
                    :get_console
                    console --picture http://192.168.1.50/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
                    :MENU
                    menu
                    colour --rgb 0xff0000 0 ||
                    cpair --foreground 1 1 ||
                    cpair --foreground 0 3 ||
                    cpair --foreground 4 4 ||
                    item --gap Host is NOT registered!
                    item --gap -- -------------------------------------
                    item fog.local Boot from hard disk
                    item fog.memtest Run Memtest86+
                    item fog.reginput Perform Full Host Registration and Inventory
                    item fog.reg Quick Registration and Inventory
                    item fog.deployimage Deploy Image
                    item fog.multijoin Join Multicast Session
                    item fog.sysinfo Client System Information (Compatibility)
                    
                    

                    As you can see they are not even close. I might run through the fog installer script one more time to see if everything got updated correctly.

                    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!

                    1 Reply Last reply Reply Quote 0
                    • R
                      Rebelman
                      last edited by

                      When I type http://10.254.1.20/fog/service/ipxe/boot.php&mac=00:00:00:00:00:00 I am redirected to my Fog dashboard. And I’ve already run through the installer once more before posting on here as a possible solution.

                      1 Reply Last reply Reply Quote 0
                      • R
                        Rebelman
                        last edited by

                        I also just tested on an older machine that still uses Legacy and I have no problems imaging it. Problem is only happening on newer machines that have I have to use UEFI images.

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

                          @george1421 said in Fog Menu loop:

                          http://x.x.x.x/fog/service/ipxe/boot.php&mac=00:00:00:00:00:00

                          There is a typo in the URL… & should be ? -> http://x.x.x.x/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00

                          @Rebelman said:

                          I also just tested on an older machine that still uses Legacy and I have no problems imaging it. Problem is only happening on newer machines that have I have to use UEFI images.

                          Well that’s interesting. I need to think about this a bit more and look through the code. Not sure why this would make a difference at that stage yet.

                          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

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            Rebelman @Sebastian Roth
                            last edited by

                            @Sebastian-Roth This is what I get when I do the ? mark.

                            #!ipxe
                            set fog-ip 10.254.1.20
                            set fog-webroot fog
                            set boot-url http://${fog-ip}/${fog-webroot}
                            cpuid --ext 29 && set arch x86_64 || set arch i386
                            iseq ${platform} efi && set key 0x1b || set key 0x1b
                            iseq ${platform} efi && set keyName ESC || set keyName Escape
                            prompt --key ${key} --timeout 0 Booting... (Press ${keyName} to access the menu) && goto menuAccess || sanboot --no-describe --drive 0x80
                            :menuAccess
                            login
                            params
                            param mac0 ${net0/mac}
                            param arch ${arch}
                            param platform ${platform}
                            param username ${username}
                            param password ${password}
                            param menuaccess 1
                            param debug 1
                            param sysuuid ${uuid}
                            isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                            isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
                            :bootme
                            chain -ar http://10.254.1.20/fog/service/ipxe/boot.php##params
                            
                            1 Reply Last reply Reply Quote 0
                            • S
                              Sebastian Roth Moderator
                              last edited by

                              @Rebelman said in Fog Menu loop:

                              :menuAccess
                              login

                              Please take a look through the iPXE menu options in the web UI. Maybe there is something wrong there.

                              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

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                Rebelman @Sebastian Roth
                                last edited by

                                @Sebastian-Roth said in Fog Menu loop:

                                Please take a look through the iPXE menu options in the web UI. Maybe there is something wrong there.

                                Is there something specific I need to be looking for, I’m under the iPXE Menu Item Settings and not sure what to be looking for.

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

                                  @Rebelman See if the option for hidden menu is checked for example.

                                  I need to take a look at the code later on to hopefully get an idea where this might be coming from. Will do that on the way home soon.

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

                                    @Rebelman Taking a look at the code I can confirm that this part of the menu is related to the “hide menu” setting. Though I am still not sure if we see a bug here or if there is something going wrong only in your particular situation (maybe update problem, but really shouldn’t be).

                                    Did you enable the hidden menu intentionally? Is is enabled at all when you look at the settings in the web UI?

                                    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

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      Rebelman @Sebastian Roth
                                      last edited by Rebelman

                                      @Sebastian-Roth
                                      Here are my Menu hide settings, nothing is checked as far as hiding the menu.
                                      fog.png

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

                                        @Rebelman I still can’t replicate this issue unless I enable the hidden menu. Please check in the database to make sure the web UI is not playing tricks on us.

                                        shell> mysql -u root -p
                                        Enter password:
                                        ...
                                        mysql> use fog;
                                        ...
                                        mysql> SELECT * FROM globalSettings WHERE globalSettings.settingKey LIKE '%HID%';
                                        ...
                                        mysql> quit
                                        

                                        Please take a picture of the output and post here.

                                        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

                                        R 1 Reply Last reply Reply Quote 0
                                        • R
                                          Rebelman @Sebastian Roth
                                          last edited by

                                          @Sebastian-Roth said in Fog Menu loop:

                                          mysql> SELECT * FROM globalSettings WHERE globalSettings.settingKey LIKE ‘%HID%’;

                                          Here are my lines that return when I type that in.

                                          +-----------+----------------------------+-----------------------------------------------------------------------------+--------------+-------------------+
                                          | settingID | settingKey                 | settingDesc                                                                 | settingValue | settingCategory   |
                                          +-----------+----------------------------+-----------------------------------------------------------------------------+--------------+-------------------+
                                          |        64 | FOG_PXE_MENU_HIDDEN        | This setting defines if you would like the FOG pxe menu hidden or displayed | 0            | FOG Boot Settings |
                                          |       114 | FOG_PXE_HIDDENMENU_TIMEOUT | This setting defines the default value for the pxe hidden menu timeout.     | 30           | FOG Boot Settings |
                                          +-----------+----------------------------+-----------------------------------------------------------------------------+--------------+-------------------+
                                          2 rows in set (0.01 sec)
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Sebastian Roth Moderator
                                            last edited by Sebastian Roth

                                            @Rebelman This is not making sense to me. Seems like hidden menu is definitely not active on your server but still you get the output from boot.php as if it would be enabled.

                                            One thing I noticed in the output you posted is that the settingID of FOG_PXE_MENU_HIDDEN on your server is 64. On mine it is 69. But FOG_PXE_HIDDENMENU_TIMEOUT is 114 same as yours. The settingID does not play a role as far as I know but I wonder if this is a first sign of some database issue/difference that might be playing a role in this.

                                            Let’s step back from the details a little bit. Re-reading your posts I wonder about what you are saying this only being an issue with UEFI machines. You said: “I also just tested on an older machine that still uses Legacy and I have no problems imaging it”. Was this legacy machine as well new to FOG, I mean unregistered?

                                            You might want to run the database maintenance just to make sure: https://wiki.fogproject.org/wiki/index.php/Troubleshoot_MySQL#Database_Maintenance_Commands

                                            Could you possibly take a video of the boot process? Would be great to see the exact difference. Take one video where you boot an unregistered UEFI machine. As well take another video where you do the exact same steps with an unregistered legacy machine. Upload those videos and post links here.

                                            For a clear good readable video capture you can rest your camera or smartphone on a pile of books on your desk. Will be way less shaky than doing it free hand.

                                            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

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

                                            188

                                            Online

                                            12.1k

                                            Users

                                            17.3k

                                            Topics

                                            155.3k

                                            Posts
                                            Copyright © 2012-2024 FOG Project