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.

Cannot update

Discussion in 'General Discussion' started by Sampei, Feb 17, 2003.

  1. Sampei

    Sampei Member

    Joined:
    May 27, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    on one of my server cpanel, when I try to update cpanel5, the script hang.
    I made update every night and I receive this mail from cron daemon :

    Subject: Cron &root@server1& /scripts/upcp
    X-Cron-Env: &SHELL=/bin/sh&
    X-Cron-Env: &HOME=/root&
    X-Cron-Env: &PATH=/usr/bin:/bin&
    X-Cron-Env: &LOGNAME=root&
    Date: Sat, 15 Feb 2003 02:04:00 +0100


    String found where operator expected at /scripts/upcp line 34, near &system(&&
    (Might be a runaway multi-line && string starting on line 33)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 35, near &system(&&
    (Might be a runaway multi-line && string starting on line 34)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 37, near &system(&&
    (Might be a runaway multi-line && string starting on line 35)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 38, near &if (! -e &&
    (Might be a runaway multi-line && string starting on line 37)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 39, near &mkdir(&&
    (Might be a runaway multi-line && string starting on line 38)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 42, near &unlink(&&
    (Might be a runaway multi-line && string starting on line 39)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 45, near &if (-e &&
    (Might be a runaway multi-line && string starting on line 42)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 45, near &sock& && ! -e &&
    String found where operator expected at /scripts/upcp line 46, near &symlink(&&
    (Might be a runaway multi-line && string starting on line 45)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 46, near &sock&,&&
    String found where operator expected at /scripts/upcp line 49, near &system(&&
    (Might be a runaway multi-line && string starting on line 46)
    (Missing semicolon on previous line?)
    Bareword found where operator expected at /scripts/upcp line 49, near &system(&rm&
    Warning: Use of &-f& without parens is ambiguous at /scripts/upcp line 49.
    Bareword found where operator expected at /scripts/upcp line 49, near &/etc/cpanelbeta&
    (Missing operator before panelbeta?)
    String found where operator expected at /scripts/upcp line 52, near &if (readlink(&&
    (Might be a runaway multi-line && string starting on line 49)
    (Missing semicolon on previous line?)
    String found where operator expected at /scripts/upcp line 58, near &if ($ARGV[0] eq &&
    (Might be a runaway multi-line && string starting on line 52)
    (Missing semicolon on previous line?)
    Bareword found where operator expected at /scripts/upcp line 58, near &if ($ARGV[0] eq &manual&
    (Do you need to predeclare if?)
    String found where operator expected at /scripts/upcp line 61, near &if ($ENV{'TERM'} eq &&
    (Might be a runaway multi-line && string starting on line 58)
    (Missing semicolon on previous line?)
    syntax error at /scripts/upcp line 34, near &system(&&
    Execution of /scripts/upcp aborted due to compilation errors.

    I have
    WHM 5.3.0
    Cpanel 5.3.0-E133
    RedHat 7.3

    I have the exact same version on another server and it updates well.

    Anyone know how can I fix the problem ?

    Thank you
     
  2. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    Check if /scripts/upcp has this in line 33:

    system(&/scripts/checkbashshell);

    and change it to

    system(&/scripts/checkbashshell&);
     
  3. Sampei

    Sampei Member

    Joined:
    May 27, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    It works :)
    But not on that line. It is on the previous line :
    system(&/scripts/cleanupcheck);

    I have corrected and it works now.
    Thank you very much.
     
Loading...

Share This Page