[Case 133065] File Manager directory moves can cause file loss if one directory has invalid perms
Dear Sir,
On WebHostingBuzz Server, occasionally I felt that files were lost when FileOP Failure was hit during moving folders in the File Manager. I just did an experiment.
I moved public_html/fcsub/drupal/sites to public_html/, then I hit the FileOP Failure permission error. I clicked OK and checked public_html/sites/default/files, nothing were there. I checked back
public_html/fcsub/drupal/sites/default/files, All Files were GONE as well. I simulated the same operation on other hosting provider servers, all did trigger the FileOP Failure permission error but the original folder still kept the files which were unable to be moved. However, WebHostingBuzz server deleted all the unmoved files from the original location, public_html/fcsub/drupal/sites/default/files.
I got a Reply from WebHostingBuzz as follows. Indeed, not many files inside the folder, only 58 files including folders and I did NOT drag but Right-Clicked & select Move. THanks
[COLOR="#0000FF">Hello,
We see that there are lots of files in the directory /home/uwhbbiasa/public_html/fcsub/drupal/sites/default/files :
# du -sh /home/uwhbbiasa/public_html/fcsub/drupal/sites/default/files/
24M /home/uwhbbiasa/public_html/fcsub/drupal/sites/default/files/
Please be advised cPanel File Manager is not intended for advanced actions with files moving and it officially supports moving files one by one only. If you click on a whole folder and drag your mouse to any other part of the screen - the results of your experiment may be unpredictable. If this functional doesn't meet your needs and requirements you may contact cPanel developers at [url=http://cpanel.net/]cPanel, Inc. and ask for implementation of functional you need.
-
Re: All Files Lost (WebHostingBuzz said CPanel Issue) then I hit the FileOP Failure permission error.
Hello :) Could you let us know the specific error message you receive when this happens? Thank you.0 -
You might need to know about this: /https://www.drupal.org/PSA-2014-003 Possibly unrelated, but important for drupal users to know about. 0 -
Re: All Files Lost (WebHostingBuzz said CPanel Issue) ]Hello :) Could you let us know the specific error message you receive when this happens? Thank you.
Dear Sir, Error as attached. FileOP Failure saying permission denied. Thanks .vB [COLOR="silver">- - - Updated - - -]You might need to know about this: /https://www.drupal.org/PSA-2014-003 Possibly unrelated, but important for drupal users to know about.
Thank you, yes, not related, if the files were unsuccessfully moved, they should remain in the original folder, however, they were gone on WebHostingBuzz server. I simulated the same operation on the same files on other hosting providers, no problems at all. I was confused as they told me to refer to CPanel0 -
Could you let us know which version of cPanel is installed on this system and which theme you are using? Note that I suggest having your hosting provider open a support ticket with us so we can take a closer look. You can post the ticket number they are assigned here and we can update this thread with the outcome. Thank you. 0 -
]Could you let us know which version of cPanel is installed on this system and which theme you are using? Note that I suggest having your hosting provider open a support ticket with us so we can take a closer look. You can post the ticket number they are assigned here and we can update this thread with the outcome. Thank you.
Dear Sir, Instead of using the Drupal package, I reproduced the scenario with my own created folders & files on 3 different Shared Hosting Servers namely Hostgator, Scalahosting & WebHostingBuzz running cPanel Pro 1.0 (RC1) with X3 theme. No custom .htaccess was used, plain environment. 1.) created public_html\main (permission 755) 2.) created public_html\main\sub1 (755) 3.) created public_html\main\sub1\sub2 (555) 4.) created public_html\main\sub1\sub2\sub3 (755) created public_html\main\sub1\sub2\sub3\a.htm (644) created public_html\main\sub1\sub2\sub3\b.htm (644) 5.) right-clicked on public_html\main\sub1, select Move to public_html, I hit the FileOp Failure with permission denied. I checked under public_html\main\sub1\sub2\sub3, all files namely a.htm & b.htm were DELETED. They were also NOT moved to public_html\sub1\sub2\sub3 , same outcome on Hostgator, Scalahosting & WebHostingBuzz servers. 6.) on Hostgator server, if I created a file named as default.htm or settings.php with permission 644 under public_html\main\sub1\sub2, when I moved public_html\main\sub1 to public_html, same failure encountered but all the unmoved files under public_html\main\sub1\sub2\sub3 were NOT deleted, still remained. 7.) on Scalahosting server, if I created a file named as index.htm or settings.php with permission 644 under public_htm\main\sub1\sub2, when I moved public_html\main\sub1 to public_html, same failure encountered but all the unmoved files under public_html\main\sub1\sub2\sub3 were NOT deleted, still remained. 8.) on WebHostingBuzz server, the said in 6.) & 7.) are NOT applicable, all unmoved files under public_html\main\sub1\sub2\sub3 were just deleted regardless. Is this a bug with CPanel ? How come 3 servers behaved differently in 6.), 7.) and 8.) but same outcome in 5.) ? Thank you.0 -
5.) right-clicked on public_html\main\sub1, select Move to public_html, I hit the FileOp Failure with permission denied.
I can't duplicate this here, just tried. Please feel free to open a ticket to cPanel Technical Support.0 -
]I can't duplicate this here, just tried. Please feel free to open a ticket to cPanel Technical Support.
Dear Sir, Please make sure that 3.) public_html\main\sub1\sub2 to be changed to permission 555 after you've done 4.) . WebHostingBuzz staff just replied that they had successfully reproduced the issues. I'd asked them to deal with you guys. Thank you.0 -
sub2 to be changed to permission 555
Why would I do that?0 -
]Why would I do that?
Updated, the earlier reply with typo Dear Sir, From 1.) to 4.), it's just a mimic of the Drupal Folder & File Hierarchy (Public_HTML\Drupal\Sites\Default\Files) for the sake of simplicity of tracing out the file loss issue . As I moved Public_HTML\Drupal\Sites to Public_HTML, all unmoved files inside Public_HTML\Drupal\Sites\Default\Files\ on the WebHostingBuzz server were GONE after encountering the FileOp Failure due to Permission Error. Thank you0 -
I completely understand your multiple posts and the example setup you provided and why. And I also duplicated every step and had no issues as you're having. Please open a ticket to your Hosting Provider as instructed by cPanelMichael. Thanks! 0 -
]I completely understand your multiple posts and the example setup you provided and why. And I also duplicated every step and had no issues as you're having. Please open a ticket to your Hosting Provider as instructed by cPanelMichael. Thanks!
Dear Sir, Scalahosting Staff just replied that they did encounter File Loss following my given scenario after WebHostingBuzz Staff. I'd emailed them to deal with you guys directly. It's a SUPER CRITICAL ISSUE as users might have no way of recovering all the unmoved files DELETED by CPanel due to the bug in File Manager. It really sounds terrible & I really hope the issue to be rectified the soonest possible. Thank you.0 -
Hello :) Internal case number 133065 is open to address an issue with the following directory structure under the public_html directory: public_html -> sub1 -> sub2 -> sub3 In the scenario associated with this case, there are files in the sub3 directory, and the permissions on sub2 are 0555 (instead of 0755). Moving the sub1 directory up one level (to public_html) in File Manager will result in the files in sub3 being removed (permanently). There is currently no specific time frame available for a resolution, but you can monitor our change logs at: cPanel - Change Logs Thank you. 0
Please sign in to leave a comment.
Comments
12 comments