FS#59432 - [gitlab-runner] docker image not found, jobs cannot run

Attached to Project: Community Packages
Opened by Pau Ruiz Safont (undu) - Tuesday, 24 July 2018, 09:58 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 01 August 2018, 14:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

With version 11.1.0-1 I'm unable to execute any tasks.
This seems to be caused by a mismatch between the revision of the binary (seems like a git hash) and the name of the tag in docker hub (`x86_64-081978a` is requested, but the existing one is named `x86_64-081978aa`)

I'm unsure if this is a problem with upstream or how the packaging for it is done. This is because all the docker tags contain revisions with 8 digits while the revision on the binary has 7.

Steps to reproduce:

This happens whenever I try to run a CI step manually. e.g. gitlab-runner --debug exec docker test
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 01 August 2018, 14:18 GMT
Reason for closing:  Fixed
Comment by Markus Doits (doits) - Wednesday, 25 July 2018, 15:16 GMT Comment by Pau Ruiz Safont (undu) - Wednesday, 25 July 2018, 16:02 GMT
Changing the first line of prepare() to

local revision=$(ls -d ${_srcdir}* | rev | cut -c 33-40 | rev)

fixes the revision number in the binary (change 34 to 33)

(I would change the summary, but I don't see how)
Comment by Adrien (Ethaligan) - Wednesday, 25 July 2018, 17:56 GMT
Until it gets fixed you can use this workaround:

in [runners.docker] section in /etc/gitlab-runner/config.toml, add helper_image = "gitlab/gitlab-runner-helper:x86_64-081978aa" and restart the gitlab-runner service.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 31 July 2018, 18:43 GMT
Can you test now?
Comment by Adrien (Ethaligan) - Wednesday, 01 August 2018, 13:27 GMT
Thanks, it now works! ☺

Loading...