• AD join problems

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    26 Views
    Tom ElliottT

    @AdamC Hi Adam,

    directory_observation_unknown means 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 fog database, 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.

  • Upgrade to 1.6.0.158 fails with mysql 8.4.13

    Unsolved FOG Problems
    6
    0 Votes
    6 Posts
    33 Views
    Tom ElliottT

    @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. certbot and acme.sh are 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-setup

    Thanks for pointing out that the other page used ACME without explaining it. That page now has a definition at the top.

  • "Join" column empty after reimage + rejoin

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    26 Views
    Tom ElliottT

    @lperoma Thanks, your analysis is correct. A join through the rejoin protocol records its result in hdRejoinState, and the Join column read only hdJoinAt. 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.

  • 0 Votes
    2 Posts
    21 Views
    Tom ElliottT

    @sgennadi Thanks for the report. The installer read lsb_release for 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.

  • 0 Votes
    5 Posts
    98 Views
    Tom ElliottT

    @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 cancelSnapins in 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:

    https://docs.fogproject.org/en/latest/management/web/tasks/#queued-snapins-deploy-and-capture https://docs.fogproject.org/en/latest/kb/troubleshooting/snapin-queued-capture-refused/
  • FOG 1.6 – Dependencies between Software Management and Snapins?

    Unsolved FOG Problems
    6
    0 Votes
    6 Posts
    175 Views
    Tom ElliottT

    @lperoma Run before software is ready to test.

    Agent: FOG Agent v0.1.27 is released. It runs snapins marked Run before software first, then the software set, then the other snapins. Server: the Run before software checkbox is going into dev-branch now. You find it on the snapin’s General tab, under Snapin Arguments Hidden. It reaches stable with the December 11 release.

    For your VM test before then:

    Put the test server on dev-branch. Get the VM on v0.1.27. Set its Agent Update Ring to 0, or set its Desired Agent Version to 0.1.27. On the activation snapin, turn on Run before software, and queue it with the Avast package assigned.

    What you should see in the agent log on that check-in:

    the activation snapin’s result first; then the software lines, Avast included; then any other snapins.

    If the activation snapin comes back as a retry, the agent holds the software until the next check-in, so Avast does not install ahead of it.

    Two things to know:

    An agent older than v0.1.27 ignores the flag and still runs the snapin after the software. So check the agent version before you judge the result. If you import snapins from a CSV with no header row, the new column shifts the columns after Snapin Arguments Hidden. An export from the UI has a header row and is not affected.
  • Question regarding the new Fog Agent (FOG 1.6.x) prior to syspreppping

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    140 Views
    Tom ElliottT

    @JYost With agent 0.1.23 or later, you do not need to stop or disable it before Sysprep, and you do not need the SetupComplete.cmd line. The agent waits until Windows setup has finished before it enrolls, checks in, or reboots. It starts on its own after OOBE completes.

    On an older agent, update it on the reference machine first. Or use the same steps as before with the new service name: sc config fog-agent start= disabled before Sysprep, then sc config fog-agent start= delayed-auto and sc start fog-agent in SetupComplete.cmd.

    You also do not need to clear the agent’s key before capture. Each deployed machine has different firmware IDs, so the agent drops the captured key and enrolls as itself. A deploy from your server approves it automatically.

    No firewall rule is needed. The agent opens no listening port. It only connects out to the FOG server over HTTPS.

    Details: https://docs.fogproject.org/installation/client/install-fog-agent#capturing-an-image-with-the-agent-installed

  • IPXE boot no longer works after upgrade to 1.6. Error code 0216eb

    Unsolved FOG Problems
    12
    0 Votes
    12 Posts
    537 Views
    T

    @Tom-Elliott

    Hopefully I’ll have the answer to that question within the next two weeks!

  • 0 Votes
    2 Posts
    244 Views
    Tom ElliottT

    @AUTH-IT-Center I do believe snponly would be the recommended, rather than iPXE’s driver.

    The developers at iPXE wrote the driver on their own (of course using documentation and stuff, but for all intents/purposes it is still a handrolled driver) so anything is possible.

    We shipped the native iPXE 2.0.0 mainly because of the feature it allows with actual Secureboot capabilities and instead of embedding everyfile with a custom script, a more dynamic approach for when iPXE releases new version we can upgrade more easily.

    For what it’s worth, I would almost want more people to default to snponly.efi (or secureboot/snponly-shimx64.efi if using/wanting secureboot after enrolling your machines of course) because this is supposed to be using the generic driver for EFI boot protocols on the NIC rather then attempting to discover the NIC using a driver loaded.

  • Secureboot preventing booting into windows after imaging

    Unsolved Windows Problems
    3
    0 Votes
    3 Posts
    439 Views
    Tom ElliottT

    Glad you have a workaround. I think the cause is the Windows boot manager certificate change, not the image.

    Your golden Optiplex installed Windows with Secure Boot on. Windows servicing then added the “Windows UEFI CA 2023” certificate to that machine’s db, and switched the boot files to a boot manager signed with it. The other Optiplex 3000s only trust the 2011 Microsoft certificates, so they reject that boot manager. bcdboot works because it copies the older 2011-signed boot manager.

    Can you confirm with two checks, in admin PowerShell, on the golden machine and on one target?

    [Text.Encoding]::ASCII.GetString((Get-SecureBootUEFI db).bytes) -match 'Windows UEFI CA 2023' mountvol S: /s (Get-AuthenticodeSignature S:\EFI\Microsoft\Boot\bootmgfw.efi).SignerCertificate.Issuer

    If the golden machine says True and the target says False, that is the cause. A newer Dell BIOS may include the 2023 certificate in its default keys. I am also looking at having FOS add it during the Secure Boot enrollment task.

  • FOG 1.5.10 - Problem with AD Join.

    Unsolved FOG Problems
    6
    0 Votes
    6 Posts
    457 Views
    R

    I ran this command on the host, and then restarted the FogService., but my issue might have been slightly different.

    reg add “HKLM\System\CurrentControlSet\Control\Lsa” /v NetJoinLegacyAccountReuse /t REG_DWORD /d 1 /f

    Then it joined to AD with no issues.

    Are those exisiting machines in AD that you re-imaged with FOG, or were they new devices?

    This only happened to us with exisitng machines in AD that we re-imaged and then couldn’t join AD again after.

  • 0 Votes
    5 Posts
    398 Views
    Tom ElliottT

    @Balage80 Thanks for confirming the enrollment fix.

    UEFI boot: I think the cause is two new lines in default.ipxe. They read Secure Boot state from the firmware. iPXE reads it by stepping through every firmware variable, and some firmware never ends that list, so iPXE hangs there.

    Please test this: take the new 979-byte default.ipxe and delete only these two lines. Keep everything else.

    param secureboot ${efi/SecureBoot} param setupmode ${efi/SetupMode}

    Does UEFI boot with that file? Please also post the make, model, and BIOS version of the machine. Note that re-running installfog.sh writes a new default.ipxe, which replaces a manual edit.

    Pending MACs: these are not related to default.ipxe. They come from the legacy FOG Client’s Host Registration module. That module reports every adapter Windows sees, including Wi-Fi, Bluetooth, and virtual Wi-Fi Direct adapters. FOG stores each unknown MAC as pending, up to FOG_QUICKREG_MAX_PENDING_MACS per host (default 4). iPXE cannot see those adapters. You can delete the pending MACs. To stop new ones, add MAC fragments to FOG_QUICKREG_PENDING_MAC_FILTER (comma separated), or turn off Host Registration.

  • dhcpd.conf configuration

    Unsolved FOG Problems
    1
    0 Votes
    1 Posts
    127 Views
    No one has replied
  • no viable macs to use after switching to http

    Unsolved FOG Problems
    3
    0 Votes
    3 Posts
    341 Views
    A

    FYI for anyone else running into this issue - I believe the problem was that I didn’t erase the /tftpboot images when I switched from http to https. I’m not really sure why that would matter, but when I did that, then re-ran the server reinstall and selected https, the images got but back in /tftpboot and my hosts didn’t see the mac error anymore.

  • PXE boot was stuck

    Unsolved FOG Problems
    2
    0 Votes
    2 Posts
    271 Views
    Tom ElliottT

    @Priyankha We need a lot more details.

    FOG Version

    What bootfile is your boot server trying to send?

    Is you server sending the right FOG server for option 66/67?

    What OS are you trying to capture?

    What does the error show or maybe a screen shot? (UEFI Boot looks different from Legacy boot from Mac from arm, etc…)

    What type of machine are you trying to image?

    What have you tried?

  • Group Multicast - Dev-Branch

    Unsolved FOG Problems
    3
    0 Votes
    3 Posts
    350 Views
    Tom ElliottT

    @JJ-Fullmer @edvandro This should be fixed in dev-branch as well, but I agree with JJ here, please upgrade to working-1.6.

  • iPXE build failing

    Unsolved FOG Problems
    7
    0 Votes
    7 Posts
    578 Views
    Tom ElliottT

    @astrugatch Okay thanks and sorry there was that issue.

    Can you pull and try installing again?

    Thank you!

  • 0 Votes
    1 Posts
    181 Views
    No one has replied
  • FOG Project Image Capture on Raspberry Pi 4 (ARM64) via U-Boot

    Unsolved FOG Problems
    60
    0 Votes
    60 Posts
    6k Views
    J

    @Tom-Elliott

    I can’t modify the company’s switches or other hardware since the system is in production. I’m currently rebuilding the FOG server on a VM on my PC and doing everything locally; it’ll be easier to troubleshoot that way. Gemini has wiped out all the previous messages and is giving me nonsense—I can’t seem to recreate the environment up to the capture stage anymore. Could you give me a rundown of everything that needs to be done—downloads, decompressing specific files in binary mode, etc.?

    Thanks.

  • Failed to Update Database and Host

    Unsolved FOG Problems
    22
    0 Votes
    22 Posts
    2k Views
    Tom ElliottT

    @maxcarpone I would ask you, if you’re daring/willing (it’s considered beta but uses the same pipeline with a lot more modern ui, I need people testing, and Fog_newb can likely attest the new ui look and feel though I think they ran into an issue and needed to get functional right away so the snapshotted back)

    Upgrade to working-1.6.

    I have a goal (along with @JJ-Fullmer ) to try to get working-1.6 to be master/stable branch by October.

    1.6 has been “stagnant” since around 2017 and was in relatively stable grounds back then even.

    With AI (as you undoubtly can see I’m using to help drive some things) it’s allowed us to get a lot more coding/refactoring and will hopefully present a much better experience of things on the UI side. Without testing I cannot fix UI bugs though.

    AI can do some cool things, but it doesn’t know what “wrong/right” looks like, and JJ and I are only 2 people.

    There are others on working-1.6 but more feedback is always good.