• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Fog server refused connection

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    2 Posts 2 Posters 8 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FlareImp
      last edited by

      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 started
      

      Fog 1.6.1.0
      Ubuntu 26.0.4.1

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @FlareImp
        last edited by

        @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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        34

        Online

        12.8k

        Users

        17.7k

        Topics

        157.6k

        Posts
        Copyright © 2012-2026 FOG Project