The service "cpanel-dovecot-solr" appears to be down

من ويكي مسار
Cpanel Server which running Apache solr normally but sudenly suddenly gives an alter that says:
cpanel-dovecot-solr
Service Status
failed :no_entry:
Notification
The service “cpanel-dovecot-solr” appears to be down.
Service Check Method
The system’s command to check or to restart this service failed.

and when we check the file /var/log/messages using command `cat /var/log/messages | grep solr` we can see the following error:

Jul  1 11:36:49 ServerName cpanel_dovecot_solr_firewall[3474786]: flush chain inet filter cpanel-dovecot-solr
Jul  1 11:36:49 ServerName  cpanel_dovecot_solr_firewall[3474786]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jul  1 11:36:49 ServerName  cpanel_dovecot_solr_firewall[3474786]: : The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/NFTables.pm line 79.
Jul  1 11:36:49 ServerName  systemd[1]: cpanel-dovecot-solr.service: Control process exited, code=exited status=1
Jul  1 11:36:49 ServerName  systemd[1]: cpanel-dovecot-solr.service: Failed with result 'exit-code'.

and IF we try to restart using /scripts/restartsrv_cpanel_dovecot_solr we got error.!!

After few investigation we found that it is a cpanel problem:

cPanel's Dovecot Solr service will update during cPanel nightly updates. During a recent update, a conflict occurred in the NFT tables rules in AlmaLinux and possibly CloudLinux 8 servers. Due to the conflict, the update cannot cleanly start Dovecot Solr because the required firewall ( NFT tables ) rules are failing to be cleared/added.

Cpanel Says:

We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-43012.

To fix this use the following command: (Please note that if you are using the ConfigServer Software Firewall, you must restart their service instead of NFTABLES.)
systemctl restart nftables; /scripts/restartsrv_cpanel_dovecot_solr
Please note that if you are using the ConfigServer Software Firewall, you must restart their service instead of NFTABLES. so you can run
csf -r; /scripts/restartsrv_cpanel_dovecot_solr

To take a look into more of this problem see https://support.cpanel.net/hc/en-us/articles/15600178953623