Azure / Azure/azure-quickstart-templates
Deployment failure due to not finding Java download
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
[elasticsearch-vmss](https://github.com/Azure/azure-quickstart-templates/tree/master/application-workloads/elastic/elasticsearch-vmss)
### Issue Details
While installing the master node extensions, the process fail in the resource master/installelasticsearch:
```
{
"status": "Failed",
"error": {
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'installelasticsearch'. Error message: \"Enable failed: failed to execute command: command terminated with exit status=1\n[stdout]\nBegin execution of Elasticsearch script extension on master-vm2\nmaster-vm2 not found in /etc/hosts\nhostname master-vm2 added to /etc/hosts\nOption m set with value \nOption n set with value es-azure\nstarting elasticsearch setup\nInstalling Java\nRetry 0: downloading jdk-8u291-linux-x64.tar.gz\nRetry 1: downloading jdk-8u291-linux-x64.tar.gz\nRetry 2: downloading jdk-8u291-linux-x64.tar.gz\nRetry 3: downloading jdk-8u291-linux-x64.tar.gz\nRetry 4: downloading jdk-8u291-linux-x64.tar.gz\nFailed to download jdk-8u291-linux-x64.tar.gz\n\n[stderr]\n 302 Moved Temporarily\nLocation: https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz [following]\n--2021-10-22 19:25:18-- https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz\nResolving edelivery.oracle.com (edelivery.oracle.com)... 23.4.65.246, 2600:1419:c400:181::366, 2600:1419:c400:182::366\nConnecting to edelivery.oracle.com (edelivery.oracle.com)|23.4.65.246|:443... connected.\nHTTP request sent, awaiting response... 302 Moved Temporarily\nLocation: https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07 [following]\n--2021-10-22 19:25:18-- https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07\nConnecting to download.oracle.com (download.oracle.com)|23.38.150.56|:443... connected.\nHTTP request sent, awaiting response... 404 Not Found\n2021-10-22 19:25:18 ERROR 404: Not Found.\n\n--2021-10-22 19:25:18-- https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz\nResolving download.oracle.com (download.oracle.com)... 23.38.150.56\nConnecting to download.oracle.com (download.oracle.com)|23.38.150.56|:443... connected.\nHTTP request sent, awaiting response... 302 Moved Temporarily\nLocation: https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz [following]\n--2021-10-22 19:25:18-- https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz\nResolving edelivery.oracle.com (edelivery.oracle.com)... 23.4.65.246, 2600:1419:c400:181::366, 2600:1419:c400:182::366\nConnecting to edelivery.oracle.com (edelivery.oracle.com)|23.4.65.246|:443... connected.\nHTTP request sent, awaiting response... 302 Moved Temporarily\nLocation: https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07 [following]\n--2021-10-22 19:25:18-- https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07\nConnecting to download.oracle.com (download.oracle.com)|23.38.150.56|:443... connected.\nHTTP request sent, awaiting response... 404 Not Found\n2021-10-22 19:25:18 ERROR 404: Not Found.\n\n--2021-10-22 19:25:18-- https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz\nResolving download.oracle.com (download.oracle.com)... 23.38.150.56\nConnecting to download.oracle.com (download.oracle.com)|23.38.150.56|:443... connected.\nHTTP request sent, awaiting response... 302 Moved Temporarily\nLocation: https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz [following]\n--2021-10-22 19:25:18-- https://edelivery.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz\nResolving edelivery.oracle.com (edelivery.oracle.com)... 23.4.65.246, 2600:1419:c400:181::366, 2600:1419:c400:182::366\nConnecting to edelivery.oracle.com (edelivery.oracle.com)|23.4.65.246|:443... connected.\nHTTP request sent, awaiting response... 302 Moved Temporarily\nLocation: https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07 [following]\n--2021-10-22 19:25:18-- https://download.oracle.com/otn-pub/java/jdk/8u291-b10/d7fc238d0cbf4b0dac67be84580cfb4b/jdk-8u291-linux-x64.tar.gz?AuthParam=1634930838_4c68c89a42869f98c5e7f9f843e68e07\nConnecting to download.oracle.com (download.oracle.com)|23.38.150.56|:443... connected.\nHTTP request sent, awaiting response... 404 Not Found\n2021-10-22 19:25:18 ERROR 404: Not Found.\n\n\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot "
}
}
```
### Repro steps (*if necessary, delete otherwise*)
1. Just running the template with default values
2.
3.
4.
5.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked elasticsearch-vmss template and the master/installelasticsearch resource named in the failure output. Inspect how the template installs Java and retrieves jdk-8u291-linux-x64.tar.gz, then reproduce the default deployment. Done means the default template deployment completes without the VM extension download failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java
- Domain
- cloud, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100