@Tom-Elliott I have already manually removed the snapin from the file system I just need a way to bin off the reference to it in the web GUI
regards Kiweegie
@Tom-Elliott I have already manually removed the snapin from the file system I just need a way to bin off the reference to it in the web GUI
regards Kiweegie
@Tom-Elliott Hi Tom, really appreciate the effort you’v put in to resolve this. I can confirm that the Host Export button now works as expected. Everything bar one is now functional as far as I can tell.
Edit of the snapin i wish to remove/mark as unprotected shows blank page. Log file element below will hopefully help you pinpoint issue.
[Fri Nov 13 15:50:17 2015] [error] [client 10.166.137.20] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: <storage_server_IP>, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://10.166.141.31/fog/management/index.php?node=snapin&sub=list
Line it refers to reads as
throw new Exception(sprintf('%s: Failed to connect. Host: %s, Error: %s', get_class($this), $this->get('host'), $error['message']));
cheers, Kiweegie
@Kiweegie said:
@Tom-Elliott HI Tom
Pulled down latest git version and the host element is resolved, thanks. Snapin deletion remains an issue though, is that expected?
regards Kiweegie.
Additionally the Host Export function is still returning server error. Apache log below.
tail /var/log/httpd/error_log
[Fri Nov 13 13:44:05 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.6.15 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Fri Nov 13 13:46:24 2015] [error] [client 10.166.137.20] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.166.141.32, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog IP address>/fog/management/index.php?node=snapin&sub=list
[Fri Nov 13 13:47:45 2015] [error] [client 10.166.137.20] PHP Fatal error: Call to undefined method AddLocationHost::subObjectIDs() in /var/www/html/fog/lib/plugins/location/hooks/AddLocationHost.hook.php on line 59, referer: http://<fog IP address>/fog/management/index.php?node=host&sub=import
[Fri Nov 13 13:47:56 2015] [error] [client 10.166.137.20] PHP Fatal error: Call to undefined method AddLocationHost::subObjectIDs() in /var/www/html/fog/lib/plugins/location/hooks/AddLocationHost.hook.php on line 59, referer: http://<fog IP address>/fog/management/index.php?node=host&sub=import
[Fri Nov 13 13:50:14 2015] [error] [client 10.166.137.20] PHP Fatal error: Call to undefined method AddLocationHost::subObjectIDs() in /var/www/html/fog/lib/plugins/location/hooks/AddLocationHost.hook.php on line 59, referer: http://<fog IP address>/fog/management/?node=host
[Fri Nov 13 13:50:30 2015] [error] [client 10.166.137.20] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.166.141.32, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog IP address>/fog/management/index.php?node=snapin&sub=list
@Tom-Elliott HI Tom
Pulled down latest git version and the host element is resolved, thanks. Snapin deletion remains an issue though, is that expected?
regards Kiweegie.
@Tom-Elliott Hi Tom just wanted to add some other issues found since upgrading to latest release (4324).
Clicking the Create New Host button results in a page which resolves to http://FQDN_of_FOGServer/fog/management/index.php?node=host&sub=add and just states
“Add new host definition”
List hosts and edit existing hosts works as expected. Create new User and Create new Group also working so looks like its limited to the Hosts entry.
Similarly if I try and export Hosts list to csv using Export Hosts button I get a Server 500 error in Chrome, a blank page in Firefox. Presume this is linked to the Snapins issue?
Happy to test other things, provide logs etc just let me know what you need from me.
regards Kiweegie.
@Tom-Elliott Cheers Tom, appreciate the effort.
@Tom-Elliott HI Tom
accessing that page then tailing /var/log/httpd/error.log shows this
[Tue Nov 10 19:57:44 2015] [error] [client 10.***.***.***] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.***.***.***, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog IP address>/fog/management/index.php?node=snapin&sub=list
[Tue Nov 10 20:01:44 2015] [error] [client 10.***.***.***] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.***.***.***, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog IP address>/fog/management/index.php?node=snapin&sub=list
[Tue Nov 10 20:03:55 2015] [error] [client 10.***.***.***] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.***.***.***, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog IP address>/fog/management/index.php?node=snapin&sub=list
[Tue Nov 10 21:12:02 2015] [error] [client 10.***.***.***] PHP Fatal error: Uncaught exception 'Exception' with message 'FOGFTP: Failed to connect. Host: 10.***.***.***, Error: Undefined variable: whereArrayAnd' in /var/www/html/fog/lib/fog/FOGFTP.class.php:26\nStack trace:\n#0 /var/www/html/fog/lib/pages/SnapinManagementPage.class.php(224): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->edit()\n#2 /var/www/html/fog/lib/fog/FOGPageManager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/FOGFTP.class.php on line 26, referer: http://<fog FQDN>/fog/management/index.php?node=snapin&sub=list
Can grab more if you need it. Accessing the snapin page with Chrome (I use Firefox as preferred browser) shows this error.
Server error
500
ReloadHide details
The website encountered an error while retrieving http://<fqdn of FOG Server>/fog/management/index.php?node=snapin&sub=edit&id=3. It may be down for maintenance or configured incorrectly.
Not sure if that helps or not.
Regards Kiweegie.
@Tom-Elliott hmmm thats not really improved things
Now on git revision 4324 and all looking hunky dory apart from this one snapin. Now when clicking on the snapin the entire page is blank. Not just the general page and storage group pages being blank (but still showing Snapin Menu on the left and subheadings etc, now I get nothing, nada, rien, zip diddly squat. You get the idea.
URL goes to <fog IP address>/fog/management/index.php?node=snapin&sub=edit&id=3
Its only this one snapin and I don’t really care what happens to it - is there a way to nuke it from orbit?
@Tom-Elliott Likely yes, last updated FOG some months (3-4?) ago - revision number in the Fog icon on web GUI shows as 4582.
git log -l
shows version 3971. Should I upgrade to bypass the issue? Is a specific revision recommended?
Cheers, Kiweegie.
@Tom-Elliott Hi Tom, no that’s the point. I would have expected the general page of the snapin to let me deselect the “protect this snapin” checkbox but the whole page (same for storage groups page) is completely blank.
Does protecting a snapin prevent any editing thereafter?
Regards, Kiweegie
hey folks
running version 4582 based on the fog icon and had set a snapin to be protected and linked to a second storage group.Now when I check that snapin the general tab and storage group tab respectively are blank.
So I cannot remove that definition or edit it.
I can remove the file itself from with the FOG server file system at /opt/fog/snapins.
I think from memory there is a way to manually edit the database to bypass this but search function on the forum seems limited at best at the moment.
regards, Kiweegie.
@Jbob Hi Jbob, yes this was indeed my issue and resolved by Tom Elliot. I had rebuilt my FOG server and so had a different CA key on the client which was imaged from the “old” FOG server before I rebuilt it.
Tom advised issue as:
The crt file that the client is using to send its authentication data is not signed by the server’s ca, or rather what your client thinks is the server’s certificate authority
Fix was to download new crt file from http://your_FOG_server/fog/management/other/ca.cert.der and install that on the affected client.
Hi all
I’m seeing this on FOG version 4582 and client version 0.94.
C:\fog.log on client shows
------------------------------------------------------------------------------
--------------------------------HostnameChanger-------------------------------
------------------------------------------------------------------------------
15/09/2015 16:37 Client-Info Version: 0.9.4
15/09/2015 16:37 HostnameChanger Running...
15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/service/servicemodule-active.php?moduleid=hostnamechanger&mac=FC:AA:14:10:4D:7C||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
15/09/2015 16:37 Middleware::Communication Response: Success
15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/service/hostname.php?moduleid=hostnamechanger&mac=FC:AA:14:10:4D:7C||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
15/09/2015 16:37 Middleware::Communication Response: Invalid host certificate
15/09/2015 16:37 Middleware::Communication URL: http://fogserver.domain.com/fog/management/other/ssl/srvpublic.crt
15/09/2015 16:37 Middleware::Authentication ERROR: Could not get security token
15/09/2015 16:37 Middleware::Authentication ERROR: Could not find file 'C:\Windows\system32\token.dat'.
15/09/2015 16:37 Data::RSA CA cert found
15/09/2015 16:37 Data::RSA ERROR: Certificate validation failed
15/09/2015 16:37 Data::RSA ERROR: Trust chain did not complete to the known authority anchor. Errors: The signature of the certificate cannot be verified. (NotSignatureValid)
15/09/2015 16:37 Middleware::Authentication ERROR: Could not authenticate
15/09/2015 16:37 Middleware::Authentication ERROR: Certificate is not from FOG CA
------------------------------------------------------------------------------
But I cannot see a Reset encryption data button anywhere. Does this exist on my version of FOG? If so could someone give me a pointer on where I can find it?
regards, Kiweegie
Thanks Tom,
I did move it myself. Uploading a new image ended with the same result though. I’m happy to continue manually moving from /images/dev/macaddress to /images/imagename if necessary just wondered if this was down to something I’d done wrong…
regards, Kiweegie.
@Tom-Elliott Thanks Tom. All working now with the sole exception that the uploaded image is still stuck in the /images/dev folder. I can manually move this to /images/imagename but is there something I can do to prevent this happening? I’m not seeing errors anywhere and I’ve corrected the password issue from earlier (cached creds in Chrome).
regards Kiweegie.
@Tom-Elliott sigh… yes you’re quite right Tom. That has indeed solved the “problem”
please mark as resolved, i’m away for a cup of tea and a lie down in a darkened room…
regards Kiweegie
Hi Wayne, web root on main FOG server is /fog - I’ve not altered this so assume that is how it’s set during install. I have another working FOG server at another site and this is also set to /fog.
The storage node on which the image is going to has the same username and password as on every other storage node (which matches the console fog user, whats in /opt/fog/.fogsettings etc as stated above).
It doesn’t appear possible to change this password even if I wanted to - it reverts back to the above. This is where I suspect the issue to be coming from but don’t know how to change it.
On the working FOG server the Management Username and Management Password section under Storage Node are editable and show with a white background. On the problem server these sections show with a yellow background and are not editable. I can edit the password in there but on viewing the password later the original shows.
As workaround I’ve tried setting the same password on the storage node but this may be a red herring as the password on the client after image upload refers to a password which is not in use on any server.
regards Kiweegie
Afternoon all,
I’m banging my head against this one a little. On image upload on a newly created server (Centos 6.7) it gets as far as the final steps i.e. image has been uploaded but is sitting in /images/dev folder with mac address of host and on final reboot it throws error on client:
* FOGFTP: Login failed. Host <IPofFogServer>, Username: fog, Pass
word dWp4+5JSvvN7, Error: ftp_login(): Login incorrect.
sudo passwd fog
I’ve added this same password to the fog user in the web GUI.
I’ve added this same password to FOG Configuration> FOG Settings > TFTP Server > FOG_TFTP_FTP_PASSWORD
And because I’m using trunk and following instructions specifically relating to the passwords and file permissions from here, I’ve ensured the same password is added to both password fields (the one under dnsbootimage= and also in storageftppass=)
Lastly I’ve ensured ownership of /images and /images/dev is set to fog:root and assigned 777 permissions
I can use Filezilla from another machine (Windows) and can authenticate to the fog server with these same credentials
And yet on the client, the error is referring dWp4+5JSvvN7 which is the password which was set before I updated it to the new one…
The Apache log on the fog server shows
[Thu Sep 10 17:53:25 2015] [error] [client <IPofFogServer>] File does not exist: /var/www/html/service
[Thu Sep 10 17:56:23 2015] [error] [client <IPofFogServer>] File does not exist: /var/www/html/status
[Thu Sep 10 17:57:35 2015] [error] [client <IPofFogServer>] File does not exist: /var/www/html/service
[Thu Sep 10 17:58:02 2015] [error] [client <IPofFogServer>] File does not exist: /var/www/html/status
[Thu Sep 10 18:07:17 2015] [error] [client <IPofFogServer>] File does not exist: /var/www/html/status
On the server the path to these files is actually as shown below - so above is omitting the “fog” from the path - is that normal?
/var/www/html/fog/service
/var/www/html/fog/status
The image being uploaded is associated with the host and to both of the 2 storage groups I have set up.
I know this error has been seen before but I’m pretty sure I’ve edited the password in all required places and have permissions set correctly and fact I can FTP to the server with those creds suggests FTP itself is ok.
One other thing which may or may not be relevant. On the storage nodes it now appears to auto-populate the Management Username and Management Password fields, presumably from /opt/fog/.fogsettings.
In past versions of FOG storage nodes should have the fogstorage user and password populated in here? I don’t appear to be able to change this.
Anyone have any helpful suggestions here please?
regards, Kiweegie.
I bit the bullet and reinstalled from scratch, still using Centos but ensuring iptables and selinux were disabled before anything else. Used git rather than svn this time and now the installer has completed and I’ve been able to update schema.
Not sure where the issue was however to avoid the extra noise, please mark this one as resolved.
regards Kiweegie.
Hey mtmuch and welcome from a fellow FOG aficionado and recent sysadmin. Been using FOG off and on since the 0.29 release and particularly in the lastest 1.2.0 and upwards dev releases, FOG rocks… The team behind it are awesome too and very responsive.
Another thing to watch out for with newer FOG versions is depending on how old your environment is to ensure portfast is enabled on your switches - we’re still waiting on one of our larger sites to have this turned on.
I’ve had success with snapins created using .msi files and several with .exe where the installer silent switches are well documented. Others have been a bit hit and miss but the snapin system itself works very well.
You’'ll need to visit each desktop I’d imagine to set them to boot from nic for PXE booting unless they are set that way already. If they are and you have some sort of inventory system (we use Lansweeper) you might be able to upload all the hosts and mac addresses via a csv file rather than having to manually register them.
I’m also a fan of the new plugin system which has been integrated. We have remote sites and the location plugin solves an issue of replicating between main server and remote storage nodes. Also liking the pushbullet plugin for alerts sent to your phone.
There is a bit of work involved in getting it setup in the beginning, but once you have it configured and clients talking, it will save you so much time. Zero-touch is the buzzword you want to mention to your senior team members.
Enjoy!