Login incorrect when an image deletion request
-
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
-
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 accountfog
for system management. This linux accountfog
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 installerinstallfog.sh
to fix the rest of the bits. -
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
-
@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 thisfog
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.
-
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
-
@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)!? -
-
@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!