Gradle assemble doesn't work in restricted network environments.
hfrenzel opened this issue · 7 comments
While deploying cf-deployment v10.0.0, building the credhub release (2.5.0) doesn't work with ./gradlew clean assemble
(s. https://github.com/pivotal-cf/credhub-release/blob/a1084c2c904c5c689894f68f9449ae203f6d1134/packages/credhub/packaging#L6) in restricted environents where a proxy is required.
20:34:47 Task 1057511 | 18:34:47 | Error: Action Failed get_task: Task 16a56218-eaa6-40b7-7371-f5d60172b908 result: Compiling package credhub: Running packaging script: Running packaging script: Command exited with 1; Stdout:
20:34:47 , Stderr: + export JAVA_HOME=/var/vcap/packages/openjdk_1.8.0/jre
20:34:47 + JAVA_HOME=/var/vcap/packages/openjdk_1.8.0/jre
20:34:47 + cd credhub
20:34:47 + ./gradlew clean assemble
20:34:47 Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/167406259
The labels on this github issue will be updated when the story is started.
@hfrenzel - thank you for reporting. We believe we have fixed this issue on the master branch, although it has not yet been released. Is there any chance that you would be able to verify that this issue has been fixed by creating a release from the HEAD of the master branch? Per your report above, looks like you ran into this while deploying cf-d, so I understand if it is too cumbersome to set up.
Hi,
I think, reverting the change will work, as it did with the pre_packaging script (v2.4.0) before.
Currently I'm not able to test it.
Thanks
Hi,
it doesn't work as expected:
01:25:05 releases:
01:25:05 - name: credhub
01:25:05 - sha1: 2e08e5de86288f421fb7eff72a095adb78c31ea8
01:25:05 + sha1: 139f83b948eb786e39f9b5d6ca6e7e79b8bf7c90
01:25:05 - url: https://bosh.io/d/github.com/pivotal-cf/credhub-release?v=2.4.0
01:25:05 + url: https://bosh.io/d/github.com/pivotal-cf/credhub-release?v=2.5.2
01:25:05 - version: 2.4.0
01:25:08 + version: 2.5.2
01:25:10
01:25:10 Task 1333586
01:25:59
01:26:42 Task 1333586 | 23:25:09 | Preparing deployment: Preparing deployment (00:00:49)
01:26:43 Task 1333586 | 23:25:58 | Preparing deployment: Rendering templates (00:00:43)
01:30:36 Task 1333586 | 23:26:42 | Preparing package compilation: Finding packages to compile (00:00:01)
01:30:36 Task 1333586 | 23:26:43 | Compiling packages: credhub/57aa502c13bc2eeed40edc2ba4cc2cda71e6fcbc (00:03:52)
01:30:36 L Error: Action Failed get_task: Task 9d3d4a63-e189-4725-6692-db4d759d97b7 result: Compiling package credhub: Running packaging script: Running packaging script: Command exited with 1; Stdout:
01:30:36 , Stderr: + export JAVA_HOME=/var/vcap/packages/openjdk_1.8.0/jre
01:30:36 + JAVA_HOME=/var/vcap/packages/openjdk_1.8.0/jre
01:30:36 + cd credhub
01:30:36 + ./gradlew clean assemble
01:30:36 Exception in thread "main" java.net.ConnectException: Connection timed out (Connection timed out)
01:30:36 at java.net.PlainSocketImpl.socketConnect(Native Method)
We're also running into this. Is there a binary boshrelease of credhub that could work around this?
@geofffranks @hfrenzel, It looks like we didn't actually fix the issue, thanks for pointing this out, we will prioritize it in our next release.
@hfrenzel Release version 2.5.5 should fix this. Please reopen if you're still experiencing this issue.