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

Image files and Snapin files not deleted

Scheduled Pinned Locked Moved Solved
FOG Problems
3
8
977
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.
  • M
    MarkG
    last edited by Oct 11, 2018, 11:59 AM

    I’m running a FOG server version 1.5.0 on CentOS7, having followed all the instructions on the FOG Wiki. Most things are working well except for one issue.

    When I delete an image or a snapin using the Web UI, the image or snapin is removed from the database and no longer appears in the UI, but the files are left behind on disc. There are no errors in any of the fog logs or the apache log. None at all.

    Is it a permission problem?

    /opt/fog/snapins
    -rwxrwxrwx  1 fog fog     11436711 May  3 06:23 Reaper_Install.zip
    drwxrwxrwx. 3 fog apache        54 Jan  8  2018 ssl
    -rwxrwxrwx  1 fog fog    303660395 Oct 11 07:03 TestHarness.zip
    -rwxrwxrwx  1 fog fog         4667 Oct 11 07:00 Test.zip
    
    /
    drwxrwxrwx.  62 fog  root 4096 Oct 10 10:22 images
    

    Everything under /images is owner/group root/root and all have rwxrwxwrx permissions.

    1 Reply Last reply Reply Quote 0
    • M
      MarkG
      last edited by Oct 11, 2018, 1:48 PM

      Should add I’ve been through the FTP Config Wiki here

      https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP

      All of the listed crednetials match (fog user password, settings for storage node and tftp server, /opt/fog/.settings) HOWEVER I cannot log in to the FTP server using that password. Perhaps that’s the problem? How do I set the password on the FTP server?

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator
        last edited by Oct 11, 2018, 2:35 PM

        Did you change any of those passwords or were they already correct?

        Do you use the fog user account at all? (don’t)

        Anything in the apache error logs?

        M 1 Reply Last reply Oct 12, 2018, 8:28 AM Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Oct 11, 2018, 4:05 PM

          @MarkG said in Image files and Snapin files not deleted:

          I cannot log in to the FTP server using that password. Perhaps that’s the problem?

          Should definitely look into that and see if that’s really the case. You sure you got the correct password? Login as user fog on the console possible?

          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

          M 1 Reply Last reply Oct 12, 2018, 8:23 AM Reply Quote 0
          • M
            MarkG @Sebastian Roth
            last edited by Oct 12, 2018, 8:23 AM

            @Sebastian-Roth Yes the password is correct, I can ‘su fog’ from the console using that password. I’m not sure how to debug FTP user issues. The conf file is identical to the one in the wiki. I have a normal user account and I can log in to FTP using that account, but when I try ‘fog’ I get

            ftp xxxmyfogserverxxx
            Connected to xxxmyfogserverxxx.
            220 (vsFTPd 3.0.2)
            200 Always in UTF8 mode.
            User (xxxmyfogserverxxx:(none)): fog
            331 Please specify the password.
            Password:
            530 Login incorrect.
            Login failed.
            ftp> Invalid command.
            ftp>
            
            1 Reply Last reply Reply Quote 0
            • M
              MarkG @Quazz
              last edited by Oct 12, 2018, 8:28 AM

              @Quazz I had to change the TFTP password, the others were correct. I have logged in as the fog user, but only since I found this problem. Nothing in the apache error logs at all.

              1 Reply Last reply Reply Quote 0
              • M
                MarkG
                last edited by Oct 12, 2018, 11:13 AM

                So I set up a new FOG 1.5.4 in a VM, using exactly the same procedure I used to install the live server (1.5.0) and although I still can’t log in to FTP using the fog user on that one, Images do get deleted from the hard drive when I delete them from the Web UI, so I think the FTP thing is not related to the problem. Bug in 1.5.0?

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth Oct 12, 2018, 6:17 AM Oct 12, 2018, 12:16 PM

                  @MarkG said in Image files and Snapin files not deleted:

                  Bug in 1.5.0?

                  Possibly. 1.5.0 is long away and I don’t have all the changes in the back of my mind… 😉

                  So updating to the latest will fix the issue, that’s good!

                  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
                    8/8
                    Last post

                  140

                  Online

                  12.1k

                  Users

                  17.3k

                  Topics

                  155.3k

                  Posts
                  Copyright © 2012-2024 FOG Project