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

    Unusual Delete Image Behavior in RC14 (5968+5974)

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    5
    7
    1.9k
    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.
    • sudburrS
      sudburr
      last edited by sudburr

      Server
      • FOG Version: RC14 (5968+5974)
      • OS: CentOS 7.2.1511
      Client
      • Service Version: n/a
      • OS: n/a
      Description

      Upon first attempt to delete an image via the Web GUI, the files within the folder for that image are deleted, but the folder and image definition remain.
      Deleting the image a second time will then successfully delete the folder and the image definition as well.

      [ Standing in between extinction in the cold and explosive radiating growth ]

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

        Confirmed the issue and hopefully have it fully addressed now.

        It was a bit of an issue, but ultimately very simple. The files were deleting at least on one node (where possible) but failing to iterate due to return which was meant to be changed to a continue.

        After finding that out, the issue was the folder for images would still exist (the data would be removed though).

        After some fairly thorough testing (I tested what I could, when and where possible) it appears I’ve finally addressed the problem. Trailing folders get removed as well as the contents of those folders.

        I’m solving this, and the other, for now. Feel free to keep us posted though.

        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
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          Any apache errors?

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • sudburrS
            sudburr
            last edited by

            From /var/log/httpd/error_log:

            PHP Warning:  ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 243, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=140
            PHP Warning:  ftp_rmdir(): Remove directory operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 784, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=140
            PHP Fatal error:  Uncaught Error: Call to a member function close() on null in /var/www/html/fog/lib/fog/image.class.php:194\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogpage.class.php(2774): Image->deleteFile()\n#1 /var/www/html/fog/lib/fog/fogpagemanager.class.php(230): FOGPage->deletePost()\n#2 /var/www/html/fog/management/index.php(45): FOGPageManager->render()\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/image.class.php on line 194, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=140
            PHP Warning:  ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 243, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=140
            

            [ Standing in between extinction in the cold and explosive radiating growth ]

            1 Reply Last reply Reply Quote 0
            • sudburrS
              sudburr
              last edited by

              The problem exists with RC14v3 (5974) also.

              PHP Warning:  ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 243, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=137
              PHP Warning:  ftp_rmdir(): Remove directory operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 784, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=137
              PHP Fatal error:  Uncaught Error: Call to a member function close() on null in /var/www/html/fog/lib/fog/image.class.php:194\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogpage.class.php(2774): Image->deleteFile()\n#1 /var/www/html/fog/lib/fog/fogpagemanager.class.php(232): FOGPage->deletePost()\n#2 /var/www/html/fog/management/index.php(45): FOGPageManager->render()\n#3 {main}\n  thrown in /var/www/html/fog/lib/fog/image.class.php on line 194, referer: http://devfog/fog/management/index.php?node=image&sub=delete&id=137
              

              [ Standing in between extinction in the cold and explosive radiating growth ]

              1 Reply Last reply Reply Quote 0
              • Q
                Quazz Moderator
                last edited by

                I remember this happening in an older release, but haven’t seen it since.

                1 Reply Last reply Reply Quote 0
                • MRCURM
                  MRCUR Testers
                  last edited by

                  Also seeing this in RC14 5974.

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

                    Confirmed the issue and hopefully have it fully addressed now.

                    It was a bit of an issue, but ultimately very simple. The files were deleting at least on one node (where possible) but failing to iterate due to return which was meant to be changed to a continue.

                    After finding that out, the issue was the folder for images would still exist (the data would be removed though).

                    After some fairly thorough testing (I tested what I could, when and where possible) it appears I’ve finally addressed the problem. Trailing folders get removed as well as the contents of those folders.

                    I’m solving this, and the other, for now. Feel free to keep us posted though.

                    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
                    • 1 / 1
                    • First post
                      Last post

                    184

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project