Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build_runner permissions error #402

Closed
brandonmenc opened this issue Mar 29, 2019 · 5 comments
Closed

Docker build_runner permissions error #402

brandonmenc opened this issue Mar 29, 2019 · 5 comments

Comments

@brandonmenc
Copy link

Environment

  • Elixir version: Elixir 1.8.0 (compiled with Erlang/OTP 20)

  • Nerves environment:

|nerves_bootstrap| Environment Package List

  Pkg:         custom_rpi3
  Vsn:         1.7.0
  Type:        system
  BuildRunner: {Nerves.Artifact.BuildRunners.Docker, []}

  Pkg:         nerves_system_br
  Vsn:         1.7.0
  Type:        system_platform
  BuildRunner: {nil, []}

  Pkg:         nerves_toolchain_arm_unknown_linux_gnueabihf
  Vsn:         1.1.0
  Type:        toolchain
  BuildRunner: {Nerves.Artifact.BuildRunners.Local, []}

  Pkg:         nerves_toolchain_ctng
  Vsn:         1.5.0
  Type:        toolchain_platform
  BuildRunner: {nil, []}

|nerves_bootstrap| Loadpaths Start


Nerves environment
  MIX_TARGET:   target
  MIX_ENV:      dev

Current behavior

mix compile or mix nerves.artifact produces the following error:

|Elixir.Docker| Starting Build... (this may take a while)

** (Mix) The Nerves Docker build_runner encountered an error while building:

-----
Setting User
UID: 501
GID: 20
Switching user
/nerves/env/platform/create-build.sh: line 81: /nerves/env/custom_rpi3/Config.in: Permission denied

-----

Expected behavior

A custom system being built.

@mobileoverlord mobileoverlord transferred this issue from nerves-project/nerves_system_br Mar 29, 2019
@mobileoverlord
Copy link
Contributor

It looks like this is an issue with docker trying to write the Config.in file back to the host and it doesn't have permission. What host are you on, Mac OS or Linux?

@brandonmenc
Copy link
Author

macOS

@mobileoverlord
Copy link
Contributor

I was able to run through a clean build on macOS without getting this error. What version of docker are you running? I did notice that my docker disk was out of space when I ran it so I had to stop docker, toss the disk, and start docker again. This forced the system to pull the image again. Not sure if you could give this a go. The nice thing about docker is that it's not too tough to rebuild the disk.

@brandonmenc
Copy link
Author

Docker version 18.09.2, build 6247962

Deleted my docker disk and tried again. Got the same error.

@brandonmenc
Copy link
Author

Problem solved. Operator error. Problem was similar to this one: moby/moby#22114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants