# Jvm.options missing while installing elasticsearch-oss

**URL:** https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158
**Category:** Elasticsearch
**Created:** [November 3, 2020, 12:54pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158 "2020-11-03T12:54:56Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Haptomai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haptomai/32/75538_2.png) [@Haptomai](https://discuss.elastic.co/u/Haptomai)
#### Post date: [November 3, 2020, 12:54pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/1 "2020-11-03T12:54:56Z")

</div>

Hi fellows,

- No docker version involved here
- Ubuntu 16.04.7 LTS
- v7.9.1
- OpenJDK 11.0.5

Yesterday I tried to switch from ELK Basic stack to OSS stack in order to use **OpenDistro**.  
I removed elasticsearch, kibana and logstash from my ubuntu install. Purged dependencies.

Then I installed **elasticsearch-oss=7.9.1** as required for OpenDistro by using wget and dpkg, and I'm now unable to start elasticsearch because of a missing file: **/etc/elasticsearch/jvm.options**

I flushed this install and tried to install again with apt repository. Same issue.

The exact error is:

```auto
Starting Elasticsearch...
Exception in thread "main" java.nio.file.NoSuchFileException: /etc/elasticsearch/jvm.options

```

Could you please guide me on how can I fix this ?

Thx,  
Mathis

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2020, 1:25pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/2 "2020-11-03T13:25:19Z")

</div>

Not sure but may be you should ask for help in this project forum?

---

<div class="post-metadata">

### Author: ![Haptomai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haptomai/32/75538_2.png) [@Haptomai](https://discuss.elastic.co/u/Haptomai)
#### Post date: [November 3, 2020, 1:50pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/3 "2020-11-03T13:50:29Z")

</div>

I don't know, I could ask on OpenDistro forum too.

The strange thing is that basic install of Elasticsearch don't need/create a jvm.options file neither on that folder, and no error is displayed.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2020, 2:38pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/4 "2020-11-03T14:38:42Z")

</div>

I have no idea. Not sure what is required to replace the standard distribution with the oss one.  
If you purged everything, I guess this should work OOTB.

May be there are some remaining files somewhere?

---

<div class="post-metadata">

### Author: ![Haptomai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haptomai/32/75538_2.png) [@Haptomai](https://discuss.elastic.co/u/Haptomai)
#### Post date: [November 3, 2020, 2:51pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/5 "2020-11-03T14:51:33Z")

</div>

I did check on /etc/elasticsearch and /usr/share/elasticsearch, not here anymore after a apt autoremove.

I have no more clue. I'll try an older version of elasticsearch-oss and let see

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2020, 3:08pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/6 "2020-11-03T15:08:49Z")

</div>

I guess you followed this guide?

> **[Install Elasticsearch with Debian Package | Elasticsearch Reference \[7.9\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html)**

Specifically:

```auto
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.9.3-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.9.3-amd64.deb.sha512
shasum -a 512 -c elasticsearch-oss-7.9.3-amd64.deb.sha512 
sudo dpkg -i elasticsearch-oss-7.9.3-amd64.deb

```

Right?

---

<div class="post-metadata">

### Author: ![Haptomai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haptomai/32/75538_2.png) [@Haptomai](https://discuss.elastic.co/u/Haptomai)
#### Post date: [November 3, 2020, 3:33pm UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/7 "2020-11-03T15:33:37Z")

</div>

Exactly, just I changed to 7.9.1 version.

I used **locate** to locate (wow) the remaining files, and deleted them, but don't think the remaining one would cause a problem.  
I'll try again.

Thx dadoonet for you investigation

---

<div class="post-metadata">

### Author: ![Haptomai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haptomai/32/75538_2.png) [@Haptomai](https://discuss.elastic.co/u/Haptomai)
#### Post date: [November 4, 2020, 8:43am UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/8 "2020-11-04T08:43:55Z")

</div>

Ok, I have great news !

I finally succeeded to start elasticsearch-oss and even Kibana too !  
I removed every file containing "elastic" in its name 😛 and installed it with deb package.

Thanks @dadoonet for you patience 👌

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 2, 2020, 8:43am UTC](https://discuss.elastic.co/t/jvm-options-missing-while-installing-elasticsearch-oss/254158/9 "2020-12-02T08:43:58Z")

</div>

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