Fog server refused connection
-
I am having some issue with my hosts checking in and I am unsure what has changed because they were working. Below is a copy of an agents log file. I am also running into daily needing to rerun the installer for fog server because the web UI is only showing “update database scheme” with nothing to click on.
I removed our domain name from the log file.
2026-11-12T05:00:28-05:00 service started 2026-11-12T05:00:28-05:00 directory rejoin: could not ask the server which features it offers; the agent asks again later. Check that the server is reachable 2026-11-12T05:00:29-05:00 facts: sending inventory=false software=0 directory=true printers=0 network=0 2026-11-12T05:00:29-05:00 poll: cannot find the FOG server TV-Fog-Main.domainname.local: the name does not resolve. Check this machine's DNS settings and the server address. 2026-11-12T05:05:29-05:00 directory rejoin: this FOG server does not offer it; the agent works as before 2026-11-12T05:05:29-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T09:36:19-05:00 poll: cannot reach the FOG server at TV-Fog-Main.domainname.local: it did not answer. Check that this machine is on the network and that the server is up. 2026-11-12T09:41:20-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T13:33:47-05:00 poll: the FOG server at TV-Fog-Main.domainname.local refused the connection. The network works; check that the web server is running on it. 2026-11-12T13:38:47-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T14:06:50-05:00 poll: poll: HTTP 503, FOG is applying a database schema update; the agent API resumes when it finishes (status "schema_update_pending") 2026-11-12T14:11:50-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T14:16:51-05:00 poll: poll: HTTP 503, FOG is applying a database schema update; the agent API resumes when it finishes (status "schema_update_pending") 2026-11-12T14:21:51-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T14:26:51-05:00 poll: poll: HTTP 503, FOG is applying a database schema update; the agent API resumes when it finishes (status "schema_update_pending") 2026-11-12T14:31:51-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T14:40:52-05:00 poll: poll: HTTP 503, FOG is applying a database schema update; the agent API resumes when it finishes (status "schema_update_pending") 2026-11-12T14:45:52-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T14:48:53-05:00 poll: poll: HTTP 503, FOG is applying a database schema update; the agent API resumes when it finishes (status "schema_update_pending") 2026-11-12T14:58:53-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T15:10:56-05:00 poll: the FOG server at TV-Fog-Main.domainname.local refused the connection. The network works; check that the web server is running on it. 2026-11-12T15:15:56-05:00 host 235 (TVNE-201-S02), server capabilities: [hostname taskreboot snapin software power autologout directory wake activation update] 2026-11-12T19:00:01-05:00 service stopped 2026-11-13T05:00:28-05:00 service startedFog 1.6.1.0
Ubuntu 26.0.4.1 -
@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.logCommon 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 mariadbThe “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.