Azure / Azure/azure-quickstart-templates
Azure ARM Template : Java CI/CD using Jenkins and Azure Web Apps: Fails with 'There were unauthenticated packages and -y was used'
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
Azure ARM Template : Java CI/CD using Jenkins and Azure Web Apps: Fails with 'There were unauthenticated packages and -y was used'
Template Name : Java CI/CD using Jenkins and Azure Web Apps
Template link : https://github.com/Azure/azure-quickstart-templates/tree/master/jenkins-cicd-webapp
### Issue Details
Resource group (change) redlock-eng-research-east
Workspace Name nats-rljenkins1
Status Active
Workspace Id de1fb765-b359-418e-a7aa-7176a2218fe5
Location East US
Pricing tier OMS
Subscription name(change)
Microsoft Azure ......
Management services
Operations logs
Subscription ID
6******2
OPERATION IDC66D5E938F1017A2
TRACKING IDef288601-5a05-46c2-b2dc-7ae08ec2d515
STATUSConflict
PROVISIONING STATEFailed
TIMESTAMP20/08/2018, 19:22:41
DURATION8 minutes 32 seconds
TYPEMicrosoft.Resources/deployments
RESOURCE ID/subscriptions/61c6b47a-8187-4705-a96e-53ac1def83f2/resourceGroups/REDLOCK-ENG-RESEARCH-East/providers/Microsoft.Resources/deployments/jenkinsDeployment
STATUSMESSAGE{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'JenkinsInit'. Error message: \\\"Enable failed: failed to execute command: command terminated with exit status=100\\n[stdout]\\ne\\n0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.\\nNeed to get 1,350 kB of archives.\\nAfter this operation, 4,338 kB of additional disk space will be used.\\nGet:1 http://azure.archive.ubuntu.com/ubuntu xenial/main amd64 libvpx3 amd64 1.5.0-2ubuntu1 [732 kB]\\nGet:2 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxpm4 amd64 1:3.5.11-1ubuntu0.16.04.1 [33.8 kB]\\nGet:3 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgd3 amd64 2.1.1-4ubuntu0.16.04.8 [126 kB]\\nGet:4 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-common all 1.10.3-0ubuntu0.16.04.2 [26.6 kB]\\nGet:5 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx-core amd64 1.10.3-0ubuntu0.16.04.2 [428 kB]\\nGet:6 http://azure.archive.ubuntu.com/ubuntu xenial-updates/main amd64 nginx all 1.10.3-0ubuntu0.16.04.2 [3,490 B]\\nFetched 1,350 kB in 0s (2,633 kB/s)\\nSelecting previously unselected package libvpx3:amd64.\\r\\n(Reading database ... \\r(Reading database ... 5%\\r(Reading database ... 10%\\r(Reading database ... 15%\\r(Reading database ... 20%\\r(Reading database ... 25%\\r(Reading database ... 30%\\r(Reading database ... 35%\\r(Reading database ... 40%\\r(Reading database ... 45%\\r(Reading database ... 50%\\r(Reading database ... 55%\\r(Reading database ... 60%\\r(Reading database ... 65%\\r(Reading database ... 70%\\r(Reading database ... 75%\\r(Reading database ... 80%\\r(Reading database ... 85%\\r(Reading database ... 90%\\r(Reading database ... 95%\\r(Reading database ... 100%\\r(Reading database ... 58112 files and directories currently installed.)\\r\\nPreparing to unpack .../libvpx3_1.5.0-2ubuntu1_amd64.deb ...\\r\\nUnpacking libvpx3:amd64 (1.5.0-2ubuntu1) ...\\r\\nSelecting previously unselected package libxpm4:amd64.\\r\\nPreparing to unpack .../libxpm4_1%3a3.5.11-1ubuntu0.16.04.1_amd64.deb ...\\r\\nUnpacking libxpm4:amd64 (1:3.5.11-1ubuntu0.16.04.1) ...\\r\\nSelecting previously unselected package libgd3:amd64.\\r\\nPreparing to unpack .../libgd3_2.1.1-4ubuntu0.16.04.8_amd64.deb ...\\r\\nUnpacking libgd3:amd64 (2.1.1-4ubuntu0.16.04.8) ...\\r\\nSelecting previously unselected package nginx-common.\\r\\nPreparing to unpack .../nginx-common_1.10.3-0ubuntu0.16.04.2_all.deb ...\\r\\nUnpacking nginx-common (1.10.3-0ubuntu0.16.04.2) ...\\r\\nSelecting previously unselected package nginx-core.\\r\\nPreparing to unpack .../nginx-core_1.10.3-0ubuntu0.16.04.2_amd64.deb ...\\r\\nUnpacking nginx-core (1.10.3-0ubuntu0.16.04.2) ...\\r\\nSelecting previously unselected package nginx.\\r\\nPreparing to unpack .../nginx_1.10.3-0ubuntu0.16.04.2_all.deb ...\\r\\nUnpacking nginx (1.10.3-0ubuntu0.16.04.2) ...\\r\\nProcessing triggers for libc-bin (2.23-0ubuntu10) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19) ...\\r\\nProcessing triggers for ufw (0.35-0ubuntu2) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.4) ...\\r\\nSetting up libvpx3:amd64 (1.5.0-2ubuntu1) ...\\r\\nSetting up libxpm4:amd64 (1:3.5.11-1ubuntu0.16.04.1) ...\\r\\nSetting up libgd3:amd64 (2.1.1-4ubuntu0.16.04.8) ...\\r\\nSetting up nginx-common (1.10.3-0ubuntu0.16.04.2) ...\\r\\ndebconf: unable to initialize frontend: Dialog\\r\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\r\\ndebconf: falling back to frontend: Readline\\r\\nSetting up nginx-core (1.10.3-0ubuntu0.16.04.2) ...\\r\\nSetting up nginx (1.10.3-0ubuntu0.16.04.2) ...\\r\\nProcessing triggers for libc-bin (2.23-0ubuntu10) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.4) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19) ...\\r\\nProcessing triggers for ufw (0.35-0ubuntu2) ...\\r\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\ngit is already the newest version (1:2.7.4-0ubuntu1.4).\\n0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nThe following NEW packages will be installed:\\n azure-cli\\n0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.\\nNeed to get 78.3 MB of archives.\\nAfter this operation, 316 MB of additional disk space will be used.\\nWARNING: The following packages cannot be authenticated!\\n azure-cli\\n\\n[stderr]\\n 103M 0s\\n 1250K .......... .......... .......... .......... .......... 40% 173M 0s\\n 1300K .......... .......... .......... .......... .......... 41% 193M 0s\\n 1350K .......... .......... .......... .......... .......... 43% 160M 0s\\n 1400K .......... .......... .......... .......... .......... 44% 165M 0s\\n 1450K .......... .......... .......... .......... .......... 46% 310M 0s\\n 1500K .......... .......... .......... .......... .......... 47% 49.1M 0s\\n 1550K .......... .......... .......... .......... .......... 49% 139M 0s\\n 1600K .......... .......... .......... .......... .......... 50% 14.1M 0s\\n 1650K .......... .......... .......... .......... .......... 52% 146M 0s\\n 1700K .......... .......... .......... .......... .......... 54% 288M 0s\\n 1750K .......... .......... .......... .......... .......... 55% 137M 0s\\n 1800K .......... .......... .......... .......... .......... 57% 199M 0s\\n 1850K .......... .......... .......... .......... .......... 58% 211M 0s\\n 1900K .......... .......... .......... .......... .......... 60% 294M 0s\\n 1950K .......... .......... .......... .......... .......... 61% 85.1M 0s\\n 2000K .......... .......... .......... .......... .......... 63% 130M 0s\\n 2050K .......... .......... .......... .......... .......... 64% 190M 0s\\n 2100K .......... .......... .......... .......... .......... 66% 158M 0s\\n 2150K .......... .......... .......... .......... .......... 67% 295M 0s\\n 2200K .......... .......... .......... .......... .......... 69% 201M 0s\\n 2250K .......... .......... .......... .......... .......... 71% 222M 0s\\n 2300K .......... .......... .......... .......... .......... 72% 146M 0s\\n 2350K .......... .......... .......... .......... .......... 74% 311M 0s\\n 2400K .......... .......... .......... .......... .......... 75% 210M 0s\\n 2450K .......... .......... .......... .......... .......... 77% 142M 0s\\n 2500K .......... .......... .......... .......... .......... 78% 234M 0s\\n 2550K .......... .......... .......... .......... .......... 80% 175M 0s\\n 2600K .......... .......... .......... .......... .......... 81% 263M 0s\\n 2650K .......... .......... .......... .......... .......... 83% 59.6M 0s\\n 2700K .......... .......... .......... .......... .......... 84% 282M 0s\\n 2750K .......... .......... .......... .......... .......... 86% 154M 0s\\n 2800K .......... .......... .......... .......... .......... 88% 160M 0s\\n 2850K .......... .......... .......... .......... .......... 89% 182M 0s\\n 2900K .......... .......... .......... .......... .......... 91% 9.63M 0s\\n 2950K .......... .......... .......... .......... .......... 92% 263M 0s\\n 3000K .......... .......... .......... .......... .......... 94% 127M 0s\\n 3050K .......... .......... .......... .......... .......... 95% 254M 0s\\n 3100K .......... .......... .......... .......... .......... 97% 221M 0s\\n 3150K .......... .......... .......... .......... .......... 98% 314M 0s\\n 3200K .......... .......... .......... ....... 100% 66.8M=0.04s\\n\\n2018-08-20 13:50:48 (88.8 MB/s) - ‘jenkins-cli.jar’ saved [3315011/3315011]\\n\\nRunning \\\"install-plugin azure-vm-agents -deploy\\\"...\\nRunning \\\"install-plugin windows-azure-storage -deploy\\\"...\\nRunning \\\"install-plugin matrix-auth -deploy\\\"...\\nRunning \\\"install-plugin workflow-aggregator -deploy\\\"...\\nRunning \\\"install-plugin azure-app-service -deploy\\\"...\\nRunning \\\"install-plugin tfs -deploy\\\"...\\nRunning \\\"install-plugin azure-acs -deploy\\\"...\\nRunning \\\"install-plugin azure-container-agents -deploy\\\"...\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\nE: There were unauthenticated packages and -y was used without --allow-unauthenticated\\nFailed while executing script 'jenkins/install_jenkins.sh'.\\n\\\".\"\r\n }\r\n ]\r\n }\r\n}"
}
]
}
]
}
}
### Repro steps (*if necessary, delete otherwise*)
1.
2.
3.
4.
5.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the jenkins-cicd-webapp template and inspect the jenkins/install_jenkins.sh script named in the deployment error. Reproduce the Java CI/CD deployment and trace the JenkinsInit extension output around the azure-cli installation. Done means the template deployment completes without the unauthenticated-package failure; no test file is mentioned.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, java, shell
- Domain
- ci-cd, cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100