these are the logs after adding path.repo and restarted
[2020-04-06T08:43:11,509][ERROR][o.e.b.Bootstrap ] [elastic7] Exception
java.lang.IllegalStateException: Unable to access 'path.repo' (/root/my_backup)
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:314) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:253) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.configure(Security.java:122) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:206) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) [elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) [elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) [elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) [elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) [elasticsearch-7.1.1.jar:7.1.1]
Caused by: java.nio.file.AccessDeniedException: /root/my_backup
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) ~[?:?]
at java.nio.file.Files.createDirectory(Files.java:692) ~[?:?]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:799) ~[?:?]
at java.nio.file.Files.createDirectories(Files.java:785) ~[?:?]
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:401) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:68) ~[elasticsearch-7.1.1.jar:7.1.1]
... 12 more
[2020-04-06T08:43:11,524][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [elastic7] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: Unable to access 'path.repo' (/root/my_backup)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:163) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-7.1.1.jar:7.1.1]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-7.1.1.jar:7.1.1]
Caused by: java.lang.IllegalStateException: Unable to access 'path.repo' (/root/my_backup)
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:70) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:314) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:253) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.configure(Security.java:122) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:206) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.1.1.jar:7.1.1]
... 6 more
Caused by: java.nio.file.AccessDeniedException: /root/my_backup
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) ~[?:?]
at java.nio.file.Files.createDirectory(Files.java:692) ~[?:?]
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:799) ~[?:?]
at java.nio.file.Files.createDirectories(Files.java:785) ~[?:?]
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:401) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.FilePermissionUtils.addDirectoryPath(FilePermissionUtils.java:68) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:314) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:253) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Security.configure(Security.java:122) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:206) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:325) ~[elasticsearch-7.1.1.jar:7.1.1]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159) ~[elasticsearch-7.1.1.jar:7.1.1]
... 6 more
[2020-04-06T08:43:37,806][INFO ][o.e.e.NodeEnvironment ] [elastic7] using [1] data paths, mounts [[/ (/dev/vda1)]], net usable_space [144.6gb], net total_space [154.8gb], types [ext4]
[2020-04-06T08:43:37,811][INFO ][o.e.e.NodeEnvironment ] [elastic7] heap size [990.7mb], compressed ordinary object pointers [true]
[2020-04-06T08:43:37,879][INFO ][o.e.n.Node ] [elastic7] node name [elastic7], node ID [3eScVBuNT5K0fveQzu-YEA], cluster name [elasticsearch]
[2020-04-06T08:43:37,880][INFO ][o.e.n.Node ] [elastic7] version[7.1.1], pid[8847], build[default/deb/7a013de/2019-05-23T14:04:00.380842Z], OS[Linux/4.15.0-72-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/12.0.1/12.0.1+12]
[2020-04-06T08:43:37,881][INFO ][o.e.n.Node ] [elastic7] JVM home [/usr/share/elasticsearch/jdk]
[2020-04-06T08:43:37,881][INFO ][o.e.n.Node ] [elastic7] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-17675785612206672785, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Dio.netty.allocator.type=unpooled, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=deb, -Des.bundled_jdk=true]
[2020-04-06T08:43:39,775][INFO ][o.e.p.PluginsService ] [elastic7] loaded module [aggs-matrix-stats]