• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Tom Elliott
    3. Posts
    • Profile
    • Following 27
    • Followers 83
    • Topics 141
    • Posts 19,427
    • Groups 0

    Posts

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

      @lf88 Good point about the 8 reboots. Each snapin now has its own limit.

      The snapin edit page has a new field, Max reboot re-runs. The range is 1 to 20, and the default is 5. Existing snapins keep 5. There is no global setting, because the right number depends on the installer. For TIA Portal, set it to 10.

      This is on dev-branch now (schema 493). If you updated to dev-branch before this post, update once more, then run the schema update. The agent does not change: 0.1.38 is still the version you need.

      When a task uses up its limit, it fails with “Reboot and run again limit (N) reached.” in the task details.

      Details: https://docs.fogproject.org/management/web/snapins#return-codes

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)

      @lperoma Thanks, that log made both problems clear.

      Software before the join. While the server holds the join (directory_observation_required is the server waiting for the agent’s fresh view of the domain), there was no restart pending yet, so nothing told the agent to wait. Agent 0.1.37 also waits while the server holds a join and the PC’s name is not yet the host’s name. The log then says software: deferred; the server has not renamed this machine yet. Agents update themselves to it.

      The missing status row. Your script’s failure exits with -1, which Windows reports as 4294967295. The status column only holds values up to 2147483647, so the database refused the row, and the server told the agent it was stored anyway. The fix stores it as -1, and a Return Codes entry accepts either form. If the server ever cannot store a result, it now says so, and the agent tries again on the next check-in. That fix is https://github.com/FOGProject/fogproject/pull/2301 and lands on dev-branch when its checks pass. Until then, exit 1 instead of throw in the package script gets you a status row.

      With both, you should be able to drop the name check from your package script. A fresh deploy with 0.1.37 and the log lines again would confirm it.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: Option to resume/re-run snapins interrupted by an installer-initiated reboot (behavior changed since 1.6)

      @lf88 Thanks for the log line. It confirmed the cause. Your script passes the installer’s exit code 11641 through. FOG read that code as failed and closed the task. Then the snapin’s reboot setting rebooted the machine, so nothing ran again.

      FOG now has a return-code class for this case: reboot_rerun. The agent reboots the computer, then runs the same snapin task again. One task can do this at most 5 times. The sixth answer marks the task failed.

      Update first. You need FOG dev-branch (it adds schema 492) and fog-agent 0.1.38 or later on every computer that gets the snapin. With update mode Latest, the agents update themselves after the ring delay. Check the agent version on the host before you change the snapin. An older agent does not know reboot_rerun. It runs TIA Portal again at the next check-in with no reboot, up to 5 times, and then the task fails.

      Then set the snapin’s Return Codes:

      0=success
      3010=reboot
      11641=reboot_rerun
      13010=reboot_rerun
      

      For NI Package Manager, add -125071=reboot_rerun and -125804=reboot_rerun.

      Also:

      • Keep passing the installer’s exit code through.
      • Stop the installer from rebooting by itself. FOG does the reboot.
      • Clear Reboot after install on this snapin.

      Details: https://docs.fogproject.org/management/web/snapins#return-codes

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: Option to resume/re-run snapins interrupted by an installer-initiated reboot (behavior changed since 1.6)

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

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: Option to resume/re-run snapins interrupted by an installer-initiated reboot (behavior changed since 1.6)

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

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature Request: Central software package cache for WinGet

      @wbg The WinGet cache is built. It is on dev-branch now, and it reaches stable on December 11.

      How it works: the FOG server downloads the installer once. It checks each file against the SHA-256 in the WinGet manifest. Hosts then install from the FOG server, not from the internet, and WinGet checks the SHA-256 again before it installs.

      To use it:

      • Update the server to dev-branch and run the installer. The installer creates the cache folder (/opt/fog/softwarecache) and adds the PHP modules the cache needs.
      • Hosts need FOG Agent 0.1.31 or later. It is released, so agents that update from your server get it. An older agent ignores the cache and installs from the internet, as before.
      • Edit a WinGet entry and turn on Cache on this server. The edit page shows the cache state.
      • Keep the FOG Agent Release Sync service on. It runs the cache, on its normal schedule.

      Limits:

      • Only packages from the public winget source. The server shares the cached files over plain HTTP with no sign-in, so do not use it for a package that holds a license key.
      • The server keeps every installer variant that a version lists (x64, ARM, MSI, EXE), because WinGet picks one on each host. The files go in /opt/fog/softwarecache, and the server stops new downloads when less than 5 GiB is free. To use a bigger disk, mount it at that path and run the installer again.
      • If a check fails, hosts get the last cached version, with a warning in the Software Status details.

      Docs: https://docs.fogproject.org/en/latest/management/web/software/#caching-the-installer-on-the-fog-server

      If you test it, please post what you see here, good or bad.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: FOG 1.6.1 – Memtest86+ 8.10 incorrectly classified as Linux kernel

      @wbg You are right, and thank you for the header details. They made this quick to confirm.

      Memtest86+ 6.0 and later is built to boot like a Linux kernel: it has a PE header, HdrS, and boot protocol 0x020c. FOG’s boot file check therefore classified mt86plus_x86_64 as a FOS kernel. FOG_MEMTEST_KERNEL lists boot payloads only, so the default value that FOG ships showed the warning.

      The fix reads the version text in the file header. Memtest86+ reports Memtest86+ v8.10, and a Linux kernel reports a release number. The server re-checks the file on the next page load, so the warning clears with no other action.

      • Issue: https://github.com/FOGProject/fogproject/issues/2241
      • Fix: https://github.com/FOGProject/fogproject/pull/2242

      The warning comes from the settings page only. The boot menu uses the value as it is, so “Run Memtest86+” still loads mt86plus_x86_64. You do not need to change anything until the fix reaches your channel.

      posted in Bug Reports
      Tom ElliottT
      Tom Elliott
    • RE: Feature Request: Central software package cache for WinGet

      @wbg 1.6.1 has no WinGet cache yet. Each Software entry has a Source field. The agent passes it to winget as --source. So you can point an entry at a local source today, but the client must already have that source registered.

      Two options now:

      • Chocolatey with an internal feed. A folder or a share is a valid Chocolatey source. Set the backend to Chocolatey and put the share path in Source.
      • A self-hosted WinGet REST source (for example rewinged), with installer URLs that point at a local web server. Register it on the clients with winget source add (a snapin works). Then put the source name in Source.

      A built-in cache on the FOG server is a reasonable request. We are tracking it here: https://github.com/FOGProject/fogproject/issues/2236

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)

      @lperoma Both changes are out now, so you can test them.

      • Agent 0.1.30 waits for the rename/join restart before it runs software, and the snapins wait with it. Agents update themselves to it. After the restart, the first check-in runs the software under the new name. You can drop the name check from your package script.
      • A finished deploy now clears the host’s software status. That is on dev-branch, so update your server to dev-branch to get it.

      One thing to know: if a user stays logged in on a renamed PC, the restart waits for them to log off, so software waits too. Turn on “Enforce Hostname | AD Join Reboots” on the host to restart after the grace period instead. Details: https://docs.fogproject.org/en/latest/management/web/software/#software-waits-for-a-rename-or-a-domain-join

      The log lines for the stale status are still useful if you can grab them.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Feature request: option to run a software item only after the host has been renamed and joined to the domain (with record failed Chocolatey packages)

      @lperoma Thanks for the detail. On the first two points: the next agent release will hold software until the rename/join reboot has happened, and a finished deploy will clear the host’s software status.

      On the status row not updating: the server writes that row on every report, failures included, so something else is happening. Could you post the agent log lines from the pass where the script threw? Look for the line that starts with software "<your package id>":, plus the matching lines in the web server log. Also, which page shows the stale converged: the host’s Software tab, or the installed-software inventory?

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Feature Request: Check minimum required PHP version before FOG dev-branch upgrades

      @sgennadi Thanks for the PHP 8.6 report.

      You are right: CI tested only PHP 7.4 and 8.3. CI now also runs the full test suite on PHP 8.4 and 8.5 for every change. Both pass today. A failure on 8.4 or 8.5 shows as a warning and does not block a change or a release. I will add 8.6 when the CI tooling supports it.

      The tested versions are now on the requirements page: https://docs.fogproject.org/installation/server/requirements#php-versions

      I will not add a “latest verified PHP” value to the installer. Somebody must update that number by hand at every PHP release, and a stale number warns about versions that work. The docs table changes when the CI matrix changes, so it stays correct.

      FOG sets no maximum PHP version. If a newer PHP gives you an error, please post the output of php -v and the last lines of the PHP-FPM error log.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature Request — Automatic Root SSH Authentication for FOS Debug Tasks

      @sgennadi Thanks for the detailed write-up. You are right that FOS already runs sshd and allows root login. The only gap is that root has no credential you can use remotely.

      I filed this as https://github.com/FOGProject/fogproject/issues/2193 with a key-only design:

      • You put one or more SSH public keys in a FOG setting.
      • When a debug task starts, FOS fetches the keys and installs them for root.
      • FOS shows the IPv4 and IPv6 addresses on the console, so you can connect right away.
      • Normal deploy, capture, and registration tasks never install the keys.

      A public key is not a secret, so it can reach FOS without any protected delivery. A root password is different. It needs a protected way to reach FOS, and a kernel argument would expose it. So a configured password and a random password for each task are out of scope for now. Each can be its own request after the key version ships.

      Until then, the workaround is the one you already use: run passwd at the debug console, then connect with SSH.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Feature Request - Email Test Feature

      @rogalskij This feature now exists in 1.6.1.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • FOG 1.6.1 Available

      FOG 1.6.1 is released. It is on the stable and master branches, and the tag is 1.6.1.

      Upgrade from your FOG source checkout:

      sudo bin/updatefog.sh --channel stable
      

      Or run git pull on stable, then bin/installfog.sh. The schema moves from 446 to 473, so the web UI asks for the schema update after the upgrade. Installs from master use FOS 1.6.1.

      Highlights

      • IPv6: IPv6 listeners, opt-in DHCPv6, boot to the IPv6 address, and multicast over IPv6. FOS 1.6.1 adds IPv6 and udpcast over IPv6.
      • Software management through the fog-agent, per host and per group, with Flatpak, Snap, and winget.
      • Storage nodes: deploys balance across a group, and a full node overflows at PXE boot.
      • AD rejoin and OU placement for deployed images.
      • Roles can limit the networks their members use the web UI and API from.
      • The Imaging Report records deploys and multicast joins to unregistered hosts. “Deploy image now” after Full Registration deploys with no reboot.
      • MySQL 8.0.13+ installs and upgrades.

      Security: 1.6.1 is the first stable release with the fix for GHSA-q38j-qx5x-w25v (a Legacy Restricted user could read the AD join password and product keys). If you moved to the Patches channel to get that fix early, you can switch back with --channel stable.

      Offline installs: the installer now downloads udpcast from FOGProject/udpcast and checks its sha256. Put udpcast-v20250223-fog.1.tar.gz and its .sha256 in packages/ before you run the installer.

      Thank you to ASPePeX on GitHub for the OIDC trailing-slash fix (fog-plugins #49), and to everyone who tested and reported issues.

      Full release notes: https://github.com/FOGProject/fogproject/releases/tag/1.6.1

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • RE: Dev-branch version string mismatch: 1.6.0.402 vs 1.6.1.402

      @Fog_Newb Thanks for the report. You caught the moment of the 1.6.1 release.

      The release commit set the 1.6.1 version on dev-branch about an hour before the 1.6.1 tag was pushed. The update check on fogproject.org read the new version, so it showed 1.6.1.402. Your server builds its version from the tag, which did not exist yet, so it showed 1.6.0.402. Nothing is wrong with your install.

      The tag is now published. To clear the banner, run this from your FOG source checkout:

      git fetch origin --tags
      sudo bin/installfog.sh -y
      

      The version page then shows 1.6.1.0, and the update check says you are up to date.

      posted in Bug Reports
      Tom ElliottT
      Tom Elliott
    • RE: Imaging Log for unregistered hosts

      @DBCountMan Both parts of this are planned for FOG 1.6.1. They are not in 1.5.x, so you will need to upgrade to 1.6 to get them.

      Imaging log for unregistered hosts

      A deploy or a multicast join from the iPXE menu on an unregistered (or pending) host now creates a real task. That task:

      • shows in Active Tasks with full progress, like a registered host, under the name <MAC> (unregistered)
      • records the menu user who started it, so you can see who deployed
      • appears in Reports > Imaging Log with the MAC address, the image, the user, and the result

      This needs the FOS (init) that ships alongside 1.6.1. The installer pulls the latest FOS. With an older init the imaging still works, but the task never gets a report back, and it closes as “No Report” after 24 hours.

      Forcing registration before a deploy

      Go to FOG Configuration > iPXE Menu, then open “Deploy Image” and “Join Multicast Session”. Set “Menu Show with” to “Registered Hosts”. Before this change, that setting only hid the menu item. In 1.6.1 the server also refuses the deploy or join for an unregistered host, so someone cannot get around it by calling the menu option directly.

      Also in 1.6.1: when you pick “deploy image now” during Full Registration, the machine images in the same boot. It no longer reboots back through PXE first.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Avoid running tasks when in audit mode

      @AlexisPHC Following up on this one. FOG 1.6 ships with the new FOG Agent, which replaces the legacy FOG Client. From agent version 0.1.23, the agent reads HKLM\SYSTEM\Setup\State\ImageState and does nothing until Windows setup reports itself complete. That includes audit mode. A machine in audit mode does not enroll, check in, join the domain, run snapins, or reboot. You can leave the service enabled through Sysprep. You no longer need to disable it or start it from SetupComplete.cmd.

      The legacy FOG Client does not have this check. With the legacy client, disable the service as described earlier on.

      Details: https://docs.fogproject.org/en/latest/installation/client/install-fog-agent/#sysprep

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Identify laptops by serial number (not MAC) — MAC changes with USB-C to Ethernet dongles

      @takeit FOG 1.6.0 can do this. A booting machine is matched on its SMBIOS identity as well as its MAC: system UUID, system serial, board serial, and chassis asset tag.

      It is controlled by one setting: FOG Configuration > FOG Settings > General Settings > FOG_HOST_IDENTIFY_SMBIOS.

      • Off: MAC only, the old behavior.
      • Log (the default): the MAC still decides. Every disagreement between the MAC and the firmware is written to the web server error log.
      • Enforce: a unique firmware match wins over the MAC.

      For your case (one laptop, a different dongle each time):

      1. Upgrade to 1.6.0.
      2. Make sure each laptop has an inventory record. A full registration or an inventory task captures the SMBIOS values.
      3. Leave the setting on Log for a while and read the error log. Some firmware reports junk identifiers, for example every board of a model with the UUID FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF. A value that is not unique is not used for matching, but it is good to know what your hardware reports.
      4. Switch to Enforce. A laptop that boots on an unknown dongle MAC then resolves to its existing host by its firmware identity.

      If you share one dongle between many laptops (the opposite case), the next release adds a Register mode for that. It is on dev-branch now.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Certificate manament helper not working

      @AdamC This has the same cause as your services thread: the umask 027 on your server. The installer puts the helper in /opt/fog/bin. Under umask 027 that folder is root-only (drwxr-x—). The Certificates page checks for the helper as the web server user, and that user cannot see into the folder. So the page reports the helper as missing, but the helper is installed.

      Run this as root, then reload the Certificates page:

      chmod a+x /opt/fog /opt/fog/bin

      This lets other users pass through the folder. It does not let them list it, and it does not change any file in it.

      If you use Secure Boot kernel signing, the same check stops it. Kernels you download in the UI stay unsigned until you run the command above.

      The installer fix is https://github.com/FOGProject/fogproject/pull/2167. It reaches stable with the next 1.6 release.

      One addition: if you use Secure Boot, download your kernels again in the web UI after the chmod. A kernel downloaded while the folder was locked stayed unsigned, and Secure Boot PCs will not boot it.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Services failing to start

      @AdamC Thanks, the screenshot shows the cause. Those three services run as the web server user, not as root. Your service folders and scripts are root-only (drwxr-x--- and -rwxr-x---), so that user cannot open them. The other services run as root, so they start. The installer copies the modes your FOG checkout has. A system with a restrictive umask (027) makes the checkout root-only, and a reinstall copies the same modes again.

      The installer fix is https://github.com/FOGProject/fogproject/pull/2166. It reaches stable with the next 1.6 release. Until then, run this as root:

      chmod a+x /opt/fog /opt/fog/log /opt/fog/service/etc
      chmod a+rx /opt/fog/service
      cd /opt/fog/service && for d in FOG* lib; do chmod -R a+rx "$d"; done
      chmod 644 /opt/fog/service/etc/config.php
      systemctl restart FOGAgentReleaseSync FOGPluginRunner FOGRetentionRunner
      

      This does not touch anything else in /opt/fog/service/etc.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • 1
    • 2
    • 3
    • 4
    • 5
    • 971
    • 972
    • 2 / 972