@AdamC Those three services are new in FOG 1.6. Your server has their systemd units, but not the scripts they start. Which FOG version is installed now? Did you upgrade from 1.5, or return to 1.5 after you tried 1.6? Please post the output of ls /opt/fog/service. If you are on 1.6, run the installer again. That copies the missing scripts. If you are on 1.5, run systemctl disable --now FOGAgentReleaseSync FOGPluginRunner FOGRetentionRunner to stop them.
Posts
-
RE: Services failing to startposted in FOG Problems
-
RE: FOS hangs silently after init.xz on Framework Laptop 16 (Ryzen 7040) – works in a UEFI VMposted in FOG Problems
@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=/nonexistentIf 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.
-
RE: AD join problemsposted in FOG Problems
@AdamC Hi Adam,
Thanks, that row shows the cause. The server has gsb-240-w01 stored as a workgroup PC (
hdJoined 0,hdKind workgroup). But the join logic in 1.6.0.158 does not read that row. It reads only the membership block in the current poll, and the agent sends that block only when it changes. So the server never sets the workgroup flag, and every poll stops atdirectory_observation_unknown.This is fixed on dev-branch (fogproject#2142). There, the server takes the flag from the stored row when a poll carries no block. The fix reaches stable with the next stable release.
Until then, this sets the flag for every PC that the server has stored as an unjoined workgroup PC:
UPDATE hostDirectory SET hdRejoinState = JSON_MERGE_PATCH(hdRejoinState, '{"workgroup":true}') WHERE hdJoined = 0 AND hdKind = 'workgroup' AND hdRejoinState IS NOT NULL;Run it in the
fogdatabase, then wait one or two agent polls. The log should change fromblockedto a join. A PC that is already in the domain is not affected, because the join path also requires that the PC reports no domain.To check the domain join settings: the join uses the domain, OU, user, and password on the host’s Active Directory tab (or the defaults in FOG Settings). “Target lookup is unavailable” does not affect a join, as in my last post.
If the PC still shows
blockedafter this, please post the newhdRejoinStateand the agent log lines. -
RE: AD join problemsposted in FOG Problems
@AdamC Hi Adam,
Thanks. The upgrade from 1.6.0.14 fits the cause, but the SQL should have cleared it. So something else is in play on your server.
“Target lookup is unavailable” is a separate issue. FOG does its own LDAP lookup from the server with the settings in FOG Configuration > FOG Settings > FOG Directory:
FOG_DIRECTORY_LDAP_URI,FOG_DIRECTORY_BIND_DN, the bind password,FOG_DIRECTORY_BASE_DN, andFOG_DIRECTORY_CA_CERT. Your ldapsearch test does not use those settings. If they are empty, or the bind fails, every host shows that line. That lookup finds an existing computer account for a rejoin or an OU move. A workgroup PC that joins does not use it, so it does not block the join.For one PC that does not join, please post:
- A screenshot of its Active Directory tab, the same view as your first picture.
- The lines that contain
rejoinordirectoryfromC:\ProgramData\FOG\fog-agent.log, from one poll after the SQL. - The output of this query, with that host’s name:
SELECT h.hostName, d.hdJoined, d.hdKind, d.hdDomain, d.hdRejoinState FROM hosts h JOIN hostDirectory d ON d.hdHostID = h.hostID WHERE h.hostName = 'PCNAME';That shows what the agent reported and what the server stored.
-
RE: Feature Request: Check minimum required PHP version before FOG dev-branch upgradesposted in Feature Request
@sgennadi Thanks, this is a good catch. The installer did not check PHP at all. The only check ran on the first web request, after the upgrade was already done.
This is now fixed on dev-branch: https://github.com/FOGProject/fogproject/pull/2154
After the packages install, and before FOG copies any file or touches the database, the installer now:
- stops if the PHP CLI is below FOG’s minimum (PHP 7.4). It reads that number from the FOG code it is installing, so it cannot drift.
- stops if no PHP-FPM of the same version as the CLI is installed. A third-party repository can give you a CLI of 8.5 and an FPM of 8.4, and the web UI runs on FPM.
- warns about a missing PHP extension that FOG uses.
When it stops, your current install is unchanged.
--skip-php-checklets you continue anyway.You get it with your next dev-branch update. The docs are here: https://docs.fogproject.org/1.6/installation/server/command-line-options
If your login breaks again after an update, please post the output of
php -v,php-fpm -v(orphp-fpm8.x -v), and the last lines of the PHP-FPM error log. That tells us whether it is PHP or a bug in the new code. -
RE: iPXE boot doing nothing after update to 1.6.0.158posted in FOG Problems
@MarkG Thanks, that explains it. A correction to my last post: when FOG serves DHCP, the installer rewrites dhcpd.conf on every install and upgrade. It keeps the old file as dhcpd.conf.<timestamp> next to it.
The new file fails on one line:
option domain_name "local";The option name is domain-name, with a hyphen. Your old file has it right, which is why the old file works. I ran both files through dhcpd’s syntax check. The new file fails with “unknown option dhcp.domain_name”. With that one character fixed, it passes.
To see the reason next time the service will not start, run:
sudo dhcpd -t -cf /etc/dhcp/dhcpd.confYour old file has your own lease times, the domain options, and your AlanPartridge class. The next upgrade replaces those again. To stop FOG from rewriting the file, set this in /opt/fog/.fogsettings:
DHCP_enabled='no'The installer then leaves dhcpd.conf and the DHCP service alone. The cost: after an upgrade, you update the boot file names yourself, as you just did.
-
RE: Kea DHCPv6 / IPv6 PXEposted in Feature Request
@sgennadi Not in 1.6. FOG’s PXE and imaging path is IPv4-only today: the iPXE binaries are built without IPv6, FOS has no DHCPv6 client, and the installer generates only
kea-dhcp4.conf. A dual-stack network works as long as clients can PXE boot over IPv4. Full IPv6 support would need changes to iPXE, FOS, and the installer together. There is no open issue for it yet. If you need it, open one on GitHub with your use case (IPv6-only segments, or dual-stack), and we can scope it there. -
RE: iPXE boot doing nothing after update to 1.6.0.158posted in FOG Problems
@MarkG Your screenshot stops at “Start PXE over IPv4.” The firmware never shows a “Station IP address” line. That means the PXE request gets no usable DHCP answer. TFTP and FOG never come into it. Windows can still get an address because a plain lease is not a boot offer.
FOG’s update does not change your DHCP server. But your server also moved to Ubuntu 26.04 during this upgrade, so check that first.
Which machine serves DHCP on that network: the FOG server, a router, or Windows DHCP?
If it is the FOG server, check that the DHCP service still runs:
sudo systemctl status isc-dhcp-server dnsmasqIf it is another server, check that it still sends option 66 (the FOG server IP) and option 67 (the boot file, for example snponly.efi for UEFI).
To see what really reaches the client, run this on the FOG server while the PC tries to boot, and post the output:
sudo tcpdump -i any -n port 67 or port 68 or port 69 or port 4011 -
RE: FOG 1.6: Can you install agent in each dual- or multiple-boot operating system or just one OS?posted in General
@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.
-
RE: Upgrade to 1.6.0.158 fails with mysql 8.4.13posted in FOG Problems
@MarkG Not the Wile E. Coyote kind, no.
ACME stands for Automatic Certificate Management Environment. It is the protocol a certificate authority uses to issue and renew certificates automatically, with no person in the loop. Let’s Encrypt is the best-known public authority that speaks it.
certbotandacme.share the programs on your server that talk to it.For your setup, you probably do not need it. You only need an external CA if you already run one, for example Active Directory Certificate Services, or if you want browsers to trust FOG with no import at all. A public authority such as Let’s Encrypt also needs a DNS name for the server, like
fog.example.com. It will not issue a certificate for an IP address on your network.If you open the UI by IP, importing FOG’s own CA (from my last reply) is the whole fix.
If you do want a public certificate later, this page walks through it step by step and defines the terms as it goes:
https://docs.fogproject.org/kb/how-tos/lets-encrypt-setupThanks for pointing out that the other page used ACME without explaining it. That page now has a definition at the top.
-
RE: Upgrade to 1.6.0.158 fails with mysql 8.4.13posted in FOG Problems
@MarkG Good to hear the upgrade went through.
The certificate warning is expected on a default install. The FOG installer creates its own certificate authority (CA) and uses it to sign the web server’s certificate. Your browser does not know that CA, so it shows
ERR_CERT_AUTHORITY_INVALID/SEC_ERROR_UNKNOWN_ISSUER. When you click through, the browser still shows “Not secure” because it has not verified who issued the certificate. The connection itself is encrypted.To remove the warning, trust the FOG CA on each machine that opens the web UI. You trust it once, and it covers the web certificate:
- Download the CA from
http://11.211.55.5/fog/management/other/ca.cert.der. - macOS (Chrome and Safari): open the file in Keychain Access, add it to the System keychain, open the certificate, and set “When using this certificate” to “Always Trust”.
- Firefox has its own certificate store: Settings > Privacy & Security > Certificates > View Certificates > Authorities > Import. Tick “Trust this CA to identify websites”.
- Windows: import it into “Trusted Root Certification Authorities”. On a domain, a GPO can push it to every machine.
Restart the browser after the import.
To use a certificate from a CA you already run, or from Let’s Encrypt, see:
https://docs.fogproject.org/kb/integrations/external-ca-lets-encrypt - Download the CA from
-
RE: AD join problemsposted in FOG Problems
@AdamC Hi Adam,
directory_observation_unknownmeans the server does not know this PC is in a workgroup. A workgroup PC gets its own join path. Without that flag, the server waits for a domain controller and a secure channel that a fresh image does not have.The agent reports workgroup membership only when that report changes. If your agents first reported on 1.6.0 or 1.6.0.14, and you then upgraded to 1.6.0.158, the server never received the report in the form it now needs. That matches “the same for all hosts”.
Two questions:
- Did you upgrade this server from 1.6.0 or 1.6.0.14?
- Which fog-agent version do the hosts run?
This should make each agent send its report again on the next poll. It clears a cached hash only, no host data:
DELETE FROM hostFactState WHERE hfsKind = 'directory';Run it in the
fogdatabase, then wait one agent poll. Tell us if the join starts.“Current directory observation does not match this host” is expected for a PC that is not joined yet. “Target lookup is unavailable” is a separate check for existing computer accounts. A workgroup join does not use it.
-
RE: Upgrade to 1.6.0.158 fails with mysql 8.4.13posted in FOG Problems
@MarkG Thanks for the report. This is a known defect in 1.6.0.158, and the fix is already on the dev-branch.
The cause: the schema update builds its column definitions from a MariaDB capture. MariaDB accepts a literal default on a TEXT column. MySQL does not (error 1101). The same upgrade also hits two other MySQL-only errors: 1305 (Ubuntu’s MySQL has no MD5()) and 1292.
PR #2121 fixes all three. On MySQL 8.0.13 and later, FOG now writes the TEXT default as an expression,
DEFAULT (''), which MySQL accepts. MariaDB is unchanged.The fix reaches the stable channel in the next monthly release on December 11. To get it now, re-run the installer from dev-branch in your FOG git checkout:
cd /path/to/fogproject git fetch origin git checkout dev-branch git pull cd bin sudo ./installfog.sh -yThe schema update compares your database to the expected structure and adds only what is missing, so it continues from where the failed run stopped. After the December 11 release,
git checkout stableputs you back on the stable line.If the installer stops again, please post the full error and the output of
mysql --version. -
RE: Feature Request: Add Storage Node IP setting to .fogsettingsposted in Feature Request
@sgennadi One addition: the installer now also moves
FOG_WEB_HOSTthe same way asFOG_TFTP_HOST. It changes the value only when it still holds the old address. A host name you set there stays.This matters because iPXE builds every boot URL after
boot.phpfromFOG_WEB_HOST, and the FOG client uses it as the server address. Before this change, a server on plain HTTP netboot kept the old address there after a move.This change is in review now (#2137). It reaches dev-branch when that merges, and stable with the next stable release.
-
RE: Feature Request: Add Storage Node IP setting to .fogsettingsposted in Feature Request
@sgennadi Thanks for the detailed proposal. This is now in the 1.6 dev-branch.
It works a little differently from the proposal. There is no new
.fogsettingskey. The installer already keeps the server address inipaddress(NET_fog_server_ip), so on an upgrade it now checks that value against the addresses on the server:- If the saved address is still on the saved interface, nothing changes.
- If the interface was renamed (for example
eth0toens18), the installer uses the new name and keeps the address. - If the saved address is on no interface, the installer shows the old and the new address and asks before it uses the new one.
--server-ip <address>picks the address yourself. The address must be on the server, or the installer stops.-yaccepts the new address for an unattended run.
When the address changes, the installer:
- moves this server’s own record in Storage Management to the new address. The ID, storage group, master status, credentials and paths stay, so image and snapin assignments are kept.
- never touches another storage node. If another node already has the new address, it refuses and says so.
- updates
FOG_TFTP_HOSTif it still holds the old address. - issues a new web certificate for the new address. A storage node asks the master for a new one.
- reports whether the record update worked. If it fails, it tells you to set the address under Storage Management.
If FOG is also your DHCP server and the new address is on another subnet, the installer asks whether to update the DHCP settings. With
-yalone it keeps them and warns you. Add--update-dhcp-subnetto update them without the question.It is on dev-branch now. It reaches stable with the next stable release.
-
RE: A reimaged host stays stuck on an old directory join plan ("marker absent; automatic retry refused")posted in FOG Problems
@lperoma The snapin fix is in, in two parts.
https://github.com/FOGProject/fogproject/pull/2127 (merged)
- Every Deploy, on a single host or a group, now cancels the host’s leftover snapins and snapin tasks when it is queued. This includes Multicast. A Deploy with snapins starts a fresh snapin job. It no longer adds to the old one.
- A Capture refuses to start while the host has queued snapins, with this message: “Host has queued snapins. Let them finish, or cancel them, before a capture.”
- The Capture task has a new Cancel queued snapins first option. Tick it, and FOG cancels the snapins and starts the Capture. In the API, send
cancelSnapinsin the task body. - A task that is refused for any reason cancels nothing.
https://github.com/FOGProject/fogproject/pull/2134 (in review)
- A scheduled Capture keeps the Cancel queued snapins first option, so it behaves the same as an instant one. Without this, a scheduled Capture on a host with stuck snapins would never run.
- Captures that are already scheduled get the option turned on during the upgrade, because that is how a Capture behaved when they were scheduled.
Both are on the dev-branch (patches) channel. They will be in the next 1.6 release. The docs are updated too:
-
RE: "Join" column empty after reimage + rejoinposted in FOG Problems
@lperoma Thanks, your analysis is correct. A join through the rejoin protocol records its result in
hdRejoinState, and the Join column read onlyhdJoinAt. So a reimaged host that joined correctly showed a blank cell.The fix is in https://github.com/FOGProject/fogproject/pull/2125. The Join column now also reads the rejoin result and labels it: “ok (rejoin)”, “rejoin failed”, “rejoin awaiting reboot” or “rejoin result unknown”. A plain join still shows “ok” or its error, so you can tell the two paths apart. Whichever result is newer is the one shown.
It is merged to dev-branch now, and it reaches stable with the next stable merge.
-
RE: A reimaged host stays stuck on an old directory join plan ("marker absent; automatic retry refused")posted in FOG Problems
@lperoma Thanks for testing it, and for the clear write-up.
The timing you saw is on purpose. The old plan is dropped at the first boot of the new install, not when the Deploy is queued. If that Deploy is cancelled or fails, the old disk is still there, and its pending join may still be real. Only the boot proves the disk was replaced.
On the checkbox idea, I checked what a Deploy does today with leftover snapins:
- A Deploy on a single host already cancels a queued snapin task, together with its snapins.
- Snapins whose task row has already ended are not touched. A common example is the snapins from an earlier Deploy that the client never ran. They stay queued and run on the new install.
- A Deploy on a group does not cancel a queued snapin task at all. The host ends up with both tasks, and the old snapins run after the reimage.
I’d rather fix those cases than add a checkbox. A Deploy erases the disk, so a snapin queued for the old install can never be right, and a checkbox only helps when someone remembers to tick it. The plan is for every Deploy, single host or group, to cancel the host’s leftover snapins and snapin tasks when it is queued. A Capture is different, because you are building a base image. While snapins are still queued, a Capture will refuse to start, since the image would be missing software you asked for. The Capture task gets a “Cancel queued snapins first” checkbox for the case where you want them gone. I’ll post the PR here when it’s up.
-
RE: Subject: FOG dev-branch - lsb_release: command not found on Oracle Linux 10.3posted in Bug Reports
@sgennadi Thanks for the report. The installer read
lsb_releasefor a value that nothing used. That step is now removed on dev-branch (https://github.com/FOGProject/fogproject/pull/2124). Update to the latest dev-branch and the message is gone. You do not need EPEL or lsb_release for FOG. -
RE: FOG 1.6: Can you install agent in each dual- or multiple-boot operating system or just one OS?posted in General
@DBailey635 This is now available on the Patches update channel (1.6.0.226 or later). No new agent version is needed; any current agent works.
To use it:
- Install the agent in each OS as usual.
- The second OS appears under pending agents as “New OS on a host that already has an agent”. Approve it. If FOG deployed the image within the deploy window, both OSes enroll on their own.
- For an OS-specific snapin, set “Run on” in the snapin’s settings. A Windows snapin then waits until Windows boots.
- If the host is set to join a domain, the Windows install does the join. The Linux side is left alone, so the two do not fight over one computer account. The product key also goes only to Windows.
One limit: two installs of the same OS on one disk share one agent key.
If you try it, let me know how it goes.