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

    Login incorrect when an image deletion request

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    8
    1.6k
    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.
    • hregisH
      hregis
      last edited by

      Server
      • FOG Version: 1.4.4
      • OS: Debian 8
      Client
      • Service Version:
      • OS:
      Description

      I want to delete an image, I check the box “Delete file data” and I click delete, it asks me the GUI username/password,
      once validated it tells me that the login is incorrect!
      I have this error message in apache logs:

      PHP Warning:  ftp_login(): Login incorrect. in /var/www/fog/lib/fog/fogftp.class.php on line 463, referer: http://myserver.net/fog/management/index.php?node=image&sub=delete&id=3
      
      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        This user ID and password is listed in the storage node configuration.

        We typically see errors in this area when people change the password for the linux user account fog. We have seen people attempt to use the linux user account fog for system management. This linux account fog is an internal account used by the FOG system.

        If you have changed this user account password you will need to resync the system. The current value FOG keeps in the file /opt/fog/.fogsettings. Take this value and reset the password for the linux user fog. Then go into the storage node settings for the fog server and ensure the management password matches the .fogsettings file. Once that is done, rerun the FOG installer installfog.sh to fix the rest of the bits.

        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!

        hregisH 1 Reply Last reply Reply Quote 0
        • hregisH
          hregis @george1421
          last edited by

          @george1421

          Hello

          thank you, it’s ok !
          The image is well deleted on the different nodes, but I still have this error in apache logs !! strange ! :

          PHP Warning:  ftp_rmdir(): Remove directory operation failed. in /var/www/fog/lib/fog/fogftp.class.php on line 785, referer: http://*******.net/fog/management/?node=image&sub=delete&id=2
          PHP Warning:  ftp_delete(): Delete operation failed. in /var/www/fog/lib/fog/fogftp.class.php on line 244, referer: http://*******.net/fog/management/?node=image&sub=delete&id=2
          PHP Warning:  ftp_rmdir(): Remove directory operation failed. in /var/www/fog/lib/fog/fogftp.class.php on line 785, referer: http://*******.net/fog/management/?node=image&sub=delete&id=2
          

          thank you

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @hregis
            last edited by george1421

            @hregis You didn’t mention you had other storage nodes in the group. This error is still consistent with what I said. Each fog server or fog storage node has a built in user account called fog that is created by the fog installer. On your FOG master node (the one that has the mysql database) it needs to know the value of this fog user password on each storage node (including the master node). These values are kept in the storage management section of your fog server. I would focus on the server listed in your error message. Make sure the storage node settings are correct for that server.

            For some background on this error. FOG uses FTP to manipulate image files on remote storage nodes as well as replication to remote storage nodes. If this password isn’t right you will get the error above.

            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!

            hregisH 1 Reply Last reply Reply Quote 0
            • hregisH
              hregis @george1421
              last edited by

              @george1421

              Yes I had checked the master and the node and everything was okay though! It is strange because it still remove the images!

              Thank you

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @hregis Any change the partition where /images is on is ext3 formated? When deleting files from an ext3 partitions things take a while because of some magic defragmentation foo happening. Possibly the errors occour because it takes long (but finishes in the background)!?

                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

                hregisH 1 Reply Last reply Reply Quote 1
                • hregisH
                  hregis @Sebastian Roth
                  last edited by

                  @sebastian-roth

                  hello,
                  master and storage nodes are in ext4

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @hregis said in Login incorrect when an image deletion request:

                    /var/www/fog/lib/fog/fogftp.class.php

                    Don’t know why this ext3 thing is coming to my mind all the time when people have FTP errors on deleting stuff. Never mind. See the code on why you get those errors. It first tries normal deletes before it does a recursive delete on the files. As the directory is not empty it fails at first. So it’s all fine!

                    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

                    135

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.4k

                    Posts
                    Copyright © 2012-2024 FOG Project