[GRADLE-3194] Cannot start Gradle daemon on OS X and Java 7 when offline Created: 13/Nov/14 Updated: 16/Nov/14 Resolved: 14/Nov/14 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 2.2 |
Fix Version/s: | 2.2.1-rc-1 |
Type: | Bug | ||
Reporter: | Szczepan Faber | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Known Issue Of: |
Description |
When I use java7 (1.7.0_67) and I switch off wifi (or when I'm not connected to any wifi network) I'm not able to run build with the daemon on my mac (Mac OS X 10.9.5 x86_64). This problem also impacts android developers as reported on the mailing list. It might be related to the fact that I'm using a corporate laptop which has some non-standard network/vpn settings. I don't see this problem with java6 or java8. In the code, the InetAddress.getLocalHost() throws an exception. Starting the build yields: ~/gradle/tryouts/simple> gradle tasks FAILURE: Build failed with an exception. * What went wrong: Could not determine the a usable local IP for this machine. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Steps to reproduce: turn off wifi, use java7 on mac, try running a build with the daemon. When I was traveling and did not have wifi last weekend I used java8 to work around the issue. Full stack trace: https://gist.github.com/szczepiq/e0c455d8a60f71381c83 I've hacked the code to ignore the exception coming from InetAddress.getLocalHost() and this made the build happy. |