I manually set the chromium subcomponent install to fail and tried to replicate the MySQL issue but I did not encounter it.eloyd wrote: ↑Wed Aug 07, 2024 4:26 pm So, funny thing. It looks like maybe the random MySQL password generator actually selected passwords the first time through, and then when trying to do it the second time through with the pref file updated, it tried to generate them again. Except it couldn't, because they were already specified. So the install finished, but Nagios could not connect to MySQL and it basically wasn't running.
Reverted back to pre-install snap and am trying again.
Just curious, but when attempting the reinstall that encountered the MySQL password issues, did you also "re-untar" the tarball (if that makes any sense)? I'm asking because it seems like the generated passwords get stored inside of the xi-sys.cfg file, and only regenerate if they aren't inside.
Code: Select all
if [ -z "$nagiosxipass" ]; then
nagiosxipass="$(tr -dc '[:alnum:]' < /dev/urandom | head -c 20)"
fi
echo "The MySQL nagiosxi password will be $nagiosxipass"
if ! ./xivar nagiosxipass "$nagiosxipass"; then
echo "ERROR: Failed to update xi-sys.cfg with nagiosxi password - exiting." >&2
exit 1
fi
If this isn't what you did, then I guess I have some more investigation to do!