Login incorrect when an image deletion request
- FOG Version: 1.4.4
- OS: Debian 8
- Service Version:
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
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!
master and storage nodes are in ext4
@hregis Any change the partition where
/imagesis 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)!?
Yes I had checked the master and the node and everything was okay though! It is strange because it still remove the images!
@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
fogthat 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
foguser 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.
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
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
fogfor system management. This linux account
fogis 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.shto fix the rest of the bits.