Skip to main content

[CPANEL-22562] User home directory created as symlink to whostmgr docroot

Comments

5 comments

  • cPanelMichael
    Hello, The error message you noticed can appear if required files were removed. Try running the following command to see if it solves the issue: /scripts/updatenow.static -sync
    Thank you.
    0
  • Cristian Aray
    That worked. Thanks a lot.
    0
  • Areeb111
    I did the same thing, But i was forced to do, Because i was transferring a website from another server and suddenly it stoppes because the hard disk is full, Changed the home directory path and retried, And it says you need to remove the files manually. I removed them by #rm -rf /home/username But i got file error - menu/main.tmpl: not found I don't know why there are important files stored in the user's directories ?
    0
  • cPanelMichael
    Hello @Areeb111, It's possible the error message in the WHM UI didn't stem from removing the account's home directory, but rather from a failure to generate required files when the server was out of available disk space. Thus, the subsequent update (with the additional free space) was able to download the required files and correct the issue. Thank you.
    0
  • cPanelMichael
    Hello, To update, internal case CPANEL-22562 is open to report an issue where where aborted or failed transfers can leave a symbolic link at the /home/$USER location pointing to /usr/local/cpanel/whostmgr/docroot/. I'll monitor case CPANEL-22562 and update this thread with the outcome once it's complete. In the meantime, note that attempting to manually remove /home/$USER with the "rm -rf" command (and a trailing slash at the end of the path) can then lead to the removal of required files since that command follows the symbolic link and removes the directory it points to. To workaround the issue in the meantime, a command like the following should be used instead of the "rm -rf /home/username/" command: rm -vi /home/username
    This will prompt a confirmation to remove only the symbolic link itself. Thank you.
    0

Please sign in to leave a comment.