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.

/etc/yum/universal-hooks/posttrans/cp_clear_packman_cache is not executable

Discussion in 'EasyApache' started by Peter Grahn a.k.a Lite, Apr 21, 2016.

Tags:
  1. Peter Grahn a.k.a Lite

    Joined:
    Feb 29, 2016
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Website Owner
    Hi :)

    Recently I receive the following while using yum:
    !!!! /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache is not executable

    Trying chmod +x !!!! /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache I receive: chmod: cannot operate on dangling symlink ‘/etc/yum/universal-hooks/posttrans/cp_clear_packman_cache’

    This has occurred since installing EA4 with CouLinux however, CloudLinux referred me to cPanel.

    My question is, is this anything I should worry about? I like to keep my systems clean.

    Yours,

    Pete.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can check to see if it's a working symbolic link. EX:

    Code:
    ls -al /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache
    Does the destination file exist? Here's how it looks on a test system:

    Code:
    # ls -al /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache
    lrwxrwxrwx 1 root root 45 Mar 22 17:57 /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache -> /usr/local/cpanel/scripts/clear_packman_cache*
    Thank you.
     
  3. Peter Grahn a.k.a Lite

    Joined:
    Feb 29, 2016
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Website Owner
    Yes, it came up as red;
    lrwxrwxrwx. 1 root root 45 Apr 19 19:30 /etc/yum/universal-hooks/posttrans/cp_cl ear_packman_cache -> /usr/local/cpanel/scripts/clear_packman_cache

    But chmod +x seems to have sorted it.

    Anyway, this has occurred on two different severs now so it seems to be a bug in the code..?

    Thanks!
     
  4. 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:
  5. Peter Grahn a.k.a Lite

    Joined:
    Feb 29, 2016
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sweden
    cPanel Access Level:
    Website Owner
    I did indeed and for all installations I had to follow the instruction: If you have some conflicts with Installing profile during migration “/etc/cpanel/ea4/profiles/custom/ea3_state_at_migration-****************.json”, just install cPanel default profile.

    Three servers, same result all installed fresh.
     
  6. 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:
    It does appear that there is a bug with this as I have checked my own server and have the same situation, does "/scripts/clear_packman_cache" exist for you?
     
  7. rootbase

    rootbase Registered

    Joined:
    Apr 27, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    cPanel Access Level:
    Root Administrator
    saw the same behavior on my non Cloud Linux cPanel install today, last night it upgraded to Release 56:

    seans@whm [~]# ls -las /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache
    0 lrwxrwxrwx. 1 root root 45 Mar 17 21:47 /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache -> /usr/local/cpanel/scripts/clear_packman_cache
    seans@whm [~]# /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache
    -bash: /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache: No such file or directory
    seans@whm [~]# ls -las /scripts/clear_packman_cache
    /bin/ls: cannot access /scripts/clear_packman_cache: No such file or directory
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The "/usr/local/cpanel/scripts/clear_packman_cache" file was intentionally removed in cPanel version 56 per the following case:

    Fixed case CPANEL-3874: Removing caching from packman that is no longer needed.

    A new case, EA-4362, is open to resolve an issue where the following message appears whenever a package is updated in EasyApache 4:

    !!!! /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache is not executable

    You can safely ignore this output until we release a resolution, as it should not prevent YUM from successfully updating.

    Thank you.
     
  9. freedomizer

    freedomizer Member

    Joined:
    Nov 24, 2012
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This message still appears as of July 3, 2016. Just upgraded to EA4, non CloudLinux server.

    Code:
    cat: /scripts/clear_packman_cache: No such file or directory
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  11. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    3 months on,.............. any update on this?
     
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    There's no update to report on case EA-4362 at this time, however I've linked this thread to the case to ensure the customer feedback is noted. In the meantime, the message output should not prevent EasyApache from working as intended.

    Thank you.
     
  13. cPDan

    cPDan cPanel Staff
    Staff Member

    Joined:
    Mar 9, 2004
    Messages:
    711
    Likes Received:
    3
    Trophy Points:
    18
    Greetings! quick update on this.

    TL;DR: an autofixer is in progress that will fix this (ref: CPANEL-9364)

    Details:

    When the packman caching was removed the script that ensured the yum hook symlink was correct, clear_packman_cache, was removed but the symlink was overlooked.

    In the meantime:
    • the error does not affect the yum transaction so it is safe to ignore
    • if you'd rather not wait for the autofixer it is safe to `rm /etc/yum/universal-hooks/posttrans/cp_clear_packman_cache`

    Thanks!
     
    cPanelMichael likes this.
Loading...

Share This Page