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

    Feature request: Option to resume/re-run snapins interrupted by an installer-initiated reboot (behavior changed since 1.6)

    Scheduled Pinned Locked Moved Feature Request
    3 Posts 2 Posters 4 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
      lf88
      last edited by

      Hi everyone,

      we use FOG to fully automate the installation of our PCs at the university, including several snapins for larger software packages. Some of these installers require a reboot in the middle of the installation and trigger that reboot themselves.

      Behavior up to FOG 1.5.10:
      When an installer rebooted the machine during the snapin run, the snapin task stayed open. After the reboot, the FOG client checked in again, received the same snapin task and the installation continued. This worked reliably for us and was an important part of our deployment workflow.

      Behavior since FOG 1.6:
      After the installer-initiated reboot, the snapin is no longer delivered again. The installation is left incomplete and has to be finished manually.

      I understand that the recommended approach is to suppress the installer’s reboot and use the “Reboot after install” option instead, and that the old behavior was probably more of a side effect than an intended feature. However, for complex installers with multiple stages this means splitting them into several snapins or writing wrapper scripts for each package, which is a lot of extra work and maintenance.

      Feature request:
      It would be very helpful to have a per-snapin option like “Resume after reboot” (or “Re-run if interrupted by a reboot”). If enabled, a snapin task that was started but never reported completion before the client rebooted would be delivered again on the next check-in. To prevent endless reboot loops, a configurable maximum number of retries (e.g. 3) would make sense, after which the task is marked as failed.

      Optionally, the client could also treat the common “reboot required” exit codes (3010 / 1641) as “success, reboot needed” and handle the reboot itself.

      Environment:
      FOG server version: 1.6.0.158
      FOG agent version: 0.1.2X
      Server OS: Ubuntu 24.04 LTS
      Client OS: Windows 11
      Example snapins affected: Siemens TIA Portal

      Finally, I’d like to say a big thank you to the whole FOG team. FOG has been a core part of our deployment workflow for years, and it’s impressive how much you’ve built and maintained as an open-source project, along with the support you provide here in the forum. Your work saves us countless hours every week, and we really appreciate it!

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

        @lf88 Thanks for the detailed report. On 1.6 the server still sends an interrupted snapin again, but the new agent can report the installer’s exit before Windows stops the agent, and that report closes the task. We are confirming this in the lab and will fix it in the agent, with a retry limit so a looping installer ends as failed. To help confirm: on the host’s snapin task, what exit code and status does the UI show for the TIA Portal run? The agent log line starting snapin “<name>” (task N): shows the same thing. Also, 3010 and 1641 are already treated as “success, reboot needed” by default, and the agent then reboots the machine.

        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 @lf88
          last edited by

          @lf88 Update: in our lab, an installer that reboots the machine mid-run did get its snapin run again after the reboot, so the cause I described is not confirmed. The exit code you see on the TIA Portal snapin task is now the key piece. If the installer exits with a code before the reboot, the agent reports it and the task closes. Please also post the agent log lines around the reboot (C:\ProgramData\FOG\ log, lines starting snapin " and snapin result:).

          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

          44

          Online

          12.8k

          Users

          17.7k

          Topics

          157.6k

          Posts
          Copyright © 2012-2026 FOG Project