Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsyncd Terminating since "insist" is not set #632

Open
JmarkOrfali opened this issue Mar 25, 2021 · 1 comment
Open

lsyncd Terminating since "insist" is not set #632

JmarkOrfali opened this issue Mar 25, 2021 · 1 comment

Comments

@JmarkOrfali
Copy link

JmarkOrfali commented Mar 25, 2021

Hello,

I installed Lsyncd version 2.2.2 to do the syncronization between two Centos 7 servers. When I start it everything works fine and the files synchronize as desired. But after three minutes he stops. The connection is made with an ssh key. Here is what I have in the Logs:

Wed Mar 24 23:41:46 2021 Normal: --- Startup --- Wed Mar 24 23:43:14 2021 Normal: recursive startup rsync: /home/ -> root@10.1.0.1:/home/ Wed Mar 24 23:43:14 2021 Normal: recursive startup rsync: /var/cpanel/datastore/ -> 10.1.0.1:/var/cpanel/datastore/ Wed Mar 24 23:43:14 2021 Normal: recursive startup rsync: /var/cpanel/databases/ -> 10.1.0.1:/var/cpanel/databases/ Wed Mar 24 23:43:15 2021 Normal: Startup of /var/cpanel/datastore/ -> 10.1.0.1:/var/cpanel/datastore/ finished. Wed Mar 24 23:43:15 2021 Normal: Startup of /var/cpanel/databases/ -> 10.1.0.1:/var/cpanel/databases/ finished. Wed Mar 24 23:44:24 2021 Error: Temporary or permanent failure on startup of /home/ -> root@10.1.0.1:/home/. Terminating since "insist" is not set.
Here is my configuration file:

`settings{
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd.stat",
statusInterval = 2,
}
-- Home
sync{
default.rsync,
source="/home",
target="root@10.1.0.1:/home",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}

sync{
default.rsync,
source="/var/cpanel/datastore",
target="10.1.0.1:/var/cpanel/datastore",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}

sync{
default.rsync,
source="/var/cpanel/databases",
target="10.1.0.1:/var/cpanel/databases",
delay = 1,
rsync={
compress = true,
verbose = true,
update = true,
perms = true,
owner = true,
group = true,
rsh ="/usr/bin/ssh -p 42 -l root -i /root/.ssh/id_rsa",
}
}`

thank you very much

@cobbjb
Copy link

cobbjb commented May 3, 2021

This is generally caused by the SSH key not being accepted on the local host for the remote host. Try establishing an SSH connection from the source to target and accepting the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@cobbjb @JmarkOrfali and others