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.

error: open3: exec of strace -p $PID failed

Discussion in 'General Discussion' started by webstyler, Nov 16, 2009.

  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    all seems work fine on this server

    but if we trace a process under
    Main >> System Health >> Show Current CPU Usage

    we get thi error:

    internal death while parsing [stdin]) Mon Nov 16 12:38:34 2009 [4304] error: open3: exec of strace -p 1416 failed at whostmgr/bin/whostmgr2.pl line 2767
    Carp::croak('open3: exec of strace -p 1416 failed') called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 230
    IPC::Open3::_open3('open3', 'main', 'GLOB(0x9ba6098)', 'GLOB(0x9ba60b0)', 'GLOB(0x9ba60b0)', 'strace', '-p', 1416) called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 291
    IPC::Open3::eek:pen3('GLOB(0x9ba6098)', 'GLOB(0x9ba60b0)', 'GLOB(0x9ba60b0)', 'strace', '-p', 1416) called at whostmgr/bin/whostmgr2.pl line 2767
    main::managepid() called at whostmgr/bin/whostmgr2.pl line 852


    <div id="cpanel_internal_error_1" style="display:none;"><textarea style="font-weight:900;background-color:#fcc;" rows="6" cols="80">open3: exec of strace -p 1416 failed at whostmgr/bin/whostmgr2.pl line 2767
    Carp::croak('open3: exec of strace -p 1416 failed') called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 230
    IPC::Open3::_open3('open3', 'main', 'GLOB(0x9ba6098)', 'GLOB(0x9ba60b0)', 'GLOB(0x9ba60b0)', 'strace', '-p', 1416) called at /usr/lib/perl5/5.6.2/IPC/Open3.pm line 291
    IPC::Open3::eek:pen3('GLOB(0x9ba6098)', 'GLOB(0x9ba60b0)', 'GLOB(0x9ba60b0)', 'strace', '-p', 1416) called at whostmgr/bin/whostmgr2.pl line 2767
    main::managepid() called at whostmgr/bin/whostmgr2.pl line 852
    </textarea></div>
    <span class="error" style="cursor:hand;cursor:pointer;" onClick="document.getElementById('cpanel_internal_error_1').style.display='block';this.style.display='none';">[a fatal error or timeout occurred while processing this directive]</span>open3: exec of strace -p 1416 failed at whostmgr/bin/whostmgr2.pl line 2767
     
  2. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    the update cp of this nitght nothing change

    same error :(
     
  3. triton086

    triton086 Registered

    Joined:
    Dec 22, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    any solution for this issue ?
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The error indicates that strace could not be executed. Is strace installed? Does the strace binary have the correct access permissions (to allow execution from WHM)?

    Please use the following command to check the access permissions of the strace binary that should be included with the OS installation; please provide the output that is displayed:
    Code:
    # stat /usr/bin/strace
    I believe the strace binary may need access permissions mode 0755, as shown in the following line quoted from stat output:
    Code:
    # stat /usr/bin/strace | egrep "Access.*[U|G]id"
    Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
    If the access permissions mode is not 0755, try using the following command to correct it:
    Code:
    # chmod -vv 0755 /usr/bin/strace
    If the access permissions mode is already correct, the output from chmod may resemble the following:
    Code:
    # chmod -vv 0755 /usr/bin/strace
    mode of `/usr/bin/strace' retained as 0755 (rwxr-xr-x)
    If the stat output displayed reports "stat: cannot stat `/usr/bin/strace': No such file or directory" please try installing strace from your OS update repository. The following command can be used to install strace for RHEL and CentOS Linux distributions:
    Code:
    # /scripts/ensurerpm strace
    Please check to verify that strace can be executed directly via root SSH access. The following command can be used to execute strace, while ensuring to replace $PID with the actual process ID (PID) that you need to trace:
    Code:
    $ strace -p $PID
    As an example, if the process ID (PID) that you wish to trace is "1416" you would use the following command, which is also included within the diagnostic error detail from the opening post in this thread:
    Code:
    # strace -p 1416
    To obtain a process ID, try using the following command via root SSH access to list all processes:
    Code:
    # ps afuxww
     
Loading...

Share This Page