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

Docker Build failed, /proc file permission denied #234

Closed
2 of 5 tasks
louisgv opened this issue Nov 19, 2017 · 5 comments
Closed
2 of 5 tasks

Docker Build failed, /proc file permission denied #234

louisgv opened this issue Nov 19, 2017 · 5 comments

Comments

@louisgv
Copy link
Contributor

louisgv commented Nov 19, 2017

Expected Behavior

Upon pulling new change from master, I should be able to run docker-compose -f local.yml build to update the docker image.

Current Behavior

The build process failed:

Step 8/21 : RUN find . -type d -name __pycache__ -exec rm -r {} \+
 ---> Running in 41c5736fc3df
find: './proc/1/map_files': Operation not permitted
find: './proc/7/map_files': Operation not permitted
ERROR: Service 'base' failed to build: The command '/bin/sh -c find . -type d -name __pycache__ -exec rm -r {} \+' returned a non-zero code: 1

Possible Solution

Steps to Reproduce

  1. Pull from master
  2. Run docker-compose -f local.yml build

Context (Environment)

This might be specific to Debian. My operating system is:

Linux lab 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u3 (2017-08-15) x86_64 GNU/Linux

Detailed Description

Possible Implementation

Checklist before submitting

  • I have confirmed this using the officially supported Docker Compose setup using the local.yml configuration and ensured that I built the containers again and they reflect the most recent version of the project at the HEAD commit on the master branch
  • I have searched through the other currently open issues and am confident this is not a duplicate of an existing bug
  • I provided a minimal code snippet or list of steps that reproduces the bug.
  • I provided screenshots where appropriate
  • I filled out all the relevant sections of this template
@louisgv
Copy link
Contributor Author

louisgv commented Nov 19, 2017

After spending an entire day trying all kind of thing to fix the problem, from reinstalling docker, to remove docker tunnel, to reboot my machine a dozen of time, I decided to just comment out the 8th docker command in the base instruction, and that solved the problem.

This was super frustrating. I think this line should be investigated and I think we need to improve it:

RUN find . -type d -name __pycache__ -exec rm -r {} \+

https://github.com/concept-to-clinic/concept-to-clinic/blob/master/compose/base/Dockerfile-dev#L12

Maybe we can use a python package like pyclean or py3clean to clean up the cache instead of searching for it manually?

@reubano
Copy link
Contributor

reubano commented Nov 22, 2017

I can't reproduce this, but it could be related to moby/moby#16506. Perhaps a PR blacklisting the proc dir may help.

@reubano
Copy link
Contributor

reubano commented Nov 23, 2017

Maybe we can use a python package like pyclean or py3clean to clean up the cache instead of searching for it manually?

FYI, these packages do the same thing as the script. Just in python instead of bash.

@isms
Copy link
Contributor

isms commented Dec 4, 2017

@louisgv I think it's time to close this and #238 unless you can update us with current status and detailed steps to reproduce. Thoughts?

@louisgv
Copy link
Contributor Author

louisgv commented Dec 7, 2017

@isms let's close this for now. By commenting out the 8th line of the docker script this problem is gone for me.

@louisgv louisgv closed this as completed Dec 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants