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 symlink problem?

Discussion in 'General Discussion' started by Tsafarog, May 9, 2016.

Tags:
  1. Tsafarog

    Tsafarog Member

    Joined:
    Oct 23, 2009
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Hello,

    i am using WHM version 11.56

    i am having an issue with executing scripts inside /scripts directory.

    if i try to execute the backup command from /scripts/pkgacct i get the error

    /usr/local/cpanel/3rdparty/bin/perl: symbol lookup error: /root/perl5/lib/perl5/x86_64-linux-64int/auto/DBI/DBI.so: undefined symbol: Perl_xs_apiversion_bootcheck

    If i execute the command from /usr/local/cpanel/scripts/ it works fine.

    Any advice how to fix this?

    Kind regards and my thanks in advance
     
  2. cPTerrance

    cPTerrance *nix Technical Analyst II / Migrations Specialist
    Staff Member

    Joined:
    Jul 9, 2015
    Messages:
    72
    Likes Received:
    8
    Trophy Points:
    8
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    This appears to be a Internal cPanel Perl Error I advise getting a ticket open at cPanel Customer Portal so that we can look further into this.
     
  3. Tsafarog

    Tsafarog Member

    Joined:
    Oct 23, 2009
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    i have been trying but i am getting an error when i try to log in to customer portal
    Code:
    error type: undef
    error info: Must be a positive integer (in $args->{"user_id"}) at (eval 973) line 182
        "PositiveInt" is a subtype of "Int"
        "Int" is a subtype of "Num"
        "Num" is a subtype of "LaxNum"
        "LaxNum" is a subtype of "Str"
        "Str" is a subtype of "Value"
        "Value" is a subtype of "Defined"
        Undef did not pass type constraint "Defined" (in $args->{"user_id"})
        "Defined" is defined as: (defined($_))
    
    undef error - Must be a positive integer (in $args->{"user_id"}) at (eval 973) line 182
        "PositiveInt" is a subtype of "Int"
        "Int" is a subtype of "Num"
        "Num" is a subtype of "LaxNum"
        "LaxNum" is a subtype of "Str"
        "Str" is a subtype of "Value"
        "Value" is a subtype of "Defined"
        Undef did not pass type constraint "Defined" (in $args->{"user_id"})
        "Defined" is defined as: (defined($_))
    
    or this when i go to ticket submit page

    An unknown error has occurred, and our admins have been notified. Please contact cs @ cpanel.net for further assistance with this request.
     
    #3 Tsafarog, May 21, 2016
    Last edited by a moderator: May 21, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    To update, it looks like the PERL5LIB environment variable was enabled on this system. The following lines were removed from /root/.bashrc to disable this environment, as it's not generally recommended on cPanel systems:

    Code:
    export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/root/perl5";
    export PERL_MB_OPT="--install_base /root/perl5";
    export PERL_MM_OPT="INSTALL_BASE=/root/perl5";
    export PERL5LIB="/root/perl5/lib/perl5:$PERL5LIB";
    The following document explains the multiple Perl environments on cPanel systems:

    Guide to Perl in cPanel & WHM - Perl Environments

    Thank you.
     
Loading...

Share This Page