Elasticsearch 5.1.1 cannot run as root user

If you're seeing this it's because the user that you're trying to run as does not have file permissions to view the config file. You either need to change the permissions or the ownership so that the non-root user that you're trying to run as can view this file (and the jvm.option file which relates to the other error message that you're seeing).

You can not run as the root user in >= 5.0.0. In >= 2.0.0 and < 5.0.0 you could run as the root user but only with a special system property.

1 Like