AnsweredAssumed Answered

having trouble configuring ./gradlew deployB2 -- Unexpected EOF from server

Question asked by hanleybrand on Jul 21, 2016
Latest reply on Jul 22, 2016 by scott.hurrey

I'm putting together my first B2 in quite a while and everything is good (at least I've been able to build a B2 that does nothing and it 'works' when uploaded to the developer vm), except I can't figure out how to get the ferschluggner deployb2 gradle task to work


I can:


But when I trigger deployB2 from intellij or  use ./gradlew deployB2 in a terminal window I'm getting this error:

[ant:b2deploy] Installing: ~/Dev/tu-coursetools-b2/build/libs/tu-coursetools-b2-1.0-SNAPSHOT.war to localhost:9877

:deployB2 FAILED

FAILURE: Build failed with an exception.

* Where:

Build file '~/Dev/tu-coursetools-b2/build.gradle' line: 57

* What went wrong:

Execution failed for task ':deployB2'.

> Unexpected end of file from server


Full stacktrace HERE


Here's the ext section of my build.gradle file (I edited the learnVersion and deployServer):


ext {

  learnVersion = "9.1.201404.160205"
  deployServer = "localhost:9877"
  deployInstance = "BBLEARN"

and from my Vagrantfile here are my ports (9877 is 443 - I tried setting deployServer to 9878 (2222) but that didn't work either): :forwarded_port, guest: 8080, host: 9876 :forwarded_port, guest: 8443, host: 9877 :forwarded_port, guest: 2222, host: 9878 :forwarded_port, guest: 5432, host: 9879


One thing I wondered - is it possible this is an SSL mixup problem, i.e. like the ant task wants to connect over http but the developer vm is forcing https?