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.

cpanel_dovecot_solr_commit: No such file or directory

Discussion in 'General Discussion' started by Buzz50, Apr 14, 2017.

Tags:
  1. Buzz50

    Buzz50 Member

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

    Cron <root@server> /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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. John DePasquale

    John DePasquale Registered

    Joined:
    Apr 15, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello John,

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

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

    Michael34 Member

    Joined:
    Apr 18, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    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:

    root@hidden [~]# 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

    root@hidden [~]# 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*
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  7. Michael34

    Michael34 Member

    Joined:
    Apr 18, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    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.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  9. GW816

    GW816 Registered

    Joined:
    Jul 4, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Was there a resolution to this as I am getting the same issue?
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you confirm the specific issue and error message you are encountering?

    Thank you.
     
Loading...

Share This Page