{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/359","repository_url":"https://api.github.com/repos/cloudfoundry/java-buildpack","labels_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/359/comments","events_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/359/events","html_url":"https://github.com/cloudfoundry/java-buildpack/issues/359","id":194152875,"number":359,"title":"Dynatrace Staging Error","user":{"login":"d4v3r","id":5480172,"avatar_url":"https://avatars.githubusercontent.com/u/5480172?v=3","gravatar_id":"","url":"https://api.github.com/users/d4v3r","html_url":"https://github.com/d4v3r","followers_url":"https://api.github.com/users/d4v3r/followers","following_url":"https://api.github.com/users/d4v3r/following{/other_user}","gists_url":"https://api.github.com/users/d4v3r/gists{/gist_id}","starred_url":"https://api.github.com/users/d4v3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4v3r/subscriptions","organizations_url":"https://api.github.com/users/d4v3r/orgs","repos_url":"https://api.github.com/users/d4v3r/repos","events_url":"https://api.github.com/users/d4v3r/events{/privacy}","received_events_url":"https://api.github.com/users/d4v3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T19:59:32Z","updated_at":"2016-12-07T20:20:49Z","closed_at":null,"body":"Failure on PWS when using the offline Java Buildpack `java-buildpack-offline-v3.10.zip`\r\n```\r\ncf restage articulate\r\nRestaging app articulate in org Channel / space dave as droberts@pivotal.io...\r\nDownloading binary_buildpack...\r\nDownloading nodejs_buildpack...\r\nDownloading java_buildpack...\r\nDownloading staticfile_buildpack...\r\nDownloading ruby_buildpack...\r\nDownloaded binary_buildpack\r\nDownloading php_buildpack...\r\nDownloaded java_buildpack\r\nDownloading go_buildpack...\r\nDownloaded staticfile_buildpack\r\nDownloading python_buildpack...\r\nDownloaded nodejs_buildpack\r\nDownloading dotnet_core_buildpack...\r\nDownloaded go_buildpack\r\nDownloading dotnet_core_buildpack_beta...\r\nDownloaded php_buildpack\r\nDownloaded ruby_buildpack\r\nDownloaded dotnet_core_buildpack\r\nDownloaded python_buildpack\r\nDownloaded dotnet_core_buildpack_beta\r\nCreating container\r\nSuccessfully created container\r\nDownloading app package...\r\nDownloaded app package (27.6M)\r\nDownloading build artifacts cache...\r\nDownloaded build artifacts cache (108B)\r\nStaging...\r\n-----> Java Buildpack Version: v3.10 (offline) | https://github.com/cloudfoundry/java-buildpack.git#193d6b7\r\n-----> Downloading Open Jdk JRE 1.8.0_111 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_111.tar.gz (found in cache)\r\n       Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)\r\n-----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (found in cache)\r\n       Memory Settings: -XX:MetaspaceSize=104857K -Xmx681574K -XX:MaxMetaspaceSize=104857K -Xss349K -Xms681574K\r\n[Buildpack]                      ERROR Compile failed with exception #<RuntimeError: Unable to find cached file for https://agf59824.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=4tU8C_UtS-KkB8_ZF5Ppy>\r\nUnable to find cached file for https://agf59824.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=4tU8C_UtS-KkB8_ZF5Ppy\r\n-----> Downloading Dynatrace One Agent latest from https://agf59824.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=4tU8C_UtS-KkB8_ZF5Ppy Exit status 223\r\nFailed to compile droplet\r\nStaging failed: Exited with status 223\r\nDestroying container\r\nSuccessfully destroyed container\r\n```\r\nHowever it does work when using a custom buildpack:\r\n```\r\ncf push articulate -p target/articulate-0.0.1-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git\r\nUpdating app articulate in org Channel / space dave as droberts@pivotal.io...\r\nOK\r\n\r\nUploading articulate...\r\nUploading app files from: /var/folders/84/ldbx2c5j01l_ycgg3d37g9yh0000gq/T/unzipped-app248645766\r\nUploading 551.5K, 139 files\r\nDone uploading               \r\nOK\r\n\r\nStarting app articulate in org Channel / space dave as droberts@pivotal.io...\r\nCreating container\r\nSuccessfully created container\r\nDownloading app package...\r\nDownloaded app package (27.6M)\r\nDownloading build artifacts cache...\r\nDownloaded build artifacts cache (108B)\r\nStaging...\r\n-----> Java Buildpack Version: 834dffe | https://github.com/cloudfoundry/java-buildpack.git#834dffe\r\n-----> Downloading Open Jdk JRE 1.8.0_111 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_111.tar.gz (0.5s)\r\n       Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)\r\n-----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (0.0s)\r\n       Memory Settings: -XX:MaxMetaspaceSize=104857K -Xss349K -Xms681574K -XX:MetaspaceSize=104857K -Xmx681574K\r\n-----> Downloading Dynatrace One Agent latest from https://agf59824.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?include=java&bitness=64&Api-Token=4tU8C_UtS-KkB8_ZF5Ppy (0.4s)\r\n       Expanding Dynatrace OneAgent to .java-buildpack/dynatrace_one_agent (0.2s)\r\n-----> Downloading Spring Auto Reconfiguration 1.10.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (0.0s)\r\nExit status 0\r\nStaging complete\r\nUploading droplet, build artifacts cache...\r\nUploading build artifacts cache...\r\nUploading droplet...\r\nUploaded build artifacts cache (52.4M)\r\nUploaded droplet (80.3M)\r\nUploading complete\r\nDestroying container\r\n\r\n0 of 1 instances running, 1 starting\r\n0 of 1 instances running, 1 starting\r\n0 of 1 instances running, 1 starting\r\n0 of 1 instances running, 1 starting\r\n1 of 1 instances running\r\n\r\nApp started\r\n\r\n\r\nOK\r\n\r\nApp articulate was started using this command `CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-2.0.2_RELEASE -memorySizes=metaspace:64m..,stack:228k.. -memoryWeights=heap:65,metaspace:10,native:15,stack:10 -memoryInitials=heap:100%,metaspace:100% -stackThreads=300 -totMemory=$MEMORY_LIMIT) && JAVA_OPTS=\"-Djava.io.tmpdir=$TMPDIR -XX:OnOutOfMemoryError=$PWD/.java-buildpack/open_jdk_jre/bin/killjava.sh $CALCULATED_MEMORY -agentpath:$PWD/.java-buildpack/dynatrace_one_agent/agent/lib64/liboneagentloader.so=server=https://sg-us-east-1-34-192-13-238-prod-us-east-cluster-2.live.ruxit.com/communication\\;https://sg-us-east-1-34-192-2-208-prod-us-east-cluster-2.live.ruxit.com/communication\\;https://sg-us-east-1-52-1-155-152-prod-us-east-cluster-2.live.ruxit.com/communication\\;https://sg-us-east-1-54-164-49-176-prod-us-east-cluster-2.live.ruxit.com/communication\\;https://sg-us-east-1-54-164-42-22-prod-us-east-cluster-2.live.ruxit.com/communication,tenant=agf59824,tenanttoken=2CTIIA60fO0CLsRk\" && RUXIT_APPLICATIONID=articulate RUXIT_HOST_ID=articulate_${CF_INSTANCE_INDEX} SERVER_PORT=$PORT eval exec $PWD/.java-buildpack/open_jdk_jre/bin/java $JAVA_OPTS -cp $PWD/. org.springframework.boot.loader.JarLauncher`\r\n\r\nShowing health and status for app articulate in org Channel / space dave as droberts@pivotal.io...\r\nOK\r\n\r\nrequested state: started\r\ninstances: 1/1\r\nusage: 1G x 1 instances\r\nurls: articulate-establishable-anticline.cfapps.io\r\nlast uploaded: Wed Dec 7 19:08:44 UTC 2016\r\nstack: cflinuxfs2\r\nbuildpack: https://github.com/cloudfoundry/java-buildpack.git\r\n\r\n     state     since                    cpu      memory       disk           details\r\n#0   running   2016-12-07 01:09:49 PM   176.0%   506M of 1G   209.2M of 1G\r\nDROBERTS-MBPRO:articulate droberts$ cf apps\r\nGetting apps in org Channel / space dave as droberts@pivotal.io...\r\nOK\r\n\r\nname         requested state   instances   memory   disk   urls\r\narticulate   started           1/1         1G       1G     articulate-establishable-anticline.cfapps.io\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/comments/265562006","html_url":"https://github.com/cloudfoundry/java-buildpack/issues/359#issuecomment-265562006","issue_url":"https://api.github.com/repos/cloudfoundry/java-buildpack/issues/359","id":265562006,"user":{"login":"aloismayr","id":8527189,"avatar_url":"https://avatars.githubusercontent.com/u/8527189?v=3","gravatar_id":"","url":"https://api.github.com/users/aloismayr","html_url":"https://github.com/aloismayr","followers_url":"https://api.github.com/users/aloismayr/followers","following_url":"https://api.github.com/users/aloismayr/following{/other_user}","gists_url":"https://api.github.com/users/aloismayr/gists{/gist_id}","starred_url":"https://api.github.com/users/aloismayr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aloismayr/subscriptions","organizations_url":"https://api.github.com/users/aloismayr/orgs","repos_url":"https://api.github.com/users/aloismayr/repos","events_url":"https://api.github.com/users/aloismayr/events{/privacy}","received_events_url":"https://api.github.com/users/aloismayr/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T20:20:49Z","updated_at":"2016-12-07T20:20:49Z","body":"The Dynatrace integration tries to download the agent from the cluster which of course is not available in the local offline buildpack cache. Does the offline buildpack allow for outbound connections during the compile phase?"}}
{"actor":{"display_login":"aloismayr"}}