• Failed to Update Database and Host

    Unsolved
    17
    0 Votes
    17 Posts
    57 Views
    Tom ElliottT

    @maxcarpone That output was exactly what I needed — thank you for running it, and for the screenshot of the failing deployment, which turned out to be the most useful thing in the thread.

    Your database is fine and your schema is current. schemaVersion 286 is the right number for 1.5.10.2402; 287 only landed this morning. And your first query returning an empty set means you have no stuck tasks at all — nothing in Queued or In Progress. The blank entries you’ve been seeing are all in Complete and Cancelled, and they’re just history: 300 of those rows point at hosts and 459 at images that were deleted at some point over the nine years that table has been filling up. Nothing is wrong with them, they simply have nothing left to show.

    The real bug is the one in your deployment screenshot, and it is not your FTP password. Here is what was happening:

    * Task Complete * Updating Database.....................Failed * Error returned: Failed to update imaging log * Reattempting to update database.......Failed * Error returned: No Active Task found for Host: VM-W11-TEST

    Only that first error is real. FOG looks up the open imaging-log row to close it by asking for the row whose finish time is empty, and a change earlier in the 1.5.10 line moved “empty” from a zero date to a real NULL. The query FOG was building for that could never match a NULL — so on every single deployment, on every install, it failed to find the row it had just created minutes earlier. It then reported “Failed to update imaging log” after it had already marked the task Complete, which is why every retry after that came back “No Active Task found for Host” and the machine sat there rebooting into an error.

    That also explains your very first post: “the host is well imaged but it is not updated in FOG, information about the last image isn’t written in the database.” It wasn’t. The imaging log never closed, the task was already marked Complete, and nothing recorded that the image had landed.

    I’ve reproduced it end to end and fixed it, along with three other ways a task could end up pointing at nothing: https://github.com/FOGProject/fogproject/pull/1391

    Two things still outstanding on your side:

    The two MariaDB instances are worth sorting out on their own. I don’t think they caused the above, but two servers on one box is a real problem waiting to happen and it makes everything harder to diagnose. systemctl list-units 'maria*' 'mysql*' and ss -lntp | grep -E '3306|mysql' will show what’s actually listening, and sudo mariadb -u root fog -e "SELECT COUNT(*) FROM tasks" compared against the count in the web UI will tell you whether FOG and your shell are looking at the same database.

    “Invalid Login” on register-with-immediate-deploy I have not explained yet, and I’d like to. It’s suspicious that a brand new user worked and fog didn’t, because that rules out the typing. Two questions: does the fog user’s password contain any accented or punctuation characters, and can you log into the web UI as fog right now with that same password? If the answer to the second is yes, the problem is in how the password survives the trip from the boot menu, and that’s a different fix from the one above.

  • FOG Project Image Capture on Raspberry Pi 4 (ARM64) via U-Boot

    Unsolved
    5
    0 Votes
    5 Posts
    43 Views
    J

    @Tom-Elliott Thanks for the feedback; I started the tests and got this:

    Bugs 1 & 2 are 100% fixed! The kernel successfully unpacks the initramfs (Trying to unpack rootfs image as initramfs..., Run /init as init process). Broadcom SoC drivers, USB storage (/dev/sda - JMicron), and the internal NIC (bcmgenet -> eth0 Link is Up) are all working great. Where it stops:
    After getting the network link up, FOS fails when trying to mount with the following errors on screen:

    ext3: Unknown parameter ‘nolock’
    ext2: Unknown parameter ‘nolock’
    ext4: Unknown parameter ‘nolock’
    vfat: Unknown parameter ‘nolock’
    msdos: Unknown parameter ‘nolock’
    f2fs: Unknown parameter ‘nolock’

    It looks like FOS is passing the NFS nolock mount option when trying to probe/mount local filesystem types or local partitions. After these errors, the Pi reboots back to the U-Boot prompt.

    Let me know if you need me to test a updated init containing a fix for the mount options!

  • Fog - Supported OS

    Unsolved
    3
    0 Votes
    3 Posts
    55 Views
    J

    Thank you Tom, I got updated to Working-1.6beta.4105 and that issue is fixed. Not sure if it is just this particular install or not.

    Some Issues I am noticing is Host registration is not showing up whether from the fog menu or the client. I can see it is trying but does not appear to be writing to sql.

    36f170d3-0a3b-4de3-b327-4233bc53534b-image.png

    Deployment: Getting invalid mac errors it seems on all devices. The task seems to be populating alright.

    No viable macs to use

  • 1.5.10.2402 - Additional null tasks created but this time manages to start a transfer.

    Unsolved
    1
    0 Votes
    1 Posts
    13 Views
    No one has replied
  • 1.5.10.2328 - Failed to check in. Going back to 2294, all good.

    Solved
    5
    0 Votes
    5 Posts
    129 Views
    F

    @Tom-Elliott Thanks Tom. 1.5.10.2344 seems to be capturing fine. No additional null tasks were created and the PC had no problem checking in and starting the capture.

    I’d swear, not only with this version but the earlier ones that were malfunctioning during check in and creating additional tasks, I had to create the task twice. Like I went through the process of setting up a capture but nothing showed up under tasks then had to do it again.

    I can’t seem to duplicate it though. Setting up a 2nd capture for the laptop, I only had to do it once (and no additional null tasks were created).

    PC finished the capture no problem and laptop checked in and is capturing now. Looks like 2344 did it!

    Thanks again.

  • 0 Votes
    3 Posts
    54 Views
    E

    Resolved. I’m sharing FOG with as many people as I can. Love this project!

  • Regenerate certificate on each installation.

    Unsolved
    2
    0 Votes
    2 Posts
    63 Views
    M

    And I can’t add any hosts—whether via the web interface or by booting over the network—; ultimately, the new host doesn’t appear in the database…

    Failed to query: Error: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `fog`.`moduleStatusByHost`.`msHostID` at row 1 Error Message: Error Code: "22007", Error Message: ["22007",1366,"Incorrect integer value: '' for column `fog`.`moduleStatusByHost`.`msHostID` at row 1"], Debug: SQL: [629] INSERT INTO `moduleStatusByHost` (`msHostID`,`msModuleID`,`msState`) VALUES (:hostID_0,:moduleID_0,:state_0),(:hostID_1,:moduleID_1,:state_1),(:hostID_2,:moduleID_2,:state_2),(:hostID_3,:moduleID_3,:state_3),(:hostID_4,:moduleID_4,:state_4),(:hostID_5,:moduleID_5,:state_5),(:hostID_6,:moduleID_6,:state_6),(:hostID_7,:moduleID_7,:state_7),(:hostID_8,:moduleID_8,:state_8),(:hostID_9,:moduleID_9,:state_9),(:hostID_10,:moduleID_10,:state_10),(:hostID_11,:moduleID_11,:state_11),(:hostID_12,:moduleID_12,:state_12) ON DUPLICATE KEY UPDATE `msHostID`=VALUES(`msHostID`),`msModuleID`=VALUES(`msModuleID`),`msState`=VALUES(`msState`)
  • REFInd-Initializing - hangs

    43
    0 Votes
    43 Posts
    26k Views
    D

    Just fyi, I resolved my issues with this by turning off DMA protection in the bios/uefi.

  • Image copy hangs at start of copy - PXE boot OK

    Unsolved
    5
    0 Votes
    5 Posts
    117 Views
    T

    @Tom-Elliott I did update to version 1.6.2254 and the first multicast that worked was the first one I tried after the upgrade. This second one is now hanging like the one that prompted this thread.

    Where in the logs can I find any clues?

  • From /images/dev to /images issue

    Unsolved
    5
    0 Votes
    5 Posts
    308 Views
    C

    Encountered the same issue, version: 1.5.10

    I can successfully capture the image and then see the size of it in the web panel but then it’s not being moved to /images/ by fog. Requiring me to move them manually which works but I’m kinda concerned.

    FTP works fine even though I am afraid I don’t understand why I need FTP to move some files inside a directory on a singular server.

  • atheros ipxe woes "No configuration method succeeded"

    Unsolved
    3
    0 Votes
    3 Posts
    107 Views
    C

    @Tom-Elliott thanks Tom - using the excellent fog-docker from 88fingerslukee - so will wait to hear his response

  • Upgraded from FOG 1.5.9 to 1.5.10.1903 and having issues

    Unsolved
    28
    0 Votes
    28 Posts
    2k Views
    Tom ElliottT

    @Strahd Have you been able to make progress?

  • PXE boot menu displaying plain text without graphical UI / background in BIOS mode

    Solved
    3
    0 Votes
    3 Posts
    196 Views
    E

    @Tom-Elliott
    The fix worked perfectly! The menu issue is now resolved.

    Thanks for the support!

  • Storage Node says invalid configuration on FOG dashboard

    Solved
    5
    0 Votes
    5 Posts
    144 Views
    F

    @Tom-Elliott Hi! I updated my FOG server to latest beta-branch version: 1.6.0-beta.3197. I also updated my storage node to 1.6.0-beta.3197. This fixed the invalid path issue I was having. Thank you for the help!

    1a0e5491-b776-49fe-9fbf-d2bc40087f78-image.png

  • 0 Votes
    12 Posts
    482 Views
    F

    @Tom-Elliott Tom, looks like everything has been resolved after going from 2144 to 1.5.10.2218! No errors and I was able to capture no problem. Thanks

  • 1.6 Database update issue

    Unsolved
    4
    0 Votes
    4 Posts
    154 Views
    Tom ElliottT

    @toschulz So I suspect the problem is due to a divergence of db schema between dev-branch/stable + working-1.6

    If you can update yoru Mysql directly:

    sudo mariadb -u root fog (if no root password of course - if you have a root password add -p

    UPDATE schemaVersion SET vVersion=0;

    Then refresh your screen, click the install/update, and hopefully the error will go away.

    The way the schema is configured is it will attempt (idempotently) to rerun every single SQL query in the schema chain.

    This should fix the problem you’re seeing.

    I believe there’s a column on the login history piece being requested that may just simply be missing which would cause the issue with datatables.

  • 0 Votes
    2 Posts
    87 Views
    C

    I have figured out the issue. I was looking in the wrong place in BIOS for the secure boot setting which was on. Turning off secure boot fixed the process which runs perfectly now.

  • Full registration issues with Fog 1.5.10.1870

    Unsolved
    3
    0 Votes
    3 Posts
    166 Views
    M

    @Tom-Elliott Hello Tom yes I have installed the compatible Fog client from the Fog server on the reference machine, sys prepped and captured the image and now I am deploying.

  • Machine rename with script and domain join

    Unsolved
    1
    0 Votes
    1 Posts
    88 Views
    No one has replied
  • FOG Client and The remote server returned an error: (500)

    Solved
    3
    0 Votes
    3 Posts
    168 Views
    G

    @Tom-Elliott
    Updated to latest dev-branch and snapins are working now
    Thansk for help.

104

Online

12.7k

Users

17.6k

Topics

156.9k

Posts