Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Could Not Remove Directory Warnings On Upgrade to WHM 72

Discussion in 'General Discussion' started by linux4me2, Jun 26, 2018.

  1. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    199
    Likes Received:
    46
    Trophy Points:
    28
    Location:
    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?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,835
    Likes Received:
    134
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    linux4me2 likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice