• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Tom Elliott
    • Profile
    • Following 27
    • Followers 83
    • Topics 141
    • Posts 19,426
    • Groups 0

    Tom Elliott

    @Tom Elliott

    5.2k
    Reputation
    39.0k
    Profile views
    19.4k
    Posts
    83
    Followers
    27
    Following
    Joined
    Last Online

    Tom Elliott Unfollow Follow

    Best posts made by Tom Elliott

    • Gratitudes

      I know I’ve been out of this for a little bit. I check in here or there, but just been extremely busy.

      I don’t want to stop contributing, I just am taking time for myself after my workly duties.

      I have to give a big gratitude and thanks for everyone here trying to help out whether by code, by helping the rest of the community, or documentation.

      @Sebastian-Roth I know you’re busy but you’ve kept the project rolling even with the minimal availability you have. Thank you.
      @george1421 I’m sure you’re busy, but I still see you posting and helping where possible and amenible. Thank you.
      @Wayne-Workman I know you’re helping where you can as well. (Of course I can’t exactly post everybody because I’ve been busy and honestly not keeping up with the forums as much as I probably should.)

      @everyone Thank you. Thank you for still believing in this project. We’re doing the best with what we have. Please understand in we’re lacking, it’s most likely unintentional. I know I’m just busy.

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • FOG 1.3.5 and Client 0.11.11 Officially Released

      https://news.fogproject.org/fog-1-3-5-and-client-0-11-11-officially-released/

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • FOG 1.5.0 RC 11

      https://news.fogproject.org/fog-1-5-0-rc-11/

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • Ubuntu is FOG's enemy

      TLDR; Rerun the fog installer if you have lost “Database Connectivity” to your fog server, or run the ALTER USER syntax shown below.

      So Ubuntu 16, among others I suppose, enable a “security updates” to be applied automatically as a “default” to things. Why, well it makes it simpler to ensure your Ubuntu systems are in compliance and patched for any potential exploits. This causes unknown and unexpected issues.

      I figured it’d be a safe thing to express that there could be problems (as many of you have already experienced) that when these updates go up (with or without your knowledge) it can break functionality in unexpected and inopportune ways.

      The quickest fix is to simply rerun the fog installer which should correct the problem.

      As a note, it seems this problem is specific only when the mysql account is the 'root' user AND the password is blank.

      The “fix” if you must do it manually is to open a terminal and obtain root:
      Super (Windows Key) + T then sudo -i (in most cases).

      From there, open mysql with mysql -u root

      NOTE: MySQL MUST be run with ROOT.

      Run:

      ALTER USER 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY ''; AND
      ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';

      It’s okay if one of them fails. This is going to fix Most people’s issues.

      I would highly recommend removing the unattended-upgrades as many of these “sudden” issues came as a security patch ubuntu pushed out. By default Ubuntu typically set’s this for you as enabled and it can cause havoc on you as you (the admin) may not have “done” anything.

      To prevent this problem from happening in the future you could run:

      apt-get -y remove unattended-upgrades (AS Root again).

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • FOG Activity - Status

      FOG is still actively being developed. It’s not necessarily readily apparent, but we can assure you things are still being worked on. These updates may not be communicated in a way that everybody just knows, but can easily be seen if one were to look at our repository site.

      Between our own schedules and lives, we can get very busy. We try to keep things updated and help out on the forums even during lull periods. This might mean we aren’t pushing an RC or release as frequently. It may mean we’re working on other things for the project, such as can be seen if looking at our github site.

      Our forums are heavily active, and this should point as an indicator to our “status” as well.

      If anybody would like to see an increase in developers donating their time to making this free software, consider donating either with monetary support or by spending personal time to help with development.

      FOG is an open source project - it’s even in the name. It is driven by people donating their time and resources. The releases of FOG revolve around when developers can spare a few hours throughout the week. Sometimes that will mean releases will be further, sometimes that will mean releases will be faster. That’s just the nature of our project, and many other open source projects.

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • I'm away, but back?

      Hey everybody,

      I know you see me here on occasion from time to time. Life decisions have made it more difficult for me to do things I would normally be doing. Rest assured, I am still around, and while I’m not quite as active as I was in the past, it’s not because I don’t want to be.

      I had to move, and as part of that I have none of my normal development stuff readily available. Part of the move made me not have a laptop, until today.

      I need to setup my dev environment again, so it may take a little bit, but I will be back up.

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • FOG 1.5.10.41 and forward

      https://news.fogproject.org/fog-1-5-10-41-officially-released/

      While this maybe spur of the moment, it should officially release 1.5.10 with all relevant bug/security fixes encapsulated (among a few other features.)

      This has brought a new methodology of releases in that bug/security releases should be done much more regularly.

      dev-branch, historically, was a place where new development occurred (hence its name) but over the last couple of years or so it’s mainly been a bug/security thing, not really a true development approach.

      This is OKAY, in my head. Why:

      Well we have the master branch which is the ‘baseline’ of a verions. We have the dev-branch, which allows us to work on bugs/security issues. We have the working branches for what will eventually become master. Working is our “dev branch” but keeps proper seperation of things in my opinion.

      Basically:
      master -> basis for dev-branch (which merges into stable on a regular cadence - still being worked out)
      working -> basis of forward development

      So we effectively have:
      production
      staging
      development well seperated.

      THis may mean on the regular automated releases, no announcement or news article will be created, and I think that’s okay.

      Hopefully exciting we have a release after 1.25 years 🙂

      Thank you!

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • RE: Release plan for FOG

      That’s correct. The main reason fog is constantly moving forward is because the codebase is improved upon. Major bugs tend to be addressed for the next release. We don’t do an LTS because there’s really two main people working on fog in a consistent manor. Those two are @Joe-Schmitt and myself. Debian and Libreoffice have the team too be able to perform such a feat. Their product is Opensource but they have an employment team which can afford them that luxury. FOG has a team but we make no money and as such are required to work full time jobs. We work on FOG in our free time. I’ve had the ability to even work on it from work because we used the software.

      Maintaining many different versions is difficult. And we don’t have a support team. WYSIWYG and I think we’ve done pretty well on support, even if we don’t have the ability to do dedicated support for our product. 1.5 was a major step toward modernizing the GUI. 1.6 will vastly improve on this. It was only recently we kind of came up with a road map on how best to proceed. Of note, 1.5 will be maintained until 1.6 is released. 1.6 is focused on making he GUI much more modern. 1.7 will be focused mostly toward fixing and refactoring the FOG client. 1.8 will focus on making the FOS system more modular and usable. I don’t know yet for 1.9. 2.0 will bridge the gap for our rewrite based on the work from 1.5 and up. While we do plan to try to do backports where possible, it’s much easier to ask people to update to the latest version than it is to try to maintain many different versions with backports in mind. At least for what FOG does.

      I doubt this will appease anybody, but it’s what I think needs to be said. We are working hard and provide support for our product as best we can. The community makes fogs support system, I think, one of the best around. Add to that and you can almost always have a developer working side by side to help and fix issues as they come up, I don’t think it’s unfair to ask users to update to a specific version. Even if there are bugs, we will always try to correct what we can, when we can. (And normally it’s a pretty quick turn around).

      I’m not perfect and I’ll give you that. We don’t even have a test suite to know if things are working as intended. We have to rely on the community and suggestions are great, just understand our answers won’t always be what people want to hear.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • FOG 1.4.0 Officially Released

      https://news.fogproject.org/fog-1-4-0-officially-released/

      posted in Announcements
      Tom ElliottT
      Tom Elliott
    • FOG 1.4.4 Officially Released

      https://news.fogproject.org/fog-1-4-4-officially-released/

      posted in Announcements
      Tom ElliottT
      Tom Elliott

    Latest posts made by Tom Elliott

    • RE: Network Device Discovery and Pending Host Identification

      @edvandro Thanks, that makes the gap clear. Network → Leases only shows the leases of a DHCP server that FOG runs, so with Windows DHCP doing the addressing it stays empty.

      Here is the plan:

      • FOG gets an API endpoint that accepts a list of leases. A PowerShell script on the Windows DHCP server reads the leases (Get-DhcpServerv4Lease, per scope) and sends them to FOG on a schedule. FOG never connects to the Windows server and stores no Windows credentials. The script authenticates with a FOG API token.
      • The leases show on Network → Leases next to any leases FOG’s own DHCP has, with the source server named. Each lease is matched against FOG hosts by MAC, as today.
      • The same work adds the two things from my first reply: a filter that shows only the leases with no FOG host, and a “Create host” action that opens the host form with the MAC and hostname filled in. Both work for either lease source.

      A related request (#2477) added a Network Discovery task. That task reports which switch and port a registered host is plugged into. It does not find unknown devices, so the lease import is the answer to your case.

      Two questions so I build it for your setup:

      • Do you run one Windows DHCP server, or more than one (for example a failover pair, or one per site)?
      • Do you need IPv6 scopes as well, or only IPv4?
      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Network Device Discovery and Pending Host Identification

      @edvandro Thanks for the detailed write-up. Part of this already exists on dev-branch, so here is where it stands.

      What FOG does today (dev-branch, FOG 1.6):

      • Network → Leases reads the lease file of the DHCP server that FOG runs (dnsmasq, Kea, or ISC dhcpd). Each lease shows its address, MAC, client hostname, and the FOG host that has that MAC. A lease with no FOG host is a device FOG does not know yet.
      • Each lease row has a Reserve button, so you can pin that device to its address.
      • Pending hosts (quick registration from the boot menu) and Pending Agents (fog-agent enrollment) already hold a device until an admin approves it.

      To get these, update the server to dev-branch. They reach stable with the next release.

      What I think fits FOG: small additions to the Leases page. A filter that shows only the leases with no FOG host. A “Create host” action that opens the normal host form with the MAC and hostname filled in. That covers the “find the unknown machines and register them” case with data FOG already has.

      What I do not plan to add: ARP scanning, passive traffic monitoring, SNMP switch tables, and remote discovery agents. ARP sees only the FOG server’s own network segment. Passive monitoring needs a mirror port. SNMP needs per-vendor switch credentials. Together they make a network inventory system, and dedicated tools already do that job well (NetDisco, LibreNMS, Lansweeper). If you run one of those, the FOG API can create the hosts from its export.

      Does the Leases page plus a “Create host” action cover what you need? If your DHCP server is not on the FOG server, tell me which one you run.

      posted in Feature Request
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp The fix is https://github.com/FOGProject/fogproject/pull/2431. With it, a FOG service holds a database connection only while it is working, and lets it go while it sleeps. On my test server, each service went from 2 connections held all the time to none between runs.

      It reaches dev-branch when that pull request merges, and stable with the next release. To get it, update the main server and every storage node, because the storage nodes’ services are the ones filling the main server’s database. Keep the max_connections = 600 setting until all of them are updated.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Silent install of FOG agent fails silently

      @MarkG The .\ in front of the file name is the cause. Your log shows the PowerShell path .\fog-agent-0.1.40-x64.msi, and the line Note: 1: 1324 2: . 3: 1. msiexec rejects the . path part and stops before it opens the package. It exits with code 1619, and with /qn it shows no message. PowerShell tab completion adds that .\. I reproduced it on 0.1.40 on Windows 11.

      Give msiexec the bare file name or the full path, from an administrator prompt:

      msiexec /i fog-agent-0.1.40-x64.msi /qn SERVER=http://195.168.0.1/fog CAFINGERPRINT=<fingerprint> /l*v C:\fog-agent-install.log
      

      The install removes the old FOG Client for you.

      From PowerShell, msiexec always returns at once, before the install ends. To wait for it and see the result, use this form. 0 means success:

      (Start-Process msiexec.exe -Wait -PassThru -ArgumentList '/i', "$PWD\fog-agent-0.1.40-x64.msi", '/qn', 'SERVER=http://195.168.0.1/fog', 'CAFINGERPRINT=<fingerprint>', '/l*v', 'C:\fog-agent-install.log').ExitCode
      

      I am adding a warning about the .\ prefix next to the install command in the web UI, and a troubleshooting entry to the FOG Agent docs.

      posted in Windows Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp Thank you, that was the missing piece, and it is a FOG bug.

      Every FOG server runs 11 FOG services, and that includes every storage node. Each service keeps 2 connections to the main server’s database open all the time, even while it sleeps between runs. That is 22 connections per server. With your main server, 7 master storage nodes and their 14 other storage nodes, that is 22 servers, or about 480 connections. MariaDB allows 151 by default. Once it is full, the web UI and the agents cannot connect, and you get the empty schema page. This is also why restarting MariaDB alone did not help: every node reconnects within seconds. It is also why the node services stopped: they could not get a connection either.

      I am fixing FOG so that a service holds a connection only while it is working. I will post here when the fix is on dev-branch.

      Until then, raise the limit on the main FOG server. This creates a small config file and restarts MariaDB:

      printf '[mysqld]\nmax_connections = 600\n' | sudo tee /etc/mysql/mariadb.conf.d/90-fog-connections.cnf
      sudo systemctl restart mariadb
      sudo mysql -e "SHOW VARIABLES LIKE 'max_connections'"
      

      The last command should show 600. Then, on each storage node where the FOG services stopped, start them again:

      sudo systemctl restart 'FOG*.service'
      
      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp Thanks, that log helps. It also explains why restarting MariaDB did not help. Within 90 seconds of the restart, MariaDB had taken about 1,650 new connections (the connection number went from 52 to 1698). So the slots fill again almost at once. Something keeps sending connections, or keeps connections stuck, as soon as MariaDB is back.

      The installer restarts more than MariaDB: it also restarts Apache, PHP-FPM, and the FOG services. One of those is most likely what brings the server back. Next time the page goes empty, please do this instead of the installer:

      1. Run the commands from my last reply first, and post the output. The two information_schema.processlist queries are the important ones. They show who holds the connections and which queries are stuck.
      2. Restart only the FOG services, then wait two minutes and check the web UI:
      sudo systemctl restart 'FOG*.service'
      
      1. If the page is still empty, restart only the web side, then wait two minutes and check again:
      sudo systemctl restart apache2 'php*-fpm.service'
      
      1. Tell us which step brought it back.

      You also said this was working before. Do you know about when it started? Did anything change around then, such as a FOG update, the new FOG agent being rolled out to more machines, or new storage nodes? This shows the dates of package updates on the server:

      grep -E '^Start-Date|^Commandline' /var/log/apt/history.log | tail -n 40
      

      Last, the addresses in your log (10.220.9.50 through 10.229.9.50, and 10.221.9.52) connect straight to MariaDB. Are those your FOG storage nodes? How many storage nodes do you have, and what FOG version are they on?

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp Thanks, that log helps. It also explains why the restart did not help. Within 90 seconds of the restart, MariaDB had taken about 1,650 new connections (the connection number went from 52 to 1698). So the slots fill again almost at once. Something is still sending a flood of connections, or connections are getting stuck, as soon as MariaDB is back.

      So you do not have to wait for the next failure. Collect the output from my last reply while the page is empty, or within a few minutes after a restart, and post it. The two information_schema.processlist queries are the important ones. They show who holds the connections and which queries are stuck.

      The addresses in that log (10.220.9.50 through 10.229.9.50, and 10.221.9.52) connect straight to MariaDB. Are those your FOG storage nodes? How many storage nodes do you have, and what FOG version are they on?

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp Thank you, that output changes the picture. MariaDB is not stopping. It has run for 21 hours. It is full: every connection slot is in use, so it refuses new ones (“Too many connections”). FOG then cannot read the schema version, and sends every page to the schema updater. The installer only appears to fix it, because it restarts MariaDB, which drops every connection.

      So the question is now what holds all those connections. The next time the page goes empty, run these on the FOG server before you restart anything, and post the output:

      sudo mysql -e "SHOW VARIABLES LIKE 'max_connections'; SHOW GLOBAL STATUS LIKE 'Max_used_connections';"
      sudo mysql -e "SELECT user, SUBSTRING_INDEX(host, ':', 1) AS from_host, command, COUNT(*) AS conns, MAX(time) AS longest_s FROM information_schema.processlist GROUP BY 1, 2, 3 ORDER BY conns DESC;"
      sudo mysql -e "SELECT id, user, command, time, state, LEFT(info, 150) AS query FROM information_schema.processlist WHERE command <> 'Sleep' ORDER BY time DESC LIMIT 20;"
      ps -eo pid,etimes,args --sort=-etimes | grep -E '[p]hp' | head -40
      

      sudo mysql still gets in when the server is full, because MariaDB keeps one spare slot for root.

      To bring the server back without the installer:

      sudo systemctl restart mariadb
      

      About how many hosts run the FOG agent against this server?

      The fix I mentioned in my first reply is now on dev-branch. With it, the schema page shows the database error, here “Too many connections”, instead of an empty page. The agent log says “cannot reach its database” instead of “schema update”. It reaches stable with the next release.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Domain join and re-join issues

      @AdamC No worries, I’m here to help, and some of what my messages are saying (so I can keep on working) are from AI snippets.

      If you see the troubleshooting links and you didn’t know it was there (or it only existed after you proved a problem needed more documentation) my AI agent is actually building KB’s on the fly with the requisite information to help me and the community out.

      Thank you!

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott
    • RE: Fog server refused connection

      @FlareImp The empty “Database Install | Update” page means FOG cannot reach its database. It is not a pending schema update. When the database is down, FOG cannot read the schema version, so it sends every page to the schema updater. Your agent log shows the same thing: the HTTP 503 “schema_update_pending” lines are from that window. The installer only appears to fix it, because it restarts the database service.

      So the question is why MariaDB stops each day. The next time the page goes empty, do not re-run the installer. Run these on the FOG server first and post the output:

      sudo systemctl status mariadb apache2
      sudo journalctl -u mariadb --since yesterday --no-pager | tail -n 80
      sudo dmesg -T | grep -iE 'out of memory|oom'
      df -h
      grep -h mariadb /var/log/apt/history.log /var/log/unattended-upgrades/unattended-upgrades.log
      

      Common causes are the kernel killing MariaDB for lack of memory, a full disk, or an automatic package update that stops the service. To bring the server back without the installer:

      sudo systemctl start mariadb
      

      The “refused the connection” lines in your agent log mean Apache was down at those times as well, so include its status too.

      The empty page itself is a bug: it should have said that the database is unreachable and shown the error. The agent log should also have said so, instead of “schema update”. The fix for both is https://github.com/FOGProject/fogproject/pull/2408. It reaches dev-branch when that merges, and stable with the next release.

      posted in FOG Problems
      Tom ElliottT
      Tom Elliott