Failing to update MySQL when finished capturing
-
Hey guys. I finally got a confirmation email after waiting days for it. I’m having a strange issue on a FOG server.
After fiddle-farting around and finally getting my crypto-mining rigs to boot from PXE and register in FOG, I am having issues capturing an image. Upon finishing the capture, FOG attempts to update the database but fails because the credentials are wrong. During installation, I used the default (ie: blank) MySQL password. When it fails to update the database it cites some user account called “fogproject” and I’m not sure where that came from, as the linux account generated by the FOG installer is just called fog, as far as I’m aware. I have a separate 1TB HDD mounted to /images where I intend for FOG to store the images it captures. It is able to inventory and register hosts just fine, but it cannot update the database when it finishes capturing and ends up rebooting the machine and running the capture all over again until it’s canceled.
Now, it just occurred to me that the issue could involve user ownership of the 1TB drive mounted at /images but if that were the case, would it not also have problems inventorying and registering hosts?
I have not had this problem running FOG on my home network on a VM but I have not tried using a separately mounted drive for /images as that particular setup would be difficult for me to test on my own network. Could the ownership of /images actually be the problem or is there something else going on here?
Thanks in advance.
-
@Huecuva Welcome to the forums!
There are a few things we need to know before we can help you.
During installation, I used the default (ie: blank) MySQL password.
This seems to tell us you are using an older version of FOG because we have changed that part a fair bit a year or so back. Please tell us which version of FOG you use and why you don’t use the latest one?
When it fails to update the database it cites some user account called “fogproject” and I’m not sure where that came from, as the linux account generated by the FOG installer is just called fog, as far as I’m aware.
Earlier versions of FOG used the system account called
fog
while newer versions usefogproject
. Have you used those accounts to login and work on your FOG server and possibly changed the password? Please follow the instructions outlined here: https://forums.fogproject.org/topic/11203/resyncing-fog-s-service-account-password -
@Sebastian-Roth I have changed nothing on the FOG server. It’s a pretty fresh install. In fact, I installed it fresh about 4 times yesterday trying to get things to work. The only things I have changed, before even installing FOG, was to edit the fstab file to mount the 1TB drive at /images and to edit the yaml file at /etc/netplan/ so that the machine could even resolve DNS, otherwise I couldn’t even download FOG. The mining rigs still don’t have DNS, but I’m pretty sure that is not a FOG related issue.
As for what version of FOG I am using, I am using 1.5.7 because the OS I am using is Ubuntu 18.04. I had tried using 1.5.9 but it was causing all sorts of failures during boot. I can’t recall exactly what was failing, but I believe it was DHCP related and the OS would only boot into emergency mode. I guess I could try installing Ubuntu 20.04 instead.
-
@Huecuva We have automated installer tests and FOG “master” (currently 1.5.9) seems to install on Ubuntu 18.04 and 20.04 just fine: http://fogtesting.theworkmans.us/
If you can’t tell us what the errors were we are not able to help you.
We don’t really support old versions of FOG anymore cause we can hardly keep up with all the requests. Sure we still try to help people if they have been using an old version for some time but there is no point in setting up a fresh new server with 1.5.7 where we have fixed so many bugs in later versions already.
-
@Sebastian-Roth So it turns out most of my problems were in fact caused simply by old software. I installed Ubuntu 20.04 and FOG 1.5.9 and it solved all the database updating issues.
Now I just have to solve some DNS problems that I’m pretty sure are not FOG related.
Thanks mate.