manticoresoftware / manticoresearch-backup

Repository for Manticore Search backup scripts
GNU General Public License v3.0
3 stars 1 forks source link

handle max_connections better #94

Closed sanikolaev closed 8 months ago

sanikolaev commented 9 months ago
sudo manticore-backup --config=conf --backup-dir=/path/to/search/idx.backup
Copyright (c) 2023, Manticore Software LTD (https://manticoresearch.com/)

Manticore config file: /home/user/conf
Tables to backup: all tables
Backup dir: /path/to/search/idx.backup

Manticore config
  endpoint =  http://127.0.0.1:3556/
2023-11-27 17:13:19 [Error] Failed to send query to the manticoresearch daemon. Make sure it's listening for HTTP or HTTPS connections (with proper certificates).

In this case it failed, because of max_connections set for the instance. Let' detect it by parsing the config and improve the error like this:

2023-11-27 17:13:19 [Error] Failed to send query to the Manticore Search daemon. Ensure that it is set up to listen for HTTP or HTTPS connections and has the appropriate certificates in place. Additionally, check the 'max_connections' setting in the configuration file to ensure that it has not been exceeded.
donhardman commented 9 months ago

Implemented in this pull request: https://github.com/manticoresoftware/manticoresearch-backup/pull/97

donhardman commented 8 months ago

Fixed the error message here: https://github.com/manticoresoftware/manticoresearch-backup/pull/99

Closing the issue