manticoresoftware/manticoresearch-backup

handle max_connections better

Closed this issue · 2 comments

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.

Implemented in this pull request: #97

Fixed the error message here: #99

Closing the issue