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 running /usr/local/cpanel/cpkeyclt very frequently

Discussion in 'General Discussion' started by Skin, Jun 5, 2013.

  1. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Hello,
    I've bought a vps from a few days and I receive every few hours this e-mail :

     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Thats not normal and will likely result in your server being blocked from the cPanel license system.
     
    ferrowi likes this.
  3. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Thanks for your reply,
    can you please give me a hint on how to solve this problem?

    Alessio
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    We definitely need to investigate why it is configured in this manner. Please open a ticket using the link in my signature.
     
  5. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    heh, sounds like someone is putting unncessary crons in their vps template :p be interested to see how the rest of it is setup if so...
     
  6. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Here is the output of crontab -e

    0 */8 * * * /usr/local/cpanel/cpkeyclt
    0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
    30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    32 4 * * * /usr/local/cpanel/scripts/upcp --cron
    0 1 * * * /usr/local/cpanel/scripts/cpbackup
    35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpan$
    45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache &&$
    30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr$
    45 */8 * * * /usr/bin/test -x /usr/local/cpanel/bin/optimizefs && /usr/local/cp$
    30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
    15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
    15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1
    52 0 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
    13,28,43,58 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    21 2 * * * /usr/local/lp/apps/security/cronwrapper.sh
     
  7. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Done, thanks.

    Alessio
     
  8. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This is the problem:

    Code:
    0 */8 * * * /usr/local/cpanel/cpkeyclt
    cPanel verifies its license information periodically without a cron job, so I am not sure why the cron job was configured. cPanel does not create that cron job by default. Have you asked your VPS provider if this is perhaps part of their VPS template?
     
  9. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Thanks, I've just removed the line.
    I'm going to ask to my VPS provider, so if it is part of their VPS template may be the will remove this cron job.
     
  10. semseoymas

    semseoymas Member

    Joined:
    Oct 22, 2013
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello:

    I have servers at HETZNER... frequently, although my cpanel license are auto-renewed and all is all right, when I try to access WHM I find out the cpanel screen telling something like "this server is not licensed, please run /usr/local/cpanel/cpkeyclt"...

    Ok, I run "/usr/local/cpanel/cpkeyclt" as root and WHM is playing fine, but:

    - what is the problem? Maybe an eventual communications problem between my server and cpanel licensing servers?
    - How could auto-fix?

    Sometimes, my clients could not access their WHM/cpanels because of this problem for hours, until I find out and run "/usr/local/cpanel/cpkeyclt" manually, and this is not a good solution.

    This way, I think a cronjob running "/usr/local/cpanel/cpkeyclt" each 15 minutes is maybe a great idea.... if the problem appears, max "fall out" time is 15 minutes...

    But now you say the cpanel servers are going to ban me... ¿?¿?

    Do you have any suggestion for me? (is not a question of IPtables, or adding IPs to whitelisting, I am sure)

    Thanks.

    - - - Updated - - -

    Ahm.... I am sorry... I am writting because:

    • at 9am I have entered WHM without problems
    • at 10:30am people tell me they couldnt enter whm/cpanel because server not licensed
    • minutes later, I needed to run manually cpkeyclt for whm to be active again

    Now have a look at the log:

    Great: there is no fail at logs, before my "Tue Feb 4 10:46:23 2014: License Update Request"

    Why then, this morning I have had this problem between 9am and 10:46am ?

    Thanks.
     
  11. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you find the need to run cpkeyclt every 15 minutes, something is wrong. That is not necessary with a normal network configuration.

    Unfortunately, the log excerpt does not give enough information for us to tell exactly what is happening. Please submit a ticket so that we can look at this directly and securely. You can post the ticket number here so that we can follow up on it.
     
  12. semseoymas

    semseoymas Member

    Joined:
    Oct 22, 2013
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  13. oswgarcia

    oswgarcia Member

    Joined:
    Oct 1, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi,

    This is my first post and since my problem is related to this thread and would like to continue the discussion here, if that is OK. I'm getting the same license issue which is fixed after run "/usr/local/cpanel/cpkeyclt" as it is well explained here, but the problem is that I need to do this in more than one hundred servers, so my question is, what is the best time to schedule a cron job that avoid be banned for cpanel servers , is once per month OK or maybe every 15 days?

    Thanks,
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's better to address the actual license issue you are experiencing so that you do not have to manually update the license file at set intervals. Could you elaborate on what error or issue you are experiencing?

    Thank you.
     
  15. oswgarcia

    oswgarcia Member

    Joined:
    Oct 1, 2014
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Thanks for your response, we finally discover the cause of our problem, there was a wrong script which changed the hostname of the servers, for that reason an update of the license was needed.

    I have already notified this to my team, and there is not reason to have a cron job updating the license.

    Thanks again,
     
  16. cliper

    cliper Registered

    Joined:
    May 2, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm curious is the system was compromised?
    I had the same line in my crontab:
    0 */8 * * * /usr/local/cpanel/cpkeyclt

    Not sure why.

    stat /usr/local/cpanel/cpkeyclt
    File: ‘/usr/local/cpanel/cpkeyclt’
    Size: 14125899 Blocks: 27592 IO Block: 4096 regular file
    Device: fd03h/64771d Inode: 553592 Links: 1
    Access: (0700/-rwx------) Uid: ( 0/ root) Gid: ( 0/ root)
    Access: 2016-04-29 00:00:01.718000000 -0400
    Modify: 2016-04-26 22:32:23.013000000 -0400
    Change: 2016-04-26 22:33:11.493000000 -0400
    Birth: -
     
  17. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Italy
    Hello cliper, in my case the system was not compromised, all the VPS i buy from my provider have this problem, so i think is part of their VPS template.
     
  18. cliper

    cliper Registered

    Joined:
    May 2, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    ah! :D thank you. So it must be a template then. thanks.
     
  19. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You may want to report this to your VPS hosting provider so they can adjust their templates to address the problem.

    Thank you.
     
Loading...

Share This Page