Error Updating dbindex cache in server

  • Answered
I get an error when updating the dbindex cache (as in one mail you suggested to me) as follows:
[email protected] [~]# usr/local/cpanel/bin/dbindex
-bash: usr/local/cpanel/bin/dbindex: No existe el fichero o el directorio
[email protected] [~]# /usr/local/cpanel/bin/dbindex
Error: /var/cpanel/databases/dbindex.db.json, No existe el fichero o el directorio
The system failed to lock the file “/var/cpanel/databases/dbindex.db.json” because of an error: Permiso denegado at /usr/local/cpanel/Cpanel/Transaction/File/ line 101.
Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::JSON", "path", "/var/cpanel/databases/dbindex.db.json") called at /usr/local/cpanel/bin/dbindex line 43
bin::dbindex::run() called at /usr/local/cpanel/bin/dbindex line 34
Hello, Thank you for contacting us about an error updating dbindex cache on your server. These emails are sent from cPanel directly, not from InMotion Hosting. I recommend trying to run this as root, which should have access to the files. Let us know if you have any further questions. Thank you, John-Paul