cpanel_dovecot_solr_commit: No such file or directory

Buzz50

Member
Apr 23, 2012
9
0
51
cPanel Access Level
Website Owner
Since an update yesterday I am getting emails every few minutes with the Subject of:

Cron <[email protected]> /usr/bin/test -e /etc/cpanel-dovecot-solrdisable || /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit

and the message content of:

/bin/sh: /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit: No such file or directory

Any ideas of what I should do?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
/bin/sh: /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit: No such file or directory
Hello @Buzz50,

The "/usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit" file should exist on the system, even after disabling the cpanel-dovecot-solr service via "WHM >> Service Manager". Did you manually remove this file from the system? If so, try running the following command to ensure this file exists:

Code:
yum clean all ; yum reinstall cpanel-dovecot-solr
Thank you.
 

John DePasquale

Registered
Apr 15, 2017
1
0
1
Virginia
cPanel Access Level
Root Administrator
I'm getting the exact same error after the update on one of my servers. I ran the code suggested and got:
Package(s) cpanel-dovecot-solr available, but not installed.
Error: Nothing to do

Two other servers updated without a problem.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Package(s) cpanel-dovecot-solr available, but not installed.
Hello John,

Please post the output from the following command on the affected system:

Code:
grep exclude /etc/yum.conf
Thank you.
 

Michael34

Member
Apr 18, 2005
13
0
151
California
cPanel Access Level
Root Administrator
Hi Michael,
I am having the same issue, except the thing is emailing me every 10 minutes that /bin/sh: /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit: No such file or directory. This all started after I updated and rebooted the server. Here are my results:

[email protected] [~]# yum clean all ; yum reinstall cpanel-dovecot-solr
Loaded plugins: fastestmirror, security
Cleaning repos: cpanel-addons-production-feed MariaDB100 base cpanel-plugins
: extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror, security
Setting up Reinstall Process
No Match for argument: cpanel-dovecot-solr
Determining fastest mirrors
* cpanel-addons-production-feed: 208.43.108.66
* base: ftpmirror.your.org
* extras: mirror.5ninesolutions.com
* updates: mirrors.advancedhosters.com
cpanel-addons-production-feed | 2.9 kB 00:00 ...
cpanel-addons-production-feed/primary_db | 4.8 kB 00:00
MariaDB100 | 2.9 kB 00:00
MariaDB100/primary_db | 22 kB 00:00
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:00
cpanel-plugins | 2.9 kB 00:00 ...
cpanel-plugins/primary_db | 33 kB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 37 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 803 kB 00:00
Package(s) cpanel-dovecot-solr available, but not installed.
Error: Nothing to do

[email protected] [~]# grep exclude /etc/yum.conf
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* p0f perl* php* proftpd* pure-ftpd* spamassassin* squirrelmail*
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

Try enabling the Solr plugin again via:

"WHM Home » cPanel » Manage Plugins"

This should install the updated RPM, which includes a resolution to address an issue where cron scripts were not disabled when the service was disabled in "WHM >> Service Manager". You should see output like this after the plugin installation completes:

Code:
# rpm -q cpanel-dovecot-solr --changelog|grep cron
- Disable cron scripts when the service is disabled in service manager
Additionally, you should see the cron job for the service looks like this:

Code:
# cat /etc/cron.d/cpanel-dovecot-solr
21   3 * * * root /usr/bin/test -e /etc/cpanel-dovecot-solrdisable || /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_maintenance
*/10 * * * * root /usr/bin/test -e /etc/cpanel-dovecot-solrdisable || /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit
Then, if you prefer to disable the service, unselect it via "WHM >> Service Manager" under "Additional Services". Upon doing so, the /etc/cpanel-dovecot-solrdisable file should exist on your system:

Code:
# ls -al /etc/cpanel-dovecot-solrdisable
-rw-r--r-- 1 root root 0 Apr 26 08:37 /etc/cpanel-dovecot-solrdisable
At this point, the cron job will detect that Solr is disabled and you should no longer see failed notifications related the cron job for this service.

Thank you.
 

Michael34

Member
Apr 18, 2005
13
0
151
California
cPanel Access Level
Root Administrator
I wish I could say it worked, but I am still getting the same email's 2 of them per hour, Any additional idea's? This stuff is is causing my monitor software to send alerts when nothing is wrong.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
I wish I could say it worked, but I am still getting the same email's 2 of them per hour, Any additional idea's? This stuff is is causing my monitor software to send alerts when nothing is wrong.
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look at the affected system? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
New Was there a resolution to this as I am getting the same issue?
Could you confirm the specific issue and error message you are encountering?

Thank you.