Categories

  • 13k Topics
    115k Posts
    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/

  • Get the latest news on what's happening.
    208 Topics
    849 Posts
    Tom ElliottT

    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

  • View tutorials or talk about FOG in general.
    2k Topics
    19k Posts
    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.

  • Report bugs, request features, or get the latest progress.
    2k Topics
    21k Posts
    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.

38

Online

12.8k

Users

17.7k

Topics

157.6k

Posts