You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
aerickson
changed the title
problems running on x86_64 (user.Current)
problems running in docker
Feb 21, 2019
I think the solution here is for the docs to say that if you run a linux build of generic-worker inside a docker container, you should make sure USER env var is set.
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.
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.
The text was updated successfully, but these errors were encountered: