Bug#916256: [pkg-go] Bug#916256: Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-24 Thread Dean Hamstead
Im using hosted kubernetes (azure kubernetes in this case) which runs 
the actual docker machines all for me.


They are ubuntu it seems but they are entirely encapsulated as part of 
the service.


That said, this error would occur if the kubernetes cluster is external 
to the debian machine that runs the runner? (which is my scenario) as 
that docker instance running on the kubernetes node would not have that 
'local' image?


by manually setting the helper_image to something in the gitlab/ space - 
things work for me



On 25/1/19 12:16 am, Dmitry Smirnov wrote:

On Thursday, 24 January 2019 9:30:47 PM AEDT Dean Hamstead wrote:

In my case, i am using the kubernetes executor

That shouldn't matter as it failed in "executor_docker.go:166".

First it tries to load helper image from local file system:


ERRO[] Docker executor: prebuilt image helpers will be loaded from
/var/lib/gitlab-runner.


Then, in case helper image is not there, it falls back to pull from registry.
So once again, do you have a "/var/lib/gitlab-runner/gitlab-runner-
prebuilt.tar.xz" file?
Did you try to build helper image by "sudo dpkg-reconfigure gitlab-runner"?

If it fails to build a helper image, you would know what's the problem from
the error. Usually this happens when Docker daemon is not running when
gitlab-runner is installed...





Bug#916256: [pkg-go] Bug#916256: Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-24 Thread Dmitry Smirnov
On Thursday, 24 January 2019 9:30:47 PM AEDT Dean Hamstead wrote:
> In my case, i am using the kubernetes executor

That shouldn't matter as it failed in "executor_docker.go:166".

First it tries to load helper image from local file system:


ERRO[] Docker executor: prebuilt image helpers will be loaded from
/var/lib/gitlab-runner.


Then, in case helper image is not there, it falls back to pull from registry.
So once again, do you have a "/var/lib/gitlab-runner/gitlab-runner-
prebuilt.tar.xz" file?
Did you try to build helper image by "sudo dpkg-reconfigure gitlab-runner"?

If it fails to build a helper image, you would know what's the problem from 
the error. Usually this happens when Docker daemon is not running when 
gitlab-runner is installed...

-- 
Regards,
 Dmitry Smirnov.

---

Criticism may not be agreeable, but it is necessary. It fulfils the same
function as pain in the human body. It calls attention to an unhealthy
state of things.
-- Winston Churchill


signature.asc
Description: This is a digitally signed message part.


Bug#916256: [pkg-go] Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-24 Thread Dean Hamstead

In my case, i am using the kubernetes executor

On 24/1/19 6:39 pm, Dmitry Smirnov wrote:

On Thursday, 24 January 2019 11:01:03 AM AEDT Dean Hamstead wrote:

Seems to be the same as:
https://gitlab.com/gitlab-org/gitlab-runner/issues/3441

Probably not the same...
Debian package works very different in regards to gitlab-runner-helper image.
 From post-install docker build command is executed to prepare an image which
is then stored into "/var/lib/gitlab-runner/". By definition, prebuilt image
is local and it should never be downloaded.

Do you have "/var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz" file?

I test every upload of Gitlab Runner (and I use this very version all the
time) so I suspect that the problem might be somewhere in configuration...

Could you try "sudo dpkg-reconfigure gitlab-runner"?

There are few patches to force use of local prebuilt image -- maybe we miss
one code path that should be patched but package passed Docker tests before
upload so prebuilt image should work...





Bug#916256: [pkg-go] Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-23 Thread Dmitry Smirnov
On Thursday, 24 January 2019 11:01:03 AM AEDT Dean Hamstead wrote:
> Seems to be the same as:
> https://gitlab.com/gitlab-org/gitlab-runner/issues/3441

Probably not the same...
Debian package works very different in regards to gitlab-runner-helper image.
>From post-install docker build command is executed to prepare an image which 
is then stored into "/var/lib/gitlab-runner/". By definition, prebuilt image 
is local and it should never be downloaded.

Do you have "/var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz" file?

I test every upload of Gitlab Runner (and I use this very version all the 
time) so I suspect that the problem might be somewhere in configuration...

Could you try "sudo dpkg-reconfigure gitlab-runner"?

There are few patches to force use of local prebuilt image -- maybe we miss 
one code path that should be patched but package passed Docker tests before 
upload so prebuilt image should work...

-- 
All the best,
 Dmitry Smirnov.

---

In individuals, insanity is rare; but in groups, parties, nations and
epochs, it is the rule.
-- Friedrich Nietzsche


signature.asc
Description: This is a digitally signed message part.


Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-23 Thread Dean Hamstead
Seems to be the same as: 
https://gitlab.com/gitlab-org/gitlab-runner/issues/3441




Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2019-01-23 Thread Dean Hamstead
This is doomed to fail with the default logic for the helper_image 
default


Per 
https://docs.gitlab.com/runner/configuration/advanced-configuration.html#helper-image


and

https://docs.gitlab.com/runner/configuration/advanced-configuration.html#overriding-the-helper-image



Bug#916256: gitlab-runner fails when it tries to pull docker image gitlab-runner-helper:11.2.0

2018-12-11 Thread Daniel Gomez
Package: gitlab-runner
Version: 11.2.0+dfsg-2
Severity: important

Dear Maintainer,

Summary
---
gitlab-runner executes docker for the first time it tries to download docker
image gitlab-runner-helper:11.2.0
but it fails because repository does not exists with this tag name.

Related links:
* https://hub.docker.com/r/gitlab/gitlab-runner-helper/tags/

Expected behavior
-
gitlab-runner should be able to find the right tag name of gitlab-runner-
helper.

Error
-
ERRO[] Docker executor: prebuilt image helpers will be loaded from
/var/lib/gitlab-runner.
Running with gitlab-runner 11.2.0 (11.2.0)
Using Docker executor with image registry.gitlab.com/:latest ...
Pulling docker image gitlab-runner-helper:11.2.0 ...
ERROR: Job failed: Error response from daemon: pull access denied for gitlab-
runner-helper, repository does not exist or may require 'docker login'
(executor_docker.go:166:1s)
FATAL: Error response from daemon: pull access denied for gitlab-runner-helper,
repository does not exist or may require 'docker login'
(executor_docker.go:166:1s)

Command
---
$ gitlab-runner exec docker --docker-volumes $PWD/builds:/builds build

Workaround
--
Download gitlab-runner-helper 11.2.0 version using x86_64-6d9dd510 tag and
rename it locally.
$ docker run --rm -it gitlab/gitlab-runner-helper:x86_64-6d9dd510
$ docker tag  gitlab/gitlab-runner-helper:x86_64-6d9dd510 gitlab-runner-
helper:11.2.0
Now you can execute:
$ gitlab-runner exec docker --docker-volumes $PWD/builds:/builds build



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gitlab-runner depends on:
ii  adduser  3.118
ii  ca-certificates  20170717
ii  git  1:2.19.2-1
ii  libc62.27-8
ii  lsb-base 10.2018112800

Versions of packages gitlab-runner recommends:
ii  cdebootstrap  0.7.7+b1
ii  xz-utils  5.2.2-1.3

Versions of packages gitlab-runner suggests:
ii  docker.io  18.06.1+dfsg1-2

-- Configuration Files:
/etc/gitlab-runner/config.toml [Errno 13] Permission denied: 
'/etc/gitlab-runner/config.toml'

-- no debconf information