Gradle build daemon disappeared unexpectedly

Hello guys

Following kensodemann advice, I’m c/cing my github issue here since this is more a support thing than an issue. I’m stuck with no lead to investigate, any idea is welcomed !

Ionic version: (check one with “x”)
(For Ionic 1.x issues, please use
[ ] 2.x
[x] 3.x
[ ] 4.x

I’m submitting a … (check one with “x”)
[x] bug report (sort of, just asking for lead to solve my CI issue)
[ ] feature request

Current behavior:

I’m trying to set up a CI to build Ionic project. The SCM is Gitlab 10, the CI being Gitlab-CI.

A gitlab-runner 10.1.0 running over an AWS EC2 instance with Amazon Linux is the component executing the build job. Here’s the .gitlab-ci.yml defining the job

image: beevelop/ionic:latest
  - build
  stage: build
    - df -m
    - free -m
    - npm install
    - ionic config set -g telemetry false
    - ionic info
    - ionic cordova platform add android
    - ionic cordova build android --debug

The script part itself is executed in a fresh beevelop/ionic:latest container. Just to be sure, I did all those step manually on the same container running on my workstation. It worked there.

But on the runner, it’s ending with a Gradle build daemon disappeared unexpectedly. I tried all the options I could find, like ionic cordova build android --debug -- -- --gradleArg=--no-daemon, nothing. I buffed the EC2 up to 2CPU 4Go RAM, didn’t worked out too. The full build log is below, including ionic info.

Expected behavior:

A working build.

Steps to reproduce:

The .gitlab-ci.yml is above, one just need a functionnal Gitlab + Gitlab-CI with a runner, a simple ionic project (I tried on a brand new Ionic project).

Related code:

The build log is in the first reply since this post would be too long otherwise

Other information:

I asked the author of the docker image, beevelop/ionic, no better lead.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: (/opt/node/lib/node_modules)

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

local packages:

    @ionic/app-scripts : 3.1.0
    Ionic Framework    : ionic-angular 3.9.2


    Node : v8.9.1
    npm  : 5.5.1 
    OS   : Linux 4.9


    backend : pro

What does ionic cordova requirements output?
You didn’t post the full command output.