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

Fix permission denied bug #2802

Merged
merged 7 commits into from
Aug 31, 2021
Merged

Fix permission denied bug #2802

merged 7 commits into from
Aug 31, 2021

Conversation

MiKDev
Copy link
Contributor

@MiKDev MiKDev commented Jun 24, 2021

Fixing this issue:

ERROR: for greenlight-v2 Cannot start service app: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "bin/start": permission denied: unknown

Description

Testing Steps

Screenshots (if appropriate):

MiKDev and others added 3 commits June 24, 2021 16:25
Fixing this issue:

ERROR: for greenlight-v2  Cannot start service app: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "bin/start": permission denied: unknown
this issue appear in fa_IR locale
@@ -61,5 +61,9 @@ EXPOSE 80
ARG version_code
ENV VERSION_CODE=$version_code

# Set executable permission to start file
USER root
RUN chmod +x bin/start
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Can we change back to the default user after making this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably yes, You can change user after set +x permission to start file.

this solution based on following link.
https://willmurphyscode.net/2017/08/16/troubleshooting-a-basic-docker-issue-getting-a-script-into-the-container/

if you read this link at the end of article he used following configs.

USER root
RUN chmod +x /start.sh

USER redis
CMD /start.sh

but in my tests, I didn't change the user.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm ideally, we would do the same thing here. I'd prefer to avoid running all other commands as root

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed USER root and result was the same, You can check it.

@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarcloud
Copy link

sonarcloud bot commented Aug 31, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@farhatahmad farhatahmad merged commit c0e19f2 into bigbluebutton:master Aug 31, 2021
wbonis pushed a commit to styliteag/greenlight that referenced this pull request Dec 15, 2021
* Fix permission denied bug

Fixing this issue:

ERROR: for greenlight-v2  Cannot start service app: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "bin/start": permission denied: unknown

* fix persian sentence

this issue appear in fa_IR locale

* Remove unnecessary change user in Dockerfile

I removed USER root and result was the same

Co-authored-by: Ahmad Farhat <[email protected]>
thifranc pushed a commit to thifranc/greenlight that referenced this pull request Dec 27, 2021
* Fix permission denied bug

Fixing this issue:

ERROR: for greenlight-v2  Cannot start service app: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "bin/start": permission denied: unknown

* fix persian sentence

this issue appear in fa_IR locale

* Remove unnecessary change user in Dockerfile

I removed USER root and result was the same

Co-authored-by: Ahmad Farhat <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants