Skip to content

can't restore when another searchd is running #63

@sanikolaev

Description

@sanikolaev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions