Protected snapin unable to be deleted
-
@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.
-
@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
-
@Kiweegie I am still aware of the snapins being an issue as well as images and I have fixed the deletion of them on my side and just working out a couple other bugs.
-
@Kiweegie said:
Pulled down latest git version and the host element is resolved, thanks. Snapin deletion remains an issue though, is that expected?
Hopefully all of the errors you presented are now properly fixed. Thanks.
-
@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 I believe you may happen to just have a bad snapin.
Can you actually remove it yourself from the information? It’s looking for a variable that hit should not ever be able to see.
-
I have not been able to replicate the issue you are describing, but I can assure you now that snapin file (and image file) deletion from a delete object side works properly now.
I’d recommend taking a look at the entries in the DB and see if recreating them will work better.
-
@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
-
What do you mean?
-
@Tom-Elliott Hi Tom
I meant I manually removed the snapin from /opt/fog/snapins folder on the server, was looking for a way to remove reference to same in the DB/Web GUI.
It doesnt’ matter now though I’ve just rebuilt Fog having backed up image and snapins etc I need.
Mark this one as resolved, thanks for your efforts.
regards Kiweegie.