Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to Permission denied

I just learned about elasticsearch, and I was confused how to overcome the problems that I am currently experiencing. may I ask for help:menangis::berdoa:

Welcome!

A quick suggestion is to not post pictures of text, they are difficult to read and some people may not be even able to see them :slight_smile:

Can you copy and paste the text directly? Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

Okey thank you😊

Pada tanggal Sen, 22 Apr 2019 09:14, Mark Walkom via Discuss the Elastic Stack elastic@discoursemail.com menulis:

Microsoft Windows [Version 10.0.17134.523]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\ASUS>cd C:\Program Files\Elastic\Elasticsearch\7.0.0\bin

C:\Program Files\Elastic\Elasticsearch\7.0.0\bin>elasticsearch
[2019-04-22T11:06:12,909][INFO ][o.e.e.NodeEnvironment    ] [LAPTOP-IH21NM4U] using [1] data paths, mounts [[OS (C:)]], net usable_space [172.2gb], net total_space [235.6gb], types [NTFS]
[2019-04-22T11:06:13,018][INFO ][o.e.e.NodeEnvironment    ] [LAPTOP-IH21NM4U] heap size [1.8gb], compressed ordinary object pointers [true]
[2019-04-22T11:06:14,370][INFO ][o.e.n.Node               ] [LAPTOP-IH21NM4U] node name [LAPTOP-IH21NM4U], node ID [P7otjqXgTIOrUiCuCr1xJg]
[2019-04-22T11:06:14,371][INFO ][o.e.n.Node               ] [LAPTOP-IH21NM4U] version[7.0.0], pid[12272], build[unknown/unknown/b7e28a7/2019-04-05T22:55:32.697037Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_201/25.201-b09]
[2019-04-22T11:06:14,371][INFO ][o.e.n.Node               ] [LAPTOP-IH21NM4U] JVM home [C:\Program Files\Java\jdk1.8.0_201\jre]
[2019-04-22T11:06:14,372][INFO ][o.e.n.Node               ] [LAPTOP-IH21NM4U] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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=C:\Users\ASUS\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Xmx1959m, -Xms1959m, -Dio.netty.allocator.type=pooled, -Delasticsearch, -Des.path.home=C:\Program Files\Elastic\Elasticsearch\7.0.0, -Des.path.conf=C:\ProgramData\Elastic\Elasticsearch\config]
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to Permission denied

[2019-04-22T11:07:21,466][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [aggs-matrix-stats]
[2019-04-22T11:07:21,467][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [analysis-common]
[2019-04-22T11:07:21,467][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [ingest-common]
[2019-04-22T11:07:21,469][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [ingest-geoip]
[2019-04-22T11:07:21,469][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [ingest-user-agent]
[2019-04-22T11:07:21,469][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [lang-expression]
[2019-04-22T11:07:21,470][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [lang-mustache]
[2019-04-22T11:07:21,470][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [lang-painless]
[2019-04-22T11:07:21,471][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [mapper-extras]
[2019-04-22T11:07:21,472][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [parent-join]
[2019-04-22T11:07:21,472][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [percolator]
[2019-04-22T11:07:21,473][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [rank-eval]
[2019-04-22T11:07:21,473][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [reindex]
[2019-04-22T11:07:21,474][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [repository-url]
[2019-04-22T11:07:21,474][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [transport-netty4]
[2019-04-22T11:07:21,475][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-ccr]
[2019-04-22T11:07:21,477][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-core]
[2019-04-22T11:07:21,477][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-deprecation]
[2019-04-22T11:07:21,477][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-graph]
[2019-04-22T11:07:21,478][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-ilm]
[2019-04-22T11:07:21,478][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-logstash]
[2019-04-22T11:07:21,478][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-ml]
[2019-04-22T11:07:21,479][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-monitoring]
[2019-04-22T11:07:21,479][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-rollup]
[2019-04-22T11:07:21,479][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-security]
[2019-04-22T11:07:21,480][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-sql]
[2019-04-22T11:07:21,480][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] loaded module [x-pack-watcher]
[2019-04-22T11:07:21,484][INFO ][o.e.p.PluginsService     ] [LAPTOP-IH21NM4U] no plugins loaded

can help me?
what is the solution?

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