Error email from cronjob
The issue is present on cron and manual run
Here is the subject of email that I received: Cron /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache Any idea? Tks,
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 35Here is the subject of email that I received: Cron /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache Any idea? Tks,
-
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? 0 -
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. 0 -
root@host [~/.cpanel/datastore/Cpanel::MysqlRun::running]# ls ./ ../ root@host [~/.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?
0 -
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 ?0 -
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 0 -
Solved, thanks! 0 -
Hi @urgido I'm glad to hear that, thank you for updating the thread! 0
Please sign in to leave a comment.
Comments
7 comments