cPanel Will Not Let Me Delete Files - FileOp Failure

Avatar
  • updated
  • Answered

I keep getting this error when I try to delete files in the cPanel file manager: FileOp Failure: (XID 96sg7u) The system failed to create the file “/home/knowan5/.trash/.trash_restore.lock” (as EUID: 3390, EGID: 3388 3388) because of the following error: Permission denied

How am I supposed to enable this permission?

Pinned replies
Avatar
IMH Support Agent 2
  • Answer
  • Answered

Hello Garrett,

Thank you for contacting us about a FileOp Failure error when trying to delete files in cPanel. 

FileOp Failure - Permission denied

This seems to be caused by a "Permission denied" error because your system was not able to create a hidden trash (/.trash/.trash_restore.lock) folder. First, check your file permissions for the .trash folder to make sure you have full access (you may have to allow your cPanel to view hidden folders). Permissions should be set to 0700 so your cPanel user is the only one that can read, write, or execute the folder. 

Image 321

Default Files Deleted

If you removed all of the default file structures, then it's possible that a required file/folder was removed and can't be created when deleting the file.  In this case, we would recommend contacting our live technical support team for further assistance.  They have access to your server to add the default files and folders.  Once you have the default files back in place the File Manager should operate normally once again.

FileOp Failure - Directory Not Empty

We have also seen people experience a "Directory Not Empty" error when deleting a file. This is often caused by trying to delete a file that contains files that you don't have permission to edit. In this case, you should be able to open the folder and update the permissions of the files then try to delete them again.

If you have any further questions or comments, please let us know.

Kindest Regards,

Arnel C.

Avatar
anonymous
  • Answered
Quote from Carlos Moreira

Hi there,

what about when the error is something of this kind:  "FileOp Failure: (XID rm5rre) The system failed to create the file “/home4/minhoybg/.trash/.trash_restore.lock” (as EUID: 785, EGID: 796 796) because of the following error: Disk quota exceeded"

My disk is very full and I cannot even delete files to save space. It's absurd! What should I do?

Hi Carlos, 

Thank you for your question regarding a FileOp Failure: The system failed to create the file error. 

FileOp Failure: Disk quota exceeded

This error usually occurs when your account runs out of disk space. In order to resolve this issue, you will need to connect via FTP to download files to your local computer and then delete them from your server to make space. Once you have removed enough data via FTP, you can continue to delete files as normal.

Best Regards,

Alyssa K.

Avatar
Mario Cano
Quote from Carlos Moreira

Hi there,

what about when the error is something of this kind:  "FileOp Failure: (XID rm5rre) The system failed to create the file “/home4/minhoybg/.trash/.trash_restore.lock” (as EUID: 785, EGID: 796 796) because of the following error: Disk quota exceeded"

My disk is very full and I cannot even delete files to save space. It's absurd! What should I do?

Hi Carlos,

Looking at the error message you provided it does appear the issue is happening as a result of your account disk space being full.

cPanel knows that your account is over quota so you will not be able to delete any files as when you try to delete files within cPanel the control panel will try to create temporary files under your account so that it can perform certain actions like deleting a file. Since you are at your limit already cPanel cannot create those temporary files hence cannot delete anything and that is why you are getting this message.

The solution to this is to use your FTP account and delete files you don't need as FTP does not need to create temporary files when trying to delete a file. If you are not sure how to connect to your account via FTP I would recommend you reaching out to the support team at Inmotion Hosting by clicking here.

Feel free to ask me any more questions,

Mario C.

Avatar
Carlos Moreira

Hi there,

what about when the error is something of this kind:  "FileOp Failure: (XID rm5rre) The system failed to create the file “/home4/minhoybg/.trash/.trash_restore.lock” (as EUID: 785, EGID: 796 796) because of the following error: Disk quota exceeded"

My disk is very full and I cannot even delete files to save space. It's absurd! What should I do?

Avatar
IMH Support Agent 2
  • Answer
  • Answered

Hello Garrett,

Thank you for contacting us about a FileOp Failure error when trying to delete files in cPanel. 

FileOp Failure - Permission denied

This seems to be caused by a "Permission denied" error because your system was not able to create a hidden trash (/.trash/.trash_restore.lock) folder. First, check your file permissions for the .trash folder to make sure you have full access (you may have to allow your cPanel to view hidden folders). Permissions should be set to 0700 so your cPanel user is the only one that can read, write, or execute the folder. 

Image 321

Default Files Deleted

If you removed all of the default file structures, then it's possible that a required file/folder was removed and can't be created when deleting the file.  In this case, we would recommend contacting our live technical support team for further assistance.  They have access to your server to add the default files and folders.  Once you have the default files back in place the File Manager should operate normally once again.

FileOp Failure - Directory Not Empty

We have also seen people experience a "Directory Not Empty" error when deleting a file. This is often caused by trying to delete a file that contains files that you don't have permission to edit. In this case, you should be able to open the folder and update the permissions of the files then try to delete them again.

If you have any further questions or comments, please let us know.

Kindest Regards,

Arnel C.