FTP Delete an image - failing
-
We’ve had this issue at work for a while, I decided to investigate at home. At home, I’m running the latest as of now,
Trunk 8149
I tried to delete an image and it’s data and all files for the image remain.
Here are apache error logs:
10.0.196.78:51004] PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 31 [Thu Jun 16 19:53:01.871829 2016] [:error] [pid 25995] [client 10.0.196.78:51004] PHP Warning: ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 58 [Thu Jun 16 19:53:01.827047 2016] [:error] [pid 25995] [client 10.0.196.78:51004] PHP Warning: ftp_rmdir(): Remove directory operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 172 [Thu Jun 16 19:53:01.812505 2016] [:error] [pid 25995] [client 10.0.196.78:51004] PHP Warning: ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 58
I also don’t think they are permissions related, either:
[root@fog-server images]# ls -lahRt Lenovo_L530_Ubuntu_15 Lenovo_L530_Ubuntu_15: total 1.7G drwxrwxrwx. 15 fog root 4.0K Jun 16 19:53 .. -rwxrwxrwx. 1 fog root 47 Mar 5 08:47 d1.original.swapuuids -rwxrwxrwx. 1 fog root 512 Mar 5 08:47 d1p2.ebr drwxrwxrwx. 2 fog root 225 Mar 5 08:47 . -rwxrwxrwx. 1 fog root 1.7G Mar 5 08:47 d1p1.img -rwxrwxrwx. 1 fog root 512 Mar 5 08:45 d1p5.ebr -rwxrwxrwx. 1 fog root 250 Mar 5 08:45 d1.minimum.partitions -rwxrwxrwx. 1 fog root 1.0M Mar 5 08:45 d1.mbr -rwxrwxrwx. 1 fog root 0 Mar 5 08:45 d1.has_grub -rwxrwxrwx. 1 fog root 16 Mar 5 08:39 d1.original.fstypes -rwxrwxrwx. 1 fog root 250 Mar 5 08:39 d1.partitions -rwxrwxrwx. 1 fog root 6 Mar 5 08:39 d1.fixed_size_partitions
I can also upload still just fine. Nothing lingering in MY
/images/dev
directory! Same story at work, we can still upload fine. -
@Wayne-Workman did you try with an ftp client ? to see if it works ?
Could it be because the file is in use somewhere else ? -
@plegrand said in FTP Delete an image - failing:
@Wayne-Workman did you try with an ftp client ? to see if it works ?
Nope. I assume it’s good since I can still upload at home, and we can still upload at work.
Could it be because the file is in use somewhere else ?
At home, doubtful. Doubtful at work too.
-
@Wayne-Workman Should be fixed now.
-
@Tom-Elliott just in time to update.
-
Is this fixed now?
-
@Tom-Elliott i think. I haven’t heard any complaints.
-
I’m still having this issue. I recently updated to version 8415 but I am still getting the following errors,
PHP Warning: ftp_chmod(): SITE CHMOD command failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 31
PHP Warning: ftp_delete(): Delete operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 58
PHP Warning: ftp_rmdir(): Remove directory operation failed. in /var/www/html/fog/lib/fog/fogftp.class.php on line 172
PHP Warning: strpos(): Empty needle in /var/www/html/fog/service/progress.php on line 22
These are not the only errors I get but I’ll start there.
-
@ddavis I am sure you’ve gone through the tutorial on FTP issues, have you? https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_FTP