I have configured path.repo = ["/tata"] in elasticsearch.yml of both master and child node. My snapshot query looks like this.
PUT /_snapshot/my_backup
{
"type": "fs",
"settings": {
"location": "/tata"
}
}
But when I register a folder for a snapshot. I get the error.
{
"error": {
"root_cause": [
{
"type": "repository_verification_exception",
"reason": "[my_backup] [[uo89wL8tTwyUDb89LUZxxg, 'RemoteTransportException[[node-1][100.97.22.29:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] store location [/tata] is not accessible on the node [{node-1}{uo89wL8tTwyUDb89LUZxxg}{PtpAn9Q4QWCqHp2_VXQaGQ}{100.97.22.29}{100.97.22.29:9300}{ml.machine_memory=16692609024, xpack.installed=true, ml.max_open_jobs=20}]]; nested: AccessDeniedException[/tata/tests-Msfm88cJQVuyLlYvoPw6aA/data-uo89wL8tTwyUDb89LUZxxg.dat];']]"
}
],
"type": "repository_verification_exception",
"reason": "[my_backup] [[uo89wL8tTwyUDb89LUZxxg, 'RemoteTransportException[[node-1][100.97.22.29:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[my_backup] store location [/tata] is not accessible on the node [{node-1}{uo89wL8tTwyUDb89LUZxxg}{PtpAn9Q4QWCqHp2_VXQaGQ}{100.97.22.29}{100.97.22.29:9300}{ml.machine_memory=16692609024, xpack.installed=true, ml.max_open_jobs=20}]]; nested: AccessDeniedException[/tata/tests-Msfm88cJQVuyLlYvoPw6aA/data-uo89wL8tTwyUDb89LUZxxg.dat];']]"
},
"status": 500
}
Th output of mount is given below
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=8135104k,nr_inodes=2033776,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio,net_cls)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/mapper/vg_root-lv_root on / type ext4 (rw,relatime,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12559)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda1 on /boot type ext4 (rw,relatime,data=ordered)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1630140k,mode=700,uid=1000,gid=1000)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1630140k,mode=700)
tmpfs on /run/user/1007 type tmpfs (rw,nosuid,nodev,relatime,size=1630140k,mode=700,uid=1007,gid=1008)
tmpfs on /run/user/1003 type tmpfs (rw,nosuid,nodev,relatime,size=1630140k,mode=700,uid=1003,gid=1004)
100.97.22.28:/tata on /tata type nfs4 (rw,relatime,vers=4.1,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=100.97.22.29,local_lock=none,addr=100.97.22.28)
I have mounted the tata folder in the nodes (Total no of nodes=2) as an nfs mount.
I have referred to thislink
I found the explanation confusing.
So, What can be the reason for this error
So how can I correct this error?