<p dir="auto"><strong>Elasticsearch version</strong>:  5.0.0-rc1</p>
<p dir="auto"><strong>Plugins installed</strong>: none</p>
<p dir="auto"><strong>JVM version</strong>: jdk1.8.0_101</p>
<p dir="auto"><strong>OS version</strong>: Windows 2012 R2 64-bit</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
Cannot install the service.</p>
<ul dir="auto">
<li>I have the following environment variables set:
<ul dir="auto">
<li>JAVA_HOME:  C:\Program Files\Java\jdk1.8.0_101</li>
<li>ES_HEAP_SIZE: 8g</li>
</ul>
</li>
<li>I have verified that jvm.options have the following lines commented out:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="## -Xms8g
## -Xmx8g"><pre class="notranslate"><code class="notranslate">## -Xms8g
## -Xmx8g
</code></pre></div>
<p dir="auto">I run the following: <code class="notranslate">.\elasticsearch-service.bat install elasticsearch-5.0.0-rc1</code></p>
<p dir="auto">I get the following output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=8g: set -Xms8g and -Xmx8g in jvm.options or add &quot;-Xms8g -Xmx8g&quot; to ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=8g: set -Xms8g and -Xmx8g in jvm.options or add "-Xms8g -Xmx8g" to ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I delete ES_HEAP_SIZE and add ES_JAVA_OPTS: "-Xms8g and -Xmx8g" (without quotes)</p>
<p dir="auto">I run the command again and get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service      :  &quot;elasticsearch-5.0.0-rc1&quot;
Using JAVA_HOME (64-bit):  &quot;C:\Program Files\Java\jdk1.8.0_101&quot;
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Installing service      :  "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit):  "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I delete ES_JAVA_OPTS and edit jvm.options:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-Xms8g
-Xmx8g"><pre class="notranslate"><code class="notranslate">-Xms8g
-Xmx8g
</code></pre></div>
<p dir="auto">Run again and get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service      :  &quot;elasticsearch-5.0.0-rc1&quot;
Using JAVA_HOME (64-bit):  &quot;C:\Program Files\Java\jdk1.8.0_101&quot;
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Installing service      :  "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit):  "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I leave jvm.options alone and create ES_JAVA_OPTS again. Now it see duplicate settings:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service      :  &quot;elasticsearch-5.0.0-rc1&quot;
Using JAVA_HOME (64-bit):  &quot;C:\Program Files\Java\jdk1.8.0_101&quot;
duplicate min heap size settings found"><pre class="notranslate"><code class="notranslate">Installing service      :  "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit):  "C:\Program Files\Java\jdk1.8.0_101"
duplicate min heap size settings found
</code></pre></div>
<p dir="auto"><strong>Elasticsearch version</strong>: 5.0.2</p>
<p dir="auto"><strong>Plugins installed</strong>: []</p>
<p dir="auto"><strong>JVM version</strong>: 1.8</p>
<p dir="auto"><strong>OS version</strong>: Ubuntu 14.04</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
Tried to install 5.0.2 after the release of 5.1.1 and it seems to be removed from the repos.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Try to install 5.0.2 from repos</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@packer-virtualbox-iso-1461948451:~# apt-get install elasticsearch=5.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.0.2' for 'elasticsearch' was not found"><pre class="notranslate"><code class="notranslate">root@packer-virtualbox-iso-1461948451:~# apt-get install elasticsearch=5.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.0.2' for 'elasticsearch' was not found
</code></pre></div>
<p dir="auto">The repos are correct;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@packer-virtualbox-iso-1461948451:~# cat /etc/apt/sources.list.d/elasticsearch.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main"><pre class="notranslate"><code class="notranslate">root@packer-virtualbox-iso-1461948451:~# cat /etc/apt/sources.list.d/elasticsearch.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main
</code></pre></div>