The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lost scripts folder

Discussion in 'General Discussion' started by sylvain_JP, Aug 22, 2016.

  1. sylvain_JP

    sylvain_JP Registered

    Joined:
    Aug 22, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I don't know how this happened but I suddenly started to receive mails from checksrvd and when I went to investigate why, I couldn't bring whm up (error 503) and through ssh I discovered that the scripts folder (usr/local/cpanel/scripts) is gone... Therefore I cannot run a upcp --force to reinstall cpanel...

    So I though I could try to reinstall cpanel completely to rebuild the folder and the missing files, using latest.sh but the script end on:
    Code:
    2016-08-22 14:31:01  570 ( INFO): Installing /usr/local/cpanel files.
    2016-08-22 14:31:01  574 (DEBUG):  HTTPUPDATE is set to httpupdate.cpanel.net
    2016-08-22 14:31:01  595 (DEBUG):  Retrieving updatenow.static from http://httpupdate.cpanel.net/cpanelsync/installer/cpanel/scripts/updatenow.static.bz2
    2016-08-22 14:31:01  720 (DEBUG):  Retrieving http://httpupdate.cpanel.net/cpanelsync/installer/cpanel/scripts/updatenow.static.bz2 to updatenow.static.bz2
    2016-08-22 14:31:01  725 (FATAL): Unable to fetch file updatenow.static.bz2.
    
    and if I try to connect wget this file from another pc:
    Code:
    wget http://httpupdate.cpanel.net/cpanelsync/installer/cpanel/scripts/updatenow.static.bz2
    --2016-08-22 14:31:19--  http://httpupdate.cpanel.net/cpanelsync/installer/cpanel/scripts/updatenow.static.bz2
    Résolution de httpupdate.cpanel.net (httpupdate.cpanel.net)… 69.72.212.11, 208.74.121.39, 74.50.120.123, ...
    Connexion à httpupdate.cpanel.net (httpupdate.cpanel.net)|69.72.212.11|:80… connecté.
    requête HTTP transmise, en attente de la réponse… 403 Forbidden
    2016-08-22 14:31:20 erreur 403 : Forbidden.
    
    Any idea, why I get this error?

    Or is there any location where I can get the different cpanel scripts. Unfortunately, I don't have access at the moment to my backup which should include the system files.

    The system is a VPS running centos 6 by the way. All other services: mail, websites, etc. work.

    Thanks in advance

    Sylvain
     
  2. sylvain_JP

    sylvain_JP Registered

    Joined:
    Aug 22, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Japan
    cPanel Access Level:
    Root Administrator
    Problem solved:
    I created a VM with the same centos
    Installed cpanel on it
    Tar the script folders and scp it to my server
    Ran upcp --force
    Everything seems to be back to normal. It will be nice if there was a location to download individual files from cpanel without having to go through the latest install script...

    Thanks

    Sylvain
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to address the issue. Generally, we'd advise users to first determine why the /scripts directory was removed because that shouldn't happen on it's own. The full URL varies, but this one is for cPanel 58.0.23:

    Code:
    http://httpupdate.cpanel.net/cpanelsync/11.58.0.23/cpanel/scripts/
    Thank you.
     
Loading...

Share This Page