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.

Cron Job You cannot run this code as root

Discussion in 'General Discussion' started by leonep, Feb 11, 2017.

  1. leonep

    leonep Well-Known Member

    Joined:
    Nov 18, 2014
    Messages:
    63
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Pescara
    cPanel Access Level:
    Root Administrator
    Hi,
    I have updated to whm/cpanel 62. All is ok but after cron job i have reiceved 1 error.


    Code:
    root@host1 [~]# /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    Code:
    Cpanel::Exception::RootProhibited/(XID uzxbtb) Non è possibile eseguire questo codice come root.
    You cannot run this code as root.
     at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 77.
            Cpanel::Exception::create("RootProhibited") called at /usr/local/cpanel/Cpanel/Exception.pm line 30
            Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__) called at /usr/local/cpanel/Cpanel/Security/Authz.pm line 14
            Cpanel::Security::Authz::verify_not_root() called at /usr/local/cpanel/Cpanel/ContactInfo/Email.pm line 85
            Cpanel::ContactInfo::Email::_read_contactemail(__CPANEL_HIDDEN__, 1) called at /usr/local/cpanel/Cpanel/ContactInfo/Email.pm line 52
            Cpanel::ContactInfo::Email::getcontactemail(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at /usr/local/cpanel/Cpanel/ContactInfo.pm line 112
            Cpanel::ContactInfo::getownercontact("adristarter") called at /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl line 375

    Code:
    root@host1 [~]# ls -l /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl
    -rwxr-xr-x 1 root root 31638 Dec  6 12:50 /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl*
    Any possibile fix ? thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page