Authentication Error
-
Server
- FOG Version: Ver 1.4.0
- OS: Ubuntu 14.04
Client
- Service Version: 0.11.12
- OS: Windows 7 Pro SP1
Description
Occasionally I get the following error… When I do I would go onto the server and reset the encryption and everything would be dandy. In this case, I re-built an ailing machine and upon re-imaging, I get this error. I changed the name of this machine just prior to imaging in FOG. The old machine name does not exist on the server. In fact, I looked for the MAC address of this machine in the hosts list and only found one entry there.
Any ideas of what to do here would be most appreciated. Thanks!
Joe
------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/16/2017 3:42 PM Client-Info Version: 0.11.12 5/16/2017 3:42 PM Client-Info OS: Windows 5/16/2017 3:42 PM Middleware::Authentication Waiting for authentication timeout to pass 5/16/2017 3:47 PM Main Overriding exception handling 5/16/2017 3:47 PM Main Bootstrapping Zazzles 5/16/2017 3:47 PM Controller Initialize 5/16/2017 3:47 PM Controller Start 5/16/2017 3:47 PM Service Starting service 5/16/2017 3:48 PM Bus Became bus server 5/16/2017 3:48 PM Bus Emmiting message on channel: Status 5/16/2017 3:48 PM Service Invoking early JIT compilation on needed binaries ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/16/2017 3:48 PM Client-Info Version: 0.11.12 5/16/2017 3:48 PM Client-Info OS: Windows 5/16/2017 3:48 PM Middleware::Authentication Waiting for authentication timeout to pass 5/16/2017 3:48 PM Middleware::Communication Download: http://172.16.1.17/fog/management/other/ssl/srvpublic.crt 5/16/2017 3:48 PM Data::RSA FOG Server CA cert found 5/16/2017 3:48 PM Middleware::Authentication Cert OK 5/16/2017 3:48 PM Middleware::Authentication ERROR: Could not get security token 5/16/2017 3:48 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 5/16/2017 3:48 PM Middleware::Communication POST URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&authorize&newService 5/16/2017 3:48 PM Middleware::Response Error multiple hosts returned for list of mac addresses ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/16/2017 3:48 PM Client-Info Version: 0.11.12 5/16/2017 3:48 PM Client-Info OS: Windows 5/16/2017 3:48 PM Middleware::Authentication Waiting for authentication timeout to pass 5/16/2017 3:50 PM Middleware::Communication Download: http://172.16.1.17/fog/management/other/ssl/srvpublic.crt 5/16/2017 3:50 PM Data::RSA FOG Server CA cert found 5/16/2017 3:50 PM Middleware::Authentication Cert OK 5/16/2017 3:50 PM Middleware::Authentication ERROR: Could not get security token 5/16/2017 3:50 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 5/16/2017 3:50 PM Middleware::Communication POST URL: http://172.16.1.17/fog/management/index.php?sub=requestClientInfo&authorize&newService 5/16/2017 3:50 PM Middleware::Response Invalid security token ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 5/16/2017 3:50 PM Client-Info Version: 0.11.12 5/16/2017 3:50 PM Client-Info OS: Windows 5/16/2017 3:50 PM Middleware::Authentication Waiting for authentication timeout to pass
-
I forgot to mention, I cannot reset encryption on this host…
-
@Joe-Gill Going off of this thread, I think your DB is dirty.
Please try the database maintenance commands here. Please report back with the outcome. -
@Joe-Gill said in Authentication Error:
5/16/2017 3:48 PM Middleware::Response Error multiple hosts returned for list of mac addresses
The quoted text is the problem, which means it doesn’t know which host to associate with.
I don’t know that the DB is necessarily “dirty” persay, but most likely one of the mac’s being passed is associated to more than one host. (This is bad and technically dirty I suppose, but can happen for more reasons than “corrupt” database though much less likely now than in the past.)
-
@Tom-Elliott I guess we need a maintenance command to delete MACs that are associated to more than one host. Dirty isn’t the same as corrupt - corrupt is a question of integrity being compromised. Dirty is just things not being right. Like a typo in a text file is dirty, and half the text file just going missing one day is corrupt.
-
Well I may have bigger issues than this… mysql will not run… not even as root.
root@fogserver:~# mysql -D fog ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
-
Nevermind… I see that mysql can be a problem with Ubuntu… I will follow the steps in the Wiki and report back.
-
@Joe-Gill It doesn’t mention that if you have a password set, you should use the password option. I figure that’s something the admin should just know… but it should be in the wiki.
-
Well, I followed the steps in the Wiki to resolve the mysql issue with zero luck. I also tried to re-install mysql and did not succeed.
I verified that the Username and Password were correct from the /var/www/fog/lib/fog/Config.class.php and /opt/fog/.fogsettings files… and re-ran sudo dpkg-reconfigure mysql-server-5.5… I even tried re-running this command with the password found in the Config.class.php file. The command ran but I was still getting the same error.
Any ideas?
root@fogserver:~# sudo apt-get install mysql-server-5.5 Reading package lists... Done Building dependency tree Reading state information... Done mysql-server-5.5 is already the newest version. mysql-server-5.5 set to manually installed. The following packages were automatically installed and are no longer required: libonig2 libqdbm14 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. root@fogserver:~# mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) root@fogserver:~#
-
You need to find the mac’s that system is sending, and figure out which one is already associated to another host.
-
I can do that. But do I need to find them within the SQL database and if so, what do I do since I can’t seem to access the database?
-
I got it figured out. Yes there were multiple machines with the same Mac addresses. I removed one and that resolved the issue. Thanks for making me look harder!
Now… As for the mysql problem. Do you have any ideas on how to resolve that?
-
sudo -i
mysql -u root -D fog -
@Wayne-Workman
I tried that… I’m still getting this.ERROR 1045 (28000): Access denied for user 'root@localhost' (using password: NO)
-
@Joe-Gill Does your mysql root user have a password?
-
@Joe-Gill look in the .fogsettings file and see if there is a password set for the mysql one.