SOLVED cpanel_dovecot_solr_maintenance

Nirjonadda

Well-Known Member
May 8, 2013
752
28
78
cPanel Access Level
Root Administrator
Why i am getting email from Cron <[email protected]> /usr/bin/test -e /etc/cpanel-dovecot-solrdisable || /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_maintenance ? Please let me know this fix.

Code:
Cpanel::Exception::HTTP::Server/(XID jkbkyb) The response to the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request from “http://%SOLR_USER%:[email protected]:8984/solr/dovecot/update?optimize=true” indicated an error (401, Unauthorized): <html>
<head>
<meta http-equiv=…
at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
    Cpanel::Exception::create("HTTP::Server", HASH(0x268ee38)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46
    Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, HASH(0x268ee38)) called at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 118
    Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1d60b68), "GET", "http://%SOLR_USER%:__CPANEL_URLPW_HIDDEN__\@127.0.0.1:8984/solr/dovecot/up"..., HASH(0x2435b80)) called at (eval 5) line 6
    HTTP::Tiny::get(Cpanel::HTTP::Client=HASH(0x1d60b68), "http://%SOLR_USER%:__CPANEL_URLPW_HIDDEN__\@127.0.0.1:8984/solr/dovecot/up"...) called at /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_maintenance line 54
    scripts::cpanel_dovecot_solr_maintenance::run("scripts::cpanel_dovecot_solr_maintenance") called at /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_maintenance line 38
 
  • Like
Reactions: daudi250

daudi250

Member
Aug 22, 2017
6
1
3
Australia
cPanel Access Level
Root Administrator
The system failed to send an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> “GET” request to because of an error: Could not connect to '127.0.0.1:8984': Connection timed out at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330. Cpanel::Exception::create("HTTP::Network", HASH(0x2115408)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46 Cpanel::Exception::__ANON__(__CPANEL_HIDDEN__, HASH(0x2115408)) called at /usr/local/cpanel/Cpanel/HTTP/Client.pm line 102 Cpanel::HTTP::Client::request(Cpanel::HTTP::Client=HASH(0x1d5abc8), "GET", HASH(0x2681ac8)) called at (eval 5) line 6 HTTP::Tiny::get(Cpanel::HTTP::Client=HASH(0x1d5abc8), called at /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_commit line 55


I am also seeing something similar.

Following this question
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463

Nirjonadda

Well-Known Member
May 8, 2013
752
28
78
cPanel Access Level
Root Administrator
Hello,

Please post the output from the following command:

Code:
cat /etc/dovecot/fts.conf
Thank you.
OK, I have added the output from the following command.


Code:
[[email protected] ~]# cat /etc/dovecot/fts.conf

plugin {
  fts = solr
  fts_solr = url=http://%SOLR_USER%:%SOLR_PASS%@127.0.0.1:8984/solr/dovecot/
}
[[email protected] ~]#
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

It looks like the contents of that file are correct. Do you continue to receive the error message referenced in your original post?

Thank you.
 

Nirjonadda

Well-Known Member
May 8, 2013
752
28
78
cPanel Access Level
Root Administrator
Hello,

It looks like the contents of that file are correct. Do you continue to receive the error message referenced in your original post?

Thank you.

This email come when I do restart VPS server. Now do I reboot my VPS then this email found in my INBOX.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

To update, here's a quote from Technical Support Department's response to the opened ticket:

This issue was occurring because the credentials that cPanel was using to login to 'cpanel_dovecot_solr' were out of sync. In order to resolve this issue, I went ahead and restarted the service:

# /sbin/service cpanel-dovecot-solr stop;su cpanelsolr -c "/usr/local/cpanel/scripts/ckillall -TERM java";sleep 5;su cpanelsolr -c "/usr/local/cpanel/scripts/ckillall -KILL java";/usr/local/cpanel/3rdparty/scripts/setup_cpanel_dovecot_fts;/sbin/service cpanel-dovecot-solr start

After doing this, I was able to verify that I was able to manually run the 'cpanel_dovecot_solr' script without any further issues:

# /usr/local/cpanel/3rdparty/scripts/cpanel_dovecot_solr_maintenance
#
Thank you.