Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Error email from cronjob

Discussion in 'General Discussion' started by urgido, Apr 25, 2018.

  1. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    116
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    The issue is present on cron and manual run

    Code:
    Cpanel::Exception::IO::RenameError/(XID e6d4f2) El sistema no pudo renombrar “/root/.cpanel/datastore/Cpanel::MysqlRun::running.tmp.7091406.62268469” como “/root/.cpanel/datastore/Cpanel::MysqlRun::running” debido a un error: Is a directory.
    The system failed to rename “/root/.cpanel/datastore/Cpanel::MysqlRun::running.tmp.7091406.62268469” to “/root/.cpanel/datastore/Cpanel::MysqlRun::running” because of an error: Is a directory
     at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 336.
       Cpanel::Exception::create("IO::RenameError", ARRAY(0x1917ef0)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46
       Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, ARRAY(0x1917ef0)) called at /usr/local/cpanel/Cpanel/Autodie/File.pm line 35
       Cpanel::Autodie::File::rename("/root/.cpanel/datastore/Cpanel::MysqlRun::running.tmp.7091406"..., "/root/.cpanel/datastore/Cpanel::MysqlRun::running") called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 136
       Cpanel::FileUtils::Write::_write_to_tmpfile(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 384, CODE(0xfcd5f8)) called at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 65
       Cpanel::FileUtils::Write::eek:verwrite(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, 384) called at /usr/local/cpanel/Cpanel/MysqlRun.pm line 66
       Cpanel::MysqlRun::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 99
       eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 90
       Try::Tiny::try(CODE(0xf7f658), Try::Tiny::Catch=REF(0x1917428)) called at /usr/local/cpanel/Cpanel/MysqlRun.pm line 74
       Cpanel::MysqlRun::running(Cpanel::Mysql=HASH(0x18ede58)) called at bin/update_db_cache.pl line 256
       Script::Update::DB::Cache::update_mysql_status(HASH(0xfec138)) called at bin/update_db_cache.pl line 49
       Script::Update::DB::Cache::script("Script::Update::DB::Cache") called at bin/update_db_cache.pl line 35
    Here is the subject of email that I received:
    Cron <root@host> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

    Any idea?
    Tks,
     
    #1 urgido, Apr 25, 2018
    Last edited by a moderator: Apr 25, 2018
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,768
    Likes Received:
    79
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    The system failed to rename “/root/.cpanel/datastore/Cpanel::MysqlRun::running.tmp.7091406.62268469” to “/root/.cpanel/datastore/Cpanel::MysqlRun::running” because of an error: Is a directory
    -> This error is the starting point of investigation. Can check what is there at the location in the above-mentioned directory paths?
     
  3. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    You may need to move the cached entry at /root/.cpanel/datastore/Cpanel::MysqlRun::running to /root/.cpanel/datastore/Cpanel::MysqlRun::running.bk or elsewhere and try running the cron again to determine if it's successful. These are cached entries and should not cause further issues to move.
     
  4. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    116
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    root@host [~/.cpanel/datastore/Cpanel::MysqlRun::running]# ls
    ./ ../
    root@host [~/.cpanel/datastore/Cpanel::MysqlRun::running]#


     
  5. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    116
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    You mean mv /.cpanel/datastore/Cpanel::MysqlRun::running /.cpanel/datastore/Cpanel::MysqlRun::running.bk ?
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    I would suggest moving/renaming the entirety of /root/.cpanel/datastore/Cpanel::MysqlRun::running - this shouldn't be a directory and it's being reflected as such which is causing your issue
     
  7. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    116
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Solved, thanks!
     
  8. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @urgido

    I'm glad to hear that, thank you for updating the thread!
     
Loading...

Share This Page