Skip to content

gitlab-runner-helper is missing. Can't use cache or get my artifacts

Summary

My runner is of type docker. All my builds goes fine. Now I have configured a new CI for an electron project. I use the image electronuserland/builder:wine. I get those messages that make it impossible to fetch my artifacts.

++ /usr/bin/gitlab-runner-helper --version
++ echo 'Missing /usr/bin/gitlab-runner-helper. Extracting cache is disabled.'
Missing /usr/bin/gitlab-runner-helper. Extracting cache is disabled.

Steps to reproduce

Use docker image electronuserlan/builder:wine to build an electron app. Here is my .gitlab-ci.yml :

image: electronuserland/builder:wine

variables:
  DEBUG: 'electron-windows-installer:*'
  CI_DEBUG_TRACE: "true"

stages:
  - build

before_script:
  - yarn install

cache:
  untracked: false
  key: "$CI_PROJECT_ID"
  paths:
    - node_modules/
    - .yarn

build_electron_win:
  stage: build
  only:
    - develop
  tags:
    - nodejs
  script:
    - yarn run dist
  artifacts:
    paths:
      - release-builds/synchro-pos-win32-x64/

Actual behavior

++ /usr/bin/gitlab-runner-helper --version
++ echo 'Missing /usr/bin/gitlab-runner-helper. Extracting cache is disabled.'
Missing /usr/bin/gitlab-runner-helper. Extracting cache is disabled.

Expected behavior

I expect that the gitlab-runner-helper would be there and caching and artifacts would works

Relevant logs and/or screenshots

Running with gitlab-runner 10.4.0 (857480b6)
  on ADC (daef9f3b)
Using Docker executor with image electronuserland/builder:wine ...
Using docker image sha256:219f2a256ca891b3a6739363ca2a6abd1bf7d0ced563a495df7fd389fe5fae49 for predefined container...
Pulling docker image electronuserland/builder:wine ...
Using docker image electronuserland/builder:wine ID=sha256:3af1ce84a2e52d597300934c12a96c14f19cdacd2b9d4c880831d37569472cfc for build container...
Running on runner-daef9f3b-project-14-concurrent-0 via adcws-juillet-2017...
Fetching changes...
Removing dist/
Removing node_modules/
HEAD is now at 8abd126 try without mono and target portable
Checking out 8abd126e as develop...
Skipping Git submodules setup
Missing /usr/bin/gitlab-runner-helper. Extracting cache is disabled.
$ yarn install
yarn install v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["esprima-fb@~3001.0001.0000-dev-harmony-fb"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in a non deterministic behavior, skipping.
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > angular2-jwt@0.2.3" has incorrect peer dependency "@angular/core@^2.0.0||^4.0.0".
warning " > angular2-jwt@0.2.3" has incorrect peer dependency "@angular/http@^2.0.0||^4.0.0".
[4/4] Building fresh packages...
Done in 199.55s.
$ yarn run dist
yarn run v1.3.2
$ build
  • electron-builder version=19.56.2
  • artifacts will be published if draft release exists reason=CI detected
  • loaded configuration file=package.json ("build" field)
  • no native production dependencies
  • asar using is disabled — it is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
  • packaging       platform=linux arch=x64 electron=1.7.5 appOutDir=dist/linux-unpacked
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[>                                            ] 0.0% (0 B/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[>                                            ] 0.0% of 51.17 MB (0 B/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[=>                                           ] 6.6% of 51.17 MB (3.39 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[===========>                                 ] 27.1% of 51.17 MB (13.87 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[================>                            ] 39.4% of 51.17 MB (16.14 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[======================>                      ] 52.1% of 51.17 MB (17.77 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[============================>                ] 65.8% of 51.17 MB (19.25 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[====================================>        ] 83.0% of 51.17 MB (21.23 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[==========================================>  ] 96.8% of 51.17 MB (22.01 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[============================================>] 100.0% of 51.17 MB (22.74 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[============================================>] 100.0% of 51.17 MB (22.74 MB/s)
Downloading tmp-1386-0-electron-v1.7.5-linux-x64.zip
[============================================>] 100.0% of 51.17 MB (22.74 MB/s)
Downloading tmp-1386-1-SHASUMS256.txt-1.7.5
[>                                            ] 0.0% (0 B/s)
Downloading tmp-1386-1-SHASUMS256.txt-1.7.5
[>                                            ] 0.0% of 2.93 kB (0 B/s)
Downloading tmp-1386-1-SHASUMS256.txt-1.7.5
[============================================>] 100.0% of 2.93 kB (2.93 kB/s)
Downloading tmp-1386-1-SHASUMS256.txt-1.7.5
[============================================>] 100.0% of 2.93 kB (2.93 kB/s)
Downloading tmp-1386-1-SHASUMS256.txt-1.7.5
[============================================>] 100.0% of 2.93 kB (2.93 kB/s)
  • building        target=AppImage arch=x64 file=dist/synchro-pos-1.1.1-x86_64.AppImage
  • downloading     path=/root/.cache/electron-builder/app-builder/app-builder-v0.6.1-x64 url=https://github.com/develar/app-builder/releases/download/v0.6.1/app-builder-v0.6.1-linux-x64.7z
  • application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://electron.build/configuration/configuration#LinuxBuildOptions-category
  • downloading     path=/root/.cache/electron-builder/appimage/appimage-9.0.5 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-9.0.5/appimage-9.0.5.7z
  • building embedded block map file=dist/synchro-pos-1.1.1-x86_64.AppImage
Done in 57.36s.
Missing /usr/bin/gitlab-runner-helper. Creating cache is disabled.
Missing /usr/bin/gitlab-runner-helper. Uploading artifacts is disabled.
Job succeeded

Environment description

custom installation, runner use Docker.

Containers: 12
 Running: 0
 Paused: 0
 Stopped: 12
Images: 15
Server Version: 17.12.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-34-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.859GiB
Name: adcws-juillet-2017
ID: 4L6S:VOFP:7DNG:IDL7:BLAG:6HZW:2FD5:AUDB:FZ3R:CCAF:M3NW:NDVS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: ###
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Used GitLab Runner version

Version:      10.4.0
Git revision: 857480b6
Git branch:   10-4-stable
GO version:   go1.8.5
Built:        Mon, 22 Jan 2018 09:47:33 +0000
OS/Arch:      linux/amd64

Thank you all for taking time to help me with this