That error is because it does not have internet access, all that does it contact the website here and check the version/number of sites.

See if you can log into mysql from a terminal window as root with whatever password you used to set up the fog server.

IF that password works, update i in /var/www/fog/commons/config.php

If not, then you need to reset your mysql password and your issues will be resolved.

Another thing to check is if the users password got changed, logins are stored in the users table and the password is encrypted with md5.