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

Can't update FOG kernels

Scheduled Pinned Locked Moved
FOG Problems
3
8
1.0k
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.
  • M
    mechalas
    last edited by Nov 19, 2021, 1:20 AM

    I am trying to do a manual update of the kernel from the FOG Configuration menu, and when I start a download I get a “Download Started!” message, and after a while it ends with “Error: Download Failed: Failed - filesize”

    Looking through old forum posts suggests one possible cause is permissions and password synchronization, but I am good on all fronts there. Correct file permissions on the ipxe directory, and the fog username and password are all in alignment.

    So I am at a loss. The one thing that may be mucking up the works is that we need a proxy to get to the internet, but it does appear to be using the proxy: it is able to fetch the kernel list, and I see (via tcpdump) the proxy requests to api.github.com and raw.githubusercontent.com, so I presume it is downloading. But, after that, it hangs for a while before erroring out.

    Where should I be looking here? Is there a log file that I am not seeing?

    Can these kernels be fetched manually?

    This is running on Ubuntu 18.04.4 LTS.

    1 Reply Last reply Reply Quote 0
    • M
      mechalas
      last edited by Nov 19, 2021, 1:52 AM

      I did find the list of kernels here:

      https://fogproject.org/kernels/

      But would still like downloads to work via the UI.

      G 1 Reply Last reply Nov 19, 2021, 2:21 AM Reply Quote 0
      • G
        george1421 Moderator @mechalas
        last edited by Nov 19, 2021, 2:21 AM

        @mechalas Do you have the proxy settings configured in the FOG Configuration -> FOG Settings panel. Hit the expand all button then use the browser search function to find the word proxy. Make sure that’s set.

        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!

        M 1 Reply Last reply Nov 20, 2021, 4:27 PM Reply Quote 0
        • M
          mechalas @george1421
          last edited by Nov 20, 2021, 4:27 PM

          @george1421 Yes, proxy settings are correct. I do get the list of FOG kernels to choose from and can see the proxy traffic. I also see the proxy traffic when downloading a kernel. It just never gets installed.

          G 1 Reply Last reply Nov 20, 2021, 4:44 PM Reply Quote 0
          • G
            george1421 Moderator @mechalas
            last edited by Nov 20, 2021, 4:44 PM

            @mechalas There was an issue with FOG 1.4.4 where /var/www/html/fog/service/ipxedidn’t have the proper permissions for apache to write into that directory. Does the apache or php-fpm error logs have any helpful error messages here? Now I don’t know off the top of my head if apache writes directly into this directory or the FOG program uses apache to download the kernel to a temp directory and switches over to the fogproject linux user to move the file into the above directory. But I would start with reviewing the logs to see if they can point us in the right direction.

            Also you have to be careful about assuming the proxies are set correctly because the web browser gets current information. This is because some info comes directly from the fog server and others the browsers reach out to the fog serves on the internet to collect current info. So you could have two different data stream sources into your browser when viewing the FOG management page. This is only a caution, but it sounds like you have a good handle on where the problem isn’t.

            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!

            M 1 Reply Last reply Nov 29, 2021, 10:39 PM Reply Quote 0
            • M
              mechalas @george1421
              last edited by Nov 29, 2021, 10:39 PM

              @george1421 There are no error messages in the logs, helpful or otherwise.

              I verified permissions on the ipxe directory. They are owned by the fog user, and for good measure I have them group-writable by www-data which is what the web server runs under.

              G 1 Reply Last reply Nov 30, 2021, 12:30 AM Reply Quote 0
              • G
                george1421 Moderator @mechalas
                last edited by Nov 30, 2021, 12:30 AM

                @mechalas I don’t have an answer then why the kernel update isn’t working. The process should download the file from the fog site to the /tmp directory then move the file to the proper location. What I don’t know is if its moved by apache or via ftp as the fogproject user.

                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!

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth Nov 30, 2021, 12:59 AM Nov 30, 2021, 6:59 AM

                  @mechalas Please run ls -al /var/www /var/www/html and post output here. Mind the spaces in the command mentioned.

                  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

                  219

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project