When Removing default path settings elasticsearch fails starting

Hello,
I want to upgrade my 5.6.5 ES cluster to v6.2 using the Upgrade Assistant and i get an error that states

   Default path settings are removed
    This issue must be resolved to upgrade. Read Documentation

but i already have path.data and path.logs set in my elasticsearch.yml file :

  path.data: /var/lib/elasticsearch
    path.logs: /var/log/elasticsearch 

So i try to remove default path settings in /usr/lib/systemd/system/elasticsearch.service:

-Edefault.path.logs=${LOG_DIR}
-Edefault.path.data=${DATA_DIR} \

but after that when i try to start ES using systemctl it fails whit the following error and no logs written:

    Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
    Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
            at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
            at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
            at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
            at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
            at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
            at java.nio.file.Files.readAttributes(Files.java:1737)
            at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
            at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
            at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
            at java.nio.file.Files.walkFileTree(Files.java:2662)
            at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:100)
            at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:83)
            at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:299)
            at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121)
            at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112)
            at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
            at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
            at org.elasticsearch.cli.Command.main(Command.java:88)
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89)
            at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82)
Refer to the log for complete error details.

Can you help please !

Hello guys,
Any idea how to resolve this error ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.