I can successfully copy the
css
folder, yet cannot copy the newsimages
folder.
The lsyncd
service keeps stopping.
* If lsyncd
is pointed at the /pool/www/yiiazertag/azertag/css/
folder, it works fine.
-session
root@main2:/ # service lsyncd status
lsyncd is running as pid 2044.
The log file reports:
Wed Nov 6 13:27:11 2019 Normal: --- Startup, daemonizing ---
Wed Nov 6 13:27:11 2019 Normal: --- Startup ---
Wed Nov 6 13:27:11 2019 Normal: recursive startup rsync: /pool/www/yiiazertag/azertag/css/ -> root@10.0.0.55:/pool/www/yiiazertag/azertag/css/
sending incremental file list
sent 1,697 bytes received 15 bytes 3,424.00 bytes/sec
total size is 974,876 speedup is 569.44
Wed Nov 6 13:27:11 2019 Normal: Startup of /pool/www/yiiazertag/azertag/css/ -> root@10.0.0.55:/pool/www/yiiazertag/azertag/css/ finished.
* However, if lsyncd
is supposed to work with /pool/www/yiiazertag/azertag/newsimages/
, it does not work any more:
-session
root@main2:/ # service lsyncd status
lsyncd is not running.
Log file:
Wed Nov 6 15:01:38 2019 Normal: --- Startup, daemonizing ---
Wed Nov 6 15:01:38 2019 Normal: --- Startup ---
* For reference,
the configuration file /usr/local/etc/lsyncd.conf
is:
settings {
logfile = "/var/log/lsyncd.log",
statusFile = "/var/log/lsyncd.status",
statusInterval = 1,
maxProcesses = 1,
insist = 1,
}
sync{
default.rsync,
delay = 0,
source = "/pool/www/yiiazertag/azertag/newsimages/",
target = "root@10.0.0.55:/pool/www/yiiazertag/azertag/newsimages/",
rsync = {
archive = true,
compress = true,
acls = true,
verbose = true,
owner = true,
group = true,
perms = true,
temp_dir="/tmp/",
-- binary = "/usr/local/bin/rsync",
-- sparse = true,
-- update = true,
-- protect_args = false,
-- whole_file = false,
-- links = true,
_extra = { "--omit-dir-times" },
rsh = "ssh -p 44400 -o StrictHostKeyChecking=no",
-- rsync_path = "/usr/local/bin/sudo /usr/local/bin/rsync"
},
delete = true
}
The file limits should not pose a problem:
| sysctl
| value |
|:---------------------- | --------:|
| kern.maxfiles
| 500000
|
| kern.maxfilesperproc
| 490000
|
| kern.openfiles
| 274
|
Asked by Alekperov
(11 rep)
Nov 6, 2019, 12:35 PM
Last activity: Sep 7, 2024, 05:35 AM
Last activity: Sep 7, 2024, 05:35 AM