• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Protected snapin unable to be deleted

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    24
    7.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tom ElliottT
      Tom Elliott @Kiweegie
      last edited by

      @Kiweegie I’m not seeing any issues with creating a new host on my end. Is there any information in your apache error logs? Is it possible you have the location plugin and I messed something up there?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        Found the create new host issue was related to the location plugin.

        I have pushed a fix for this now. Thanks.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        K 1 Reply Last reply Reply Quote 0
        • K
          Kiweegie @Tom Elliott
          last edited by

          @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.

          K Tom ElliottT 3 Replies Last reply Reply Quote 0
          • K
            Kiweegie @Kiweegie
            last edited by

            @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
            
            
            1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @Kiweegie
              last edited by

              @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.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @Kiweegie
                last edited by

                @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.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                K 1 Reply Last reply Reply Quote 0
                • K
                  Kiweegie @Tom Elliott
                  last edited by

                  @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

                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                  • Tom ElliottT
                    Tom Elliott @Kiweegie
                    last edited by

                    @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.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                    K 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

                      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.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 0
                      • K
                        Kiweegie @Tom Elliott
                        last edited by

                        @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

                        1 Reply Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          What do you mean?

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            Kiweegie @Tom Elliott
                            last edited by

                            @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.

                            1 Reply Last reply Reply Quote 0
                            • 1
                            • 2
                            • 2 / 2
                            • First post
                              Last post

                            163

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project