• 0 Votes
    5 Posts
    69 Views
    W

    Hi @Tom-Elliott ,

    I switched our FOG server to dev-branch and started testing the new WinGet cache.

    Test environment:

    FOG Server 1.6.1.349 (dev-branch) FOG Agent 0.1.39 Ubuntu 22.04.5 LTS 93 Windows 11 computers assigned to the 7-Zip software package 165 GB of free disk space

    The upgrade completed successfully. All 12 FOG services are running, the required PHP extensions are installed, and the cache directories were created correctly.

    Issue: Cached installers are immediately removed

    I enabled caching for 7-Zip (Latest, Present, default source, architecture x64).

    All six installer variants of version 26.06 were downloaded successfully. However, the service immediately removed all six installers and the generated manifest.

    The final log entry was:
    Software cache: 6 downloaded, 0 failed, 7 removed

    The cache directories and the softwareCache database table are empty afterwards. The General tab also does not display any cache state information.

    I reproduced this behaviour multiple times.

    Possible root cause

    After investigating src/Agent/SoftwareCache.php, I noticed that _record() uses the named PDO parameter :now twice in the INSERT statement:
    :sha,:path,:state,:msg,:now,:now

    However, src/Db/PDODB.php explicitly disables prepared statement emulation:
    \PDO::ATTR_EMULATE_PREPARES => false

    I verified this behaviour with two read-only PHP/PDO queries directly on the FOG server:

    SELECT :now, :now — SQLSTATE[HY093]: Invalid parameter number SELECT :now, :cachedAt — OK

    My assumption is that the cache database record is not saved successfully. Consequently, _plan() finds no referenced manifests or installers, and _prune() removes all downloaded files.
    Using a separate parameter such as :cachedAt might resolve the issue.

    Additional findings

    LibreOffice caching currently reports:
    TheDocumentFoundation.LibreOffice: has package dependencies; caching is not supported for it yet

    Regular WinGet software management appears to continue working.

    Thank you again for your work on this feature.

  • 0 Votes
    7 Posts
    87 Views
    Tom ElliottT

    @lperoma Thanks, that is the result we wanted: one software run, after the join, with every row stored.

    The failure test. Yes, that is the right test. Make the package exit -1 (or throw). The Software Status row should then show failed with return code -1. Once you see that, you can drop the name check.

    5 minutes against 6 seconds. Nothing in the join code changed between your two server builds. The difference I see is the agent: in the first run it updated itself from 0.1.35 to 0.1.36 during the wait, and the join started about 30 seconds after the new agent came up. In the second run there was no update. So the short wait is the normal case.

    “a provider failed; will retry next poll”. That line is the software wait itself, not a failure. The wording is wrong, and the next agent release logs waiting; will run on a later poll instead. Nothing to worry about.

    Chocolatey without internet. You can host the bootstrap yourself. Set “Chocolatey Install Script” to a copy of install.ps1 on your own server, and “Chocolatey Package Source” to a chocolatey .nupkg you host. Or put Chocolatey in the image. Details: https://docs.fogproject.org/en/latest/management/web/software/

  • 0 Votes
    7 Posts
    52 Views
    Tom ElliottT

    @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

  • FOG 1.6.1 – Memtest86+ 8.10 incorrectly classified as Linux kernel

    Solved Bug Reports
    2
    0 Votes
    2 Posts
    46 Views
    Tom ElliottT

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

  • 0 Votes
    4 Posts
    150 Views
    Tom ElliottT

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

  • 0 Votes
    2 Posts
    50 Views
    Tom ElliottT

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

  • Feature Request - Email Test Feature

    Feature Request
    3
    0 Votes
    3 Posts
    2k Views
    rogalskijR

    @Tom-Elliott Thank you for implementing this into 1.6.1, once we are back on campus I’ll get this updated and tested.

    Small meaningful additions like this, and the thoughtful nature of this project as a whole are a relief in an otherwise indifferent technological industry.

  • Dev-branch version string mismatch: 1.6.0.402 vs 1.6.1.402

    Solved Bug Reports
    3
    0 Votes
    3 Posts
    81 Views
    F

    @Tom-Elliott Awesome. All set. Thanks

  • FOG 1.6.1 Available

    Announcements
    1
    0 Votes
    1 Posts
    126 Views
    No one has replied
  • Imaging Log for unregistered hosts

    Feature Request
    4
    0 Votes
    4 Posts
    2k Views
    Tom ElliottT

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

  • Avoid running tasks when in audit mode

    Feature Request
    7
    0 Votes
    7 Posts
    4k Views
    Tom ElliottT

    @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

  • 1 Votes
    2 Posts
    1k Views
    Tom ElliottT

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

    Upgrade to 1.6.0. Make sure each laptop has an inventory record. A full registration or an inventory task captures the SMBIOS values. 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. 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.

  • Certificate manament helper not working

    Solved FOG Problems
    3
    0 Votes
    3 Posts
    128 Views
    A

    @Tom-Elliott Perfect, thanks again!

  • Services failing to start

    Solved FOG Problems
    5
    0 Votes
    5 Posts
    158 Views
    A

    @Tom-Elliott Thank you!

  • AD join problems

    Solved FOG Problems
    8
    0 Votes
    8 Posts
    251 Views
    A

    @Tom-Elliott I ran that and as soon as the agent checked in it joined the domain.

    So I guess I’m waiting for the next release.

    Thanks for the help 🙂

  • 0 Votes
    2 Posts
    70 Views
    Tom ElliottT

    @MrJohnson Thanks for the detailed report. We have no known issue with the Framework 16 or Ryzen 7040. The OVMF result shows that your server, bzImage and init.xz are good.

    “No output, even with earlyprintk=efi” has two possible causes:

    The kernel never starts. The hang is in the firmware or in the handoff from iPXE. The kernel starts, but nothing reaches the screen. FOS then also fails on the network, so it looks like a hang.

    The fixes for these are different, so please split them first.

    Test 1: does the kernel run? Set the host kernel arguments to:

    panic=10 init=/nonexistent

    If the kernel runs, it cannot find that init, panics, and reboots by itself after about 10 seconds. This works with a black screen. If the laptop reboots, the kernel runs and the problem is the display. If the cursor blinks forever, the kernel hangs before it starts init. Remove the arguments after the test.

    Test 2: no change needed. Look in the UniFi DHCP log for MAC 9c:bf:0d:00:83:97 after the iPXE request. FOS sends its own DHCP request after the kernel boots. A second request means the kernel booted.

    About irqpoll: FOG adds it for every host, and there is no per-host way to remove it now. It can only matter if Test 1 does not reboot. If that happens, tell us, and we will give you a way to boot without it.

    Please post the result of both tests, and we will go from there.

  • iPXE boot doing nothing after update to 1.6.0.158

    Solved FOG Problems
    6
    0 Votes
    6 Posts
    180 Views
    M

    @Tom-Elliott Oh thank you, yes I edited the new file and didn’t notice that typo. Sorry for the confusion.

  • Kea DHCPv6 / IPv6 PXE

    Feature Request
    3
  • Upgrade to 1.6.0.158 fails with mysql 8.4.13

    Unsolved FOG Problems
    7
    0 Votes
    7 Posts
    212 Views
    M

    @Tom-Elliott Thanks for the detailed reply. That does seem overkill for my needs but I’ll bookmark this for later reading.

  • 0 Votes
    5 Posts
    259 Views
    Tom ElliottT

    @DBailey635 Good questions.

    Release: waiting for stable is sensible. The stable channel gets a release on the 11th of each month, and this feature is in the next one, on December 11.

    Check-ins: both OSes share one host and one hostname. The host list shows the most recent check-in from either OS. The host’s edit page lists each OS on its own line, with its agent version, last check-in, and certificate expiry. So you can see when Windows and Linux each last checked in.

    Separate hostnames for the domain join: not today. FOG applies the host’s one name to every OS, and the domain join follows the Windows install. A per-OS suffix (host01-win / host01-lnx) is a reasonable feature request. It needs a second computer account per machine, so it is not a small change.

    Deploy window: the default is 24 hours after FOG completes a deploy to the host. You can change it in FOG Configuration > FOG Settings > General Settings > FOG_AGENT_ENROLL_DEPLOY_WINDOW (in hours). A longer window does work, but for that whole time any machine that presents that host’s identity enrolls with no approval. For an OS that first boots months later, two better routes:

    Approve it when it shows up. The second OS waits in pending agents until you approve it, and it keeps retrying, so a student’s first boot just queues it. Put an agent enrollment token in the Linux image’s agent install (--token). Give the token enough uses and an expiry past the point where the course switches OS. The agent then enrolls on its first boot, whenever that is, without an approval click.

    No need to walk the room after imaging.