• rocky linux 9.6 quirks & php 8

    Unsolved Bug Reports
    4
    0 Votes
    4 Posts
    169 Views
    Tom ElliottT

    @mrowand The whole point of the checkAuthAndCSRF is to prevent unauthorized access. Based on the message I’m seeing, the 403 forbidden is happening because it’s crossing origin to get the data or the CSRF token isn’t passing correctly:

    Here’s the code that validates:

    // Optional defense-in-depth: Origin/Referer check for state-changing requests public static function checkOrigin(array $allowedOrigins): void { $method = strtoupper($_SERVER['REQUEST_METHOD'] ?? 'GET'); if (!in_array($method, ['POST','PUT','PATCH','DELETE'], true)) { return; } $origin = $_SERVER['HTTP_ORIGIN'] ?? null; $referer = $_SERVER['HTTP_REFERER'] ?? null; if ($origin) { foreach ($allowedOrigins as $allowed) { if (stripos($origin, $allowed) === 0) { return; } } http_response_code(403); echo _('Forbidden (disallowed Origin)'); exit; } elseif ($referer) { foreach ($allowedOrigins as $allowed) { if (stripos($referer, $allowed) === 0) { return; } } http_response_code(403); echo _('Forbidden (disallowed Referer)'); exit; } // If neither header is present, you can decide to be strict or lenient. // Often lenient to avoid breaking weird client setups. }

    I suspect your console has more information leading to the specific error that was hit.

    ultimately the code is working as expected and there’s something in your environment causing the issue. Now, to be fair, you said you installed Stable, and Dev-branch has a fix of which I admit I missed.

    If you’re willing/able to install the dev-branch I suspect you’ll see this is working much better.

  • Installing fog on Rocky Linux 9.6

    Solved FOG Problems
    8
    0 Votes
    8 Posts
    733 Views
    M

    @ rodluz

    Okay - So I got FOG working on my rocky 9.6 set up with a few caveats.

    I had to do some work to get tftp and pxe to work correctly.

    created a symlink from /var/lib/tftpboot > /tftpboot

    enabled and started the tftp service manually - systemctl enable tftp & systemctl start tftp

    then created a file in /etc/systemd/system/tftp.socket.d/override.conf (after making a director /tftp.socket.d and giving that file permissions) with the following code:

    [Socket]
    ListenDatagram=69

    [Service]
    ExecStart=
    ExecStart=/usr/sbn/in.tftpf --foreground --secure /tftpboot

    reloading the systemd service daemon - “systemctl daemon-reload” & “systemctl restart tftp.socket”

    The server would then pxeboot at least BIOS at this point.

    The Web UI currently seems to have php conflicts. I installed php-8.0.30-3 and the modules connected to this when installing the server. The web UI has a quirk on the FOG configuration page when you have a button for DefaultMember FOG Version: () it is not printing the version of FOG or the versions of bzimage or init.xz files and in checking using curl http://ip-address-of-server/fog/service/getversion.php - i ony see - 1.5.10.1698

    here is a picture of the error

    error.png

  • Group Export

    Solved FOG Problems
    7
    0 Votes
    7 Posts
    6k Views
    R

    Yes, was able to confirm it is working. Thank you for your help!

  • Export image doesn't seem to work anymore

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

    @boombasstic This is known and will be fixed automatically on the 15th, but please if you need to switch to the dev-branch and install it. Then you should be able to export reports.

  • Dell OptiPlex 3000 Thin Client

    Unsolved Hardware Compatibility
    5
    0 Votes
    5 Posts
    226 Views
    george1421G

    @phant0mbot said in Dell OptiPlex 3000 Thin Client:

    have tried both SAN and GRUB exit options

    boot loader == snponly.efi

    These are in contradiction with each other. SAN boot and Grub are bios boot methods. snponly.efi is a uefi boot loader. Since you are getting into the fog iPXE menu we can assume the hardware IS uefi based since it is booting snp.efi. Try a uefi exit mode of rEFInd (refind) to see if that will boot from the hard drive. The default value can be set globally in the fog configuration->fog settings page. Don’t force a bios attempted boot from a uefi booted computer, that never works.

  • Official Docker Image

    Feature Request
    11
    3 Votes
    11 Posts
    10k Views
    8

    Not sure if anybody has actually had a chance to look at my docker image yet. I’m throwing my hat in the ring for maintaining an official image, but I’d need some help with it.

  • Help Setting up replication across storage groups

    Solved FOG Problems
    5
    0 Votes
    5 Posts
    719 Views
    C

    @Tom-Elliott I figured it out.

    I was getting confused by the similar language between the installation process and storage group setup.

    A normal installation is just a fog storage node that has a web server and UI on it. A FOG network requires atleast one to work. However a Storage node can be set as the master of a storage group no matter the installation type.

    My problem was that because the storage node in the “Bris” storage group did not have a master node setup, the default group could not replicate any images or snapins over. All storage groups must have a master for it to work effectively.

    @Tom-Elliott feel free to clarify any of the above rant.

  • 0 Votes
    3 Posts
    299 Views
    F

    Thank you for the information. I used a bare metal machine. I started with a VM but then just used a old pc. I tried it with Fedora then Ubuntu but did not have any luck. I did not get any errors when installing with the install script.

    I will take a look at the information you gave me and see if I can get anything working.

  • New Dell Laptop - LINUX-EFI-INITRD-MEDIA-GUID

    FOG Problems
    6
    0 Votes
    6 Posts
    8k Views
    R

    @collegestjoseph Can you try out this testing kernel and let us know if it works? https://github.com/rluzuriaga/fos/releases/tag/EXP_20250927

  • How do i add more storage space to my Fog Storage repository

    Unsolved Linux Problems
    2
    0 Votes
    2 Posts
    437 Views
    george1421G

    @Jchinn412 The answer is it depends on how you have your disk structure setup

    Post the results of these two commands.

    lsblk
    df -h

    It maybe easy or harder (but not impossible) depending on how you have the disk created.

  • Stuck at resizing after successful capture.

    Unsolved FOG Problems
    5
    0 Votes
    5 Posts
    3k Views
    Tom ElliottT

    @Fog_Newb Yep, it’s as I suspected:

    The Line:

    Subsystem sftp /usr/lib/openssh/sftp-server

    should be changed to:

    Subsystem sftp internal-sftp

    Then restart ssh services: systemctl restart sshd

    Then your Storage Node testing should succeed!

  • Using if/then during PXE boot for proper boot loader

    General
    7
    0 Votes
    7 Posts
    3k Views
    A

    @george1421 I see now and you’re right as my clients are all legacy boot/BIOS boot non UEFI and would not benefit from the client-arch examination.

    I’ve already declarations set for each host in my dhcpd.conf file in terms if MAC to IP and so adding another field of filename “some boot loader file” won’t be impossible.

    Thanks you for this exercise as I’ve learned some very important things here.

  • Unofficial Docker Image *BETA*

    Feature Request
    2
    1 Votes
    2 Posts
    605 Views
    8

    Because I’m not affiliated with FOG in any official capacity and I’ve never actually contributed to it in any way before, I completely avoided making any actual changes to the source. I have noticed that there could be a couple of things that could make the docker implementation a little easier though, specifically around the FOG services themselves. I’m not entirely sure they are completely container friendly, but I really need more hands on this to test it out thoroughly.

    Also, I used Debian 13 as the base image for this and it ends up being pretty large (2.5GB). It might be possible to shrink this with alpine-linux but I didn’t want to break a bunch of stuff and then have to spend more time chasing those bugs. Anybody that wants to work that angle, please feel free.

  • Create a Docker Container

    Feature Request
    2
    0 Votes
    2 Posts
    2k Views
  • Dockerize FOG

    General Problems
    2
    0 Votes
    2 Posts
    1k Views
    8

    @tchavei2

    check out my image! Let me know if it works for you

    https://forums.fogproject.org/topic/18000/unofficial-docker-image-beta

  • Docker image and external Mysql database extension

    Feature Request
    4
    0 Votes
    4 Posts
    5k Views
    8

    @JJ-Fullmer @ramone

    I created an image, check my post here

    https://forums.fogproject.org/topic/18000/unofficial-docker-image-beta

    I do believe it’ll be able to utilize an existing DB, but I haven’t tested it yet.

  • Multicasting Stuck on Partclone Screen

    Solved FOG Problems
    4
    0 Votes
    4 Posts
    2k Views
    C

    My RP address was not pointing to my FOG server 🤦

    Once this was adjusted, multicast is functional. Definitely a good reminder to start small.

  • Snapin Pack Arguments don't work

    Solved Windows Problems
    3
    0 Votes
    3 Posts
    644 Views
    J

    Hi

    In fact, I really want to use those third party package because they do things very well
    My snapin configuration are not tied to a specific version of a package, it’s the upstream repo who take care of that

    But I have found how to install my install.bat file

    Here is the solution

    Snapin Name: 7zip Snapin Description: Installation de 7zip Snapin Type: Snapin Pack Template Snapin Pack Template : PowerShell x64 script Snapin Pack File: "%SYSTEMROOT%\sysnative\windowspowershell\v1.0\powershell.exe" # autofilled Snapin Pack Arguments: -ExecutionPolicy Bypass Set-Location "$env:ProgramFiles\FOG\tmp\7zip"; & ".\install.bat" Snapin File (exists): 7-Zip_25.01-1_x64.zip Snapin Enabled : x Snapin Arguments Hidden: Snapin Timeout (seconds): 0 Replicate?: x Reboot after install: Shutdown after install: Snapin Command read-only: "%SYSTEMROOT%\sysnative\windowspowershell\v1.0\powershell.exe" -ExecutionPolicy Bypass Set-Location "$env:ProgramFiles\FOG\tmp\7zip"; & ".\install.bat" # autofilled

    It works like a charm

    Maybe it should go in FOG documentation as an example

    The third party repo I mentioned is there https://gricad-gitlab.univ-grenoble-alpes.fr/legi/soft/trokata/winsoft-main/

    LEGI is a French research lab, and the repo is under MIT Licence. I am not the owner, but it’s a great work. I will explain more about that later.

  • Unable to Multicast | Unable to locate udp-sender

    Solved FOG Problems
    3
    0 Votes
    3 Posts
    2k Views
    C

    I found the issue!

    The udpsender path on my system was “/usr/sbin/udp-sender”

    The path that is set within config.class.php is:

    define('UDPSENDERPATH', '/usr/local/sbin/udp-sender');

    I ran the following and restarted the FOGMulticastManager to resolve:

    sudo ln -s /usr/sbin/udp-sender /usr/local/sbin/udp-sender

    And we have logs now! Time to begin multicast testing 🥳

  • Windows on ARM

    Hardware Compatibility
    40
    0 Votes
    40 Posts
    13k Views
    M

    @Tom-Elliott thanks for the quick response. No joy though.

    I’ve been and tried an Ubuntu live iso with a 6.14 kernel from the Ubuntu Concept Snapdragon Elite branch (https://discourse.ubuntu.com/t/faq-ubuntu-25-04-on-snapdragon-x-elite/61016) and even that doesn’t boot - though it gets as far as telling me it can’t create a device tree. So I guess I’m just going to have to be patient while upstream gets this whole SoC working.