Azure / jenkins

Templates and scripts to help you run Jenkins on Azure
Creative Commons Attribution 4.0 International
48 stars 53 forks source link

Vanilla deployment of ARM template from Azure Marketplace fails #38

Open bhuwan-agarwal opened 4 years ago

bhuwan-agarwal commented 4 years ago

The deployment fails with following error:

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations 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 'Init'. Error message: \\\"Enable failed: failed to execute command: command terminated with exit status=1\\n[stdout]\\nnal disk space will be used.\\nGet:2 http://azure.archive.ubuntu.com/ubuntu xenial/universe amd64 daemon amd64 0.6.4-1 [98.2 kB]\\nGet:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.222.1 [65.2 MB]\\nFetched 65.3 MB in 4s (14.9 MB/s)\\nSelecting previously unselected package daemon.\\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 ... 55029 files and directories currently installed.)\\r\\nPreparing to unpack .../daemon_0.6.4-1_amd64.deb ...\\r\\nUnpacking daemon (0.6.4-1) ...\\r\\nSelecting previously unselected package jenkins.\\r\\nPreparing to unpack .../jenkins_2.222.1_all.deb ...\\r\\nUnpacking jenkins (2.222.1) ...\\r\\nProcessing triggers for man-db (2.7.5-1) ...\\r\\nProcessing triggers for ureadahead (0.100.0-19.1) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.27) ...\\r\\nSetting up daemon (0.6.4-1) ...\\r\\nSetting up jenkins (2.222.1) ...\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nsent invalidate(group) request, exiting\\r\\nsent invalidate(passwd) request, exiting\\r\\nProcessing triggers for ureadahead (0.100.0-19.1) ...\\r\\nProcessing triggers for systemd (229-4ubuntu21.27) ...\\r\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\njenkins is already the newest version (2.222.1).\\nThe following package was automatically installed and is no longer required:\\n  grub-pc-bin\\nUse 'sudo apt autoremove' to remove it.\\n0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.\\n2.222.1\\nInstalling azure-vm-agents from update center\\nInstalling windows-azure-storage from update center\\nInstalling matrix-auth from update center\\nInstalling workflow-aggregator from update center\\nInstalling azure-app-service from update center\\nInstalling tfs from update center\\nInstalling azure-acs from update center\\nInstalling azure-container-agents from update center\\nInstalling azure-function from update center\\nInstalling azure-ad from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling azure-vmss from update center\\nInstalling service-fabric from update center\\nInstalling kubernetes-cd from update center\\nInstalling azure-container-registry-tasks from update center\\nInstalling azure-artifact-manager from update center\\n\\n[stderr]\\nFilter(BasicHeaderProcessor.java:82)\\n\\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\\n\\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\\n\\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\\n\\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\\n\\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\\n\\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\\n\\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)\\n\\tat org.eclipse.jetty.server.Server.handle(Server.java:500)\\n\\tat org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)\\n\\tat org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)\\n\\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)\\n\\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)\\n\\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)\\n\\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)\\n\\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)\\n\\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)\\n\\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)\\n\\tat java.lang.Thread.run(Thread.java:748)\\nFailed while executing script 'scripts/run-cli-command.sh' with parameters '-c create-credentials-by-xml system::system::jenkins _ -cif storage_cred.xml'.\\n\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n      }\r\n    ]\r\n  }\r\n}"
    }
  ]
}

Any ideas?