java.io.FileNotFoundException: /opt/elasticsearch/logs/elasticsearch.log (Permission denied)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

try new webdriver if you have this error with firefox while uploading files

Solutions on the web

via Google Groups by Pasquale Iodice, 1 year ago
/opt/elasticsearch/logs/elasticsearch.log (Permission denied)
via Google Groups by Ralee Cook, 2 years ago
/opt/elasticsearch/logs/elasticsearch.log (Permission denied)
via Google Groups by Pasquale Iodice, 2 years ago
/opt/elasticsearch/logs/elasticsearch.log (Permission denied)
via GitHub by rdpanek
, 2 years ago
/data/elasticsearch.log (Permission denied)
via GitHub by rawlingsj
, 2 years ago
/data/log/elasticsearch.log (No such file or directory)
via Stack Overflow by userlkjsflkdsvm
, 11 months ago
java.io.FileNotFoundException: /opt/elasticsearch/logs/elasticsearch.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:221)
at java.io.FileOutputStream.(FileOutputStream.java:142)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:440)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:105)
at org.elasticsearch.bootstrap.Bootstrap.setupLogging(Bootstrap.java:94)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:178)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 1 year ago
Once, 7 months ago
4 times, 1 year ago
Once, 7 months ago
166 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.