SOLVED Error email from cronjob

urgido

Well-Known Member
Jul 19, 2005
129
10
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 <[email protected]> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

Any idea?
Tks,
 
Last edited by a moderator:

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
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?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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.
 

urgido

Well-Known Member
Jul 19, 2005
129
10
168
cPanel Access Level
Root Administrator
[email protected] [~/.cpanel/datastore/Cpanel::MysqlRun::running]# ls
./ ../
[email protected] [~/.cpanel/datastore/Cpanel::MysqlRun::running]#


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?
 

urgido

Well-Known Member
Jul 19, 2005
129
10
168
cPanel Access Level
Root Administrator
Hello,


You may need to move the cached entry at /root/.cpanel/datastore/Cpanel::MysqlRun to /root/.cpanel/datastore/Cpanel::MysqlRun.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.
You mean mv /.cpanel/datastore/Cpanel::MysqlRun::running /.cpanel/datastore/Cpanel::MysqlRun::running.bk ?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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