Could Not Remove Directory Warnings On Upgrade to WHM 72

linux4me2

Well-Known Member
Aug 21, 2015
259
78
78
USA
cPanel Access Level
Root Administrator
My server did the automatic upgrade to WHM 72 from WHM 70, and I noticed the following "Cannot remove directory" warnings in the log:
Code:
Could not remove directory '/usr/local/cpanel/whostmgr/docroot/templates/file_restoration/services': Directory not empty
Could not remove directory '/usr/local/cpanel/whostmgr/docroot/templates/file_restoration/views': Directory not empty
Could not remove directory '/usr/local/cpanel/base/frontend/paper_lantern/file_restoration/services': Directory not empty
Could not remove directory '/usr/local/cpanel/base/frontend/paper_lantern/file_restoration/views': Directory not empty
Could not remove directory '/usr/local/cpanel/base/frontend/paper_lantern/file_restoration' is not empty, not removing.
I'm guessing it's safe to delete the files in there and remove them manually, but I just wanted to check before I messed something up.

Is it safe to delete the files in those directories and then delete the directories?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,272
313
Houston
Hello @linux4me2

I have a server that runs on edge and I have these directories with contents inside them. I think a better solution would be to remove:
Code:
/usr/local/cpanel/base/frontend/paper_lantern/file_restoration
Then to ensure it's not needed run:

Code:
/scripts/upcp --force
Which should resync any necessary data.

Thanks!
 
  • Like
Reactions: linux4me2