Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Problems when running generic-worker inside a docker container #151

Open
@aerickson

Description

I was trying to run generic-worker in a x86_64 docker container, but it would keep dying with error 76. I created a debug build with extra output and it revealed that it's an issue with user.Current.

2019/02/19 19:38:45 Loading generic-worker config file '/builds/worker/tmp/generic-worker.yml'...
2019/02/19 19:38:45 Creating file /builds/worker/tmp/generic-worker.yml...
2019/02/19 19:38:45 Saving file /builds/worker/tmp/generic-worker.yml (absolute path: /builds/worker/tmp/generic-worker.yml)
2019/02/19 19:38:45 main: about to run securefiles
2019/02/19 19:38:45 main: securefiles err: user: Current not implemented on linux/amd64
root@46f0391b5a17:~#

This seems to be a known issue (golang/go#14625). I was able to get generic-worker running by setting the USER environment variable (as mentioned in ksonnet/ksonnet#298).

I thought that compiling just linux_64 on linux_64 would solve the issue (it seems CGO is only enabled for non-cross-compilation builds), but I got the same error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions