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

    1.6.0.14: "Create new tasking" modal hangs on "Loading, please wait..." if the host has no image

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    3 Posts 2 Posters 34 Views
    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.
    • L
      lperoma
      last edited by

      Just ran into something odd after upgrading to 1.6.0.14. I wanted to capture an image from a host that had no image assigned yet, clicked Capture in the host’s Tasks tab, and the “Create new tasking” modal just sat there on “Loading, please wait…” for good. No error, nothing.

      It took me a while to work out what was going on. The Apache access log shows the request coming back with a 400:

      GET /fog/management/index.php?node=host&sub=deploy&id=607&type=2  ->  400
      

      From a quick look at HostManagement::deploy() it seems to throw “Assigned image is invalid” when the host has no valid image, so I’m guessing that’s what the 400 says, but the modal never shows it.

      Setting an image in the host’s General tab fixed it right away. It would be nice if the modal showed the error, or if Deploy/Capture were greyed out when there’s no image, because from the UI it just looks like the page is broken.

      Tom ElliottT 2 Replies Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @lperoma
        last edited by

        @lperoma Thanks for tracking this down. Your reading is right.

        The 400 is “Assigned image is invalid”. The modal tried to close itself on the error, but the request came back while the modal was still opening, and the browser ignored the close. So it sat on “Loading, please wait…” with nothing to say why. The group Tasks tab and the re-deploy link on the Tasks page had the same problem.

        The fix is in this pull request: https://github.com/FOGProject/fogproject/pull/2091. On any refused request, the modal now shows the reason in a red box, for example “Assigned image is invalid”, and stops loading. It is not merged yet. It reaches stable with the next stable release after it merges.

        Until then, the workaround is what you found: set an image on the host’s General tab first.

        We did not grey out Deploy and Capture. With the reason in the modal, it is clear what to fix.

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

          @lperoma The fix is now in stable release 1.6.0.158. Update to it, and a refused task shows its reason in the modal instead of hanging on “Loading, please wait…”.

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

          64

          Online

          12.8k

          Users

          17.7k

          Topics

          157.4k

          Posts
          Copyright © 2012-2026 FOG Project