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.

/scripts folder empty

Discussion in 'General Discussion' started by yemgi, Nov 13, 2008.

  1. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Silly me accidentally removed all the content of the scripts folder on my server ...
    All is still running but if the server reboots I believe it will not work properly.
    How can I download all the scripts?
    I have seen that to install I can wget http://layer1.cpanel.net/latest
    then sh latest but I did not do it as I am not sure of the impact on my current config.
    If you had any suggsetion Iit would be greatly appreciated
    I am running 11.24 CURRENT on CentOS4.7
     
    #1 yemgi, Nov 13, 2008
    Last edited: Nov 13, 2008
  2. chopperb

    chopperb Active Member

    Joined:
    Jul 23, 2006
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Are you already running sites on the server?
     
  3. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Yes there are websites runnning on the server it is not a new install, I was just clearing some space on the disk but I did a rm -Rf * in the scripts folder by mistake :eek: I can't believe I forgot to check my location before doing it ...
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Force a cPanel update. I think it would replace any files it needs that are not there or out of date as needed.

    Let us know for sure, after.. ;)
     
  5. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I wish I could but upcp was in the scripts folder
     
  6. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    OK, I found a way, I used the following command
    rsync --timeout=1000 -av rsync://rsync.cpanel.net/scripts /scripts
    This populated my /scripts folder with all the scripts.

    I am currently running /scripts/upcp in the hope that it will help to solve any potential issue due to this.
     
  7. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Well, it looks like all is not working properly after this. The WHM does not seem to have the rights to run the scripts

    What should be the rights on the /scripts content, ewhen I look on my server some are owned by root some are owned by webadmin

    Here is what I get when I try to force an update via the CLI:
    Code:
    [root@vps scripts]# /scripts/upcp --force
    Can't locate cPScript/CPAN/URI/Escape.pm in @INC (@INC contains: /usr/local/cpanel /scripts /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/cPScript/Encoder.pm line 11.
    BEGIN failed--compilation aborted at /scripts/cPScript/Encoder.pm line 11.
    Compilation failed in require at /scripts/cPScript/HttpRequest.pm line 15.
    BEGIN failed--compilation aborted at /scripts/cPScript/HttpRequest.pm line 15.
    Compilation failed in require at /scripts/upcp line 15.
    BEGIN failed--compilation aborted at /scripts/upcp line 15.
    
     
    #7 yemgi, Nov 14, 2008
    Last edited: Nov 14, 2008
  8. jpetersen

    jpetersen Well-Known Member

    Joined:
    Dec 31, 2006
    Messages:
    113
    Likes Received:
    4
    Trophy Points:
    18
    Code:
    Can't locate cPScript/CPAN/URI/Escape.pm in @INC
    It sounds like you still need to grab the other directories that exist inside the /scripts directory.

    For example, the error above is saying that this file is missing:
    /scripts/cPScript/CPAN/URI/Escape.pm

    The directories that exist inside the /scripts directory are shown below, taken from a box running a somewhat recent version of STABLE:

    [root@host:/scripts]# find -type d -maxdepth 1
    ./cPScript
    ./cpan_sandbox
    ./php_sandbox

    The cPScript directory also contains other directories as well as files, so you will need those as well.

    I've seen some files owned by webadmin in the /scripts directory before, but all the ones I'm looking at now are uid.gid root.root. It's probably safe to leave the ownership as it is on the files owned by webadmin. As long as cPanel can read from the files or execute the files (whichever it may need to do), it's probably ok to leave things as they are.
     
  9. yemgi

    yemgi Member

    Joined:
    May 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks,
    I have re -rsync the scripts folder and I have then been able to launch /scripts/upcp --force instead of just /scripts/upcp as I did yesterday, it is still running at the moment but I can see in the logs thatit is retrieving the folders you pointed out and their content. Hopefully that will do the trick :)
     
  10. Ghulam Yaseen

    Ghulam Yaseen Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Karachi,Pakistan
    linux thirst

    Hello :),

    I think you need to reinstall the cpanel :cool:
     
Loading...

Share This Page