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!

SOLVED file error - menu/main.tmpl: not found

Discussion in 'General Discussion' started by Cristian Aray, Feb 24, 2018.

  1. Cristian Aray

    Cristian Aray Registered

    Joined:
    Feb 24, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    I've been struggling with transfering accounts from one WHM account to the other, because mail folders are huge. In that process I've created and terminated some accounts multiple times.

    The last thing I was trying was to create a backup from cPanel, excluding mail/new mail/cur folders. All good until that, but when I went to import the backup into WHM, I got an error about the unmanaged database user, fixed that and try again, second try throws an error because the home/username folder already exists.

    So, I rm -rf /home/username/ ... didn't work because I'm stupid.

    Again rm -rf /home/username does work... so I go to WHM to retry the import, and surprise surprise...

    file error - menu/main.tmpl: not found

    I tried forcing a cPanel Update a couple of time, finishing both successfully but the error is not gone. Can't access WHM but the Accounts seems to be working no issues.

    Any idea what could be wrong and how I can fix this?

    Is WHM username account looking for a theme file that I delete?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,903
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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:

    Code:
    /scripts/updatenow.static -sync
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Cristian Aray

    Cristian Aray Registered

    Joined:
    Feb 24, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Costa Rica
    cPanel Access Level:
    Root Administrator
    That worked. Thanks a lot.
     
    cPanelMichael likes this.
  4. Areeb111

    Areeb111 Registered

    Joined:
    Dec 27, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    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 ?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,903
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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