Ionic run android: Gradle build daemon disappeared unexpectedly


#1

I upgraded my ionic box but now my ionic project is not running anymore:

vagrant@vagrant-ubuntu-trusty-64:/project$ ionic -version
1.7.14

vagrant@vagrant-ubuntu-trusty-64:/project$ cordova --version
6.0.0

vagrant@vagrant-ubuntu-trusty-64:/project$ adb devices
List of devices attached
192.168.56.101:5555     device

vagrant@vagrant-ubuntu-trusty-64:/project$ ionic run android
Running command: /project/hooks/after_prepare/010_add_platform_class.js /project
add to body class: platform-android
Running command: /project/hooks/after_prepare/020_remove_sass_from_platforms.js /project
ANDROID_HOME=/home/vagrant/android-sdk-linux
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
No target specified, deploying to device '192.168.56.101:5555'.
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project}
Attempting to read last messages from the daemon log...
Daemon pid: 21475
  log file: /home/vagrant/.gradle/daemon/2.2.1/daemon-21475.out.log
----- Last  20 lines from daemon log file - daemon-21475.out.log -----
19:35:36.808 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpIncomingConnector] Accepted connection from /127.0.0.1:57273 to /127.0.0.1:55438.
19:35:36.839 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 21: received class org.gradle.launcher.daemon.protocol.Build
19:35:36.839 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] Received non-IO message from client: Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project}
19:35:36.839 [INFO] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Received command: Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project}.
19:35:36.840 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Starting executing command: Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project} with connection: socket connection from /127.0.0.1:55438 to /127.0.0.1:57273.
19:35:36.840 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: started DaemonCommandExecution[command = Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project}, connection = org.gradle.launcher.daemon.server.DefaultDaemonConnection@60409712] after 0.0 minutes of idle
19:35:36.840 [INFO] [org.gradle.launcher.daemon.server.DomainRegistryUpdater] Marking the daemon as busy, address: [5a1c81a2-b422-4afc-8065-13f0fb353674 port:55438, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]
19:35:36.841 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [5a1c81a2-b422-4afc-8065-13f0fb353674 port:55438, addresses:[/0:0:0:0:0:0:0:1%1, /127.0.0.1]]
19:35:36.841 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
19:35:36.841 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired.
19:35:36.844 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
19:35:36.844 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] updating lastActivityAt to 1455219336844
19:35:36.844 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon is busy, sleeping until state changes.
19:35:36.845 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=a51cdfe9-c93c-4f29-8f9a-ba3c71f14a04.1, currentDir=/project}. Dispatching build started information...
19:35:36.845 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 15: dispatching class org.gradle.launcher.daemon.protocol.BuildStarted
19:35:36.845 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {TERM=cygwin, OLDPWD=/project/platforms/android, SHELL=/bin/bash, JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64, SHLVL=1, LESSCLOSE=/usr/bin/lesspipe %s %s, PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vagrant/android-sdk-linux/tools:/home/vagrant/android-sdk-linux/platform-tools, SSH_CLIENT=10.0.2.2 63271 22, MAIL=/var/mail/vagrant, USER=vagrant, PWD=/project, SSH_TTY=/dev/pts/0, HOME=/home/vagrant, LOGNAME=vagrant, LESSOPEN=|
/usr/bin/lesspipe %s, XDG_SESSION_ID=7, LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:, ANDROID_HOME=/home/vagrant/android-sdk-linux,
SSH_CONNECTION=10.0.2.2 63271 10.0.2.15 22, XDG_RUNTIME_DIR=/run/user/1000, LANG=en_US.UTF-8}
19:35:36.852 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
19:35:36.852 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 21475). The daemon log file: /home/vagrant/.gradle/daemon/2.2.1/daemon-21475.out.log
19:35:36.854 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build.
19:35:36.854 [INFO] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=a5d3d51c-ecd9-4a78-a941-4692de2f6994,javaHome=/usr/lib/jvm/java-7-openjdk-amd64,daemonRegistryDir=/home/vagrant/.gradle/daemon,pid=21475,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]
----- End of the daemon log -----


FAILURE: Build failed with an exception.

* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
ERROR running one or more of the platforms: Error code 1 for command: /project/platforms/android/gradlew with args: cdvBuildDebug,-b,/project/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to run this project