manticoresoftware / manticoresoftware/manticoresearch-backup
can't restore when another searchd is running
- Dominant language
- PHP
- Stars
- 6
- Forks
- 1
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 2
Description
I can't restore an instance when another searchd instance is running:
```
root@perf ~/repl/1 # cat manticore1.conf
searchd {
listen = 127.0.0.1:20308:http
listen = 127.0.0.1:20201
listen = 127.0.0.1:20301:mysql
log = searchd.log
query_log = query.log
pid_file = searchd.pid
data_dir = /root/repl/1/data
binlog_path =
}
root@perf ~/repl/1 # manticore-backup --config=/root/repl/1/manticore1.conf --backup-dir=/root/repl/1/backup --restore=backup-20230328051059
Copyright (c) 2023, Manticore Software LTD (https://manticoresearch.com)
Manticore config file: /root/repl/1/manticore1.conf
Backup dir: /root/repl/1/backup
2023-03-28 05:17:13 [Info] Starting to restore...
2023-03-28 05:17:13 [Error] Cannot initiate the restore process due to searchd daemon is running.
root@perf ~/repl/1 # ps aux|grep searchd
mantico+ 1124 0.0 0.0 56724 4684 ? S 06:21 0:00 /usr/bin/searchd --config /etc/manticoresearch/manticore.conf
mantico+ 1125 1.3 2.4 2624628 1622844 ? Sl 06:21 0:43 /usr/bin/searchd --config /etc/manticoresearch/manticore.conf
root 7431 0.0 0.0 56368 4452 ? S 07:08 0:00 searchd -c manticore3.conf
root 7432 1.3 0.0 1435124 47816 ? Sl 07:08 0:07 searchd -c manticore3.conf
root 7933 0.0 0.0 14692 1112 pts/49 S+ 07:17 0:00 grep --color=auto searchd
```
As you can see the instance I'm trying to restore is not running. If only I stop the other 2, will manticore-backup be able to restore.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the restore with manticore-backup using the provided configuration while other searchd processes run, then compare the daemon and PID detection behavior. Confirm whether restore succeeds when unrelated searchd instances remain active; done means the target instance can be restored without requiring unrelated daemons to stop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100