• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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
2.0k
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.
  • S
    sudburr
    last edited by sudburr Oct 18, 2016, 9:23 AM Oct 18, 2016, 3:05 PM

    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
    • T
      Tom Elliott
      last edited by Oct 22, 2016, 12:45 AM

      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
      • W
        Wayne Workman
        last edited by Oct 18, 2016, 3:06 PM

        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
        • S
          sudburr
          last edited by Oct 18, 2016, 3:09 PM

          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
          • S
            sudburr
            last edited by Oct 18, 2016, 3:24 PM

            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 Oct 18, 2016, 3:43 PM

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

              1 Reply Last reply Reply Quote 0
              • M
                MRCUR Testers
                last edited by Oct 21, 2016, 2:21 PM

                Also seeing this in RC14 5974.

                1 Reply Last reply Reply Quote 0
                • T
                  Tom Elliott
                  last edited by Oct 22, 2016, 12:45 AM

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

                  188

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project