Can't update FOG kernels
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.
@mechalas Please run
ls -al /var/www /var/www/htmland post output here. Mind the spaces in the command mentioned.
@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.
@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.
@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.
@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.
@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.
I did find the list of kernels here:
But would still like downloads to work via the UI.