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

chdir to cwd (\"/home/jboss\") set in config.json failed: **permission denied** #118

Open
altuga opened this issue Dec 5, 2018 · 2 comments

Comments

@altuga
Copy link

altuga commented Dec 5, 2018

Hello

I'm trying to setup coolstore-microservice app

/openshift/scripts/provision-demo.sh deploy msa

I got errors on 3 services
1 - cart service
2 - rating service
3 - review service

All errors are the same pattern

Error: failed to start container "rating": Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "chdir to cwd ("/home/jboss") set in config.json failed: permission denied": unknown

Note: Except for 3 services (cart, rating, review) all other services are up running.

Any suggestion?

OS
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"

oc version
oc v3.10.14
kubernetes v1.10.0+b81c8f8

Docker version
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:48:22 2018
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:19:08 2018
OS/Arch: linux/amd64
Experimental: false

Thanks

@altuga
Copy link
Author

altuga commented Dec 6, 2018

Below hint solved the issue l but I've never seen this hint in cool-store docs.

To relax the security in your cluster so that images are not forced to run as a pre-allocated UID, without granting everyone access to the privileged SCC:

Grant all authenticated users access to the anyuid SCC:

$ oc adm policy add-scc-to-group anyuid system:authenticated

@vsadanala
Copy link

thank you very much, same kind of error.
issue fixed on running the below command

oc adm policy add-scc-to-group anyuid system:authenticated

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