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(mount) update permissions to ensure access #321

Merged
merged 2 commits into from
Sep 13, 2022
Merged

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Sep 13, 2022

Modify the 'kong' user to match the ownership of the mounted plugin folder. Kong will not start because of permission errors if it cannot write to the /kong-plugin/servroot folder (which resides on the mount). Since those permissions are controlled by the host, we update the 'kong' user inside the container to match the UID and GID.

Modify the 'kong' user to match the ownership of the mounted plugin folder
Kong will not start because of permission errors if it cannot write to the
/kong-plugin/servroot folder (which resides on the mount).
Since those permissions are controlled by the host, we update the 'kong' user
inside the container to match the UID and GID.
@hanshuebner hanshuebner merged commit c9279f8 into master Sep 13, 2022
@hanshuebner hanshuebner deleted the permissions branch September 13, 2022 13:37
@gAmUssA
Copy link

gAmUssA commented Sep 13, 2022

My permission error went away, but I've got another error

Declarative file "kong.yml/yaml/json" not found, skipping import
Error: nginx configuration is invalid (exit code 1):
nginx: the configuration file /kong-plugin/servroot/nginx.conf syntax is ok
nginx: [emerg] bind() to unix:/kong-plugin/servroot/worker_events.sock failed (1: Operation not permitted)
nginx: configuration file /kong-plugin/servroot/nginx.conf test failed

Does anyone see it?

Thank you

@dcominottim
Copy link

My permission error went away, but I've got another error

Declarative file "kong.yml/yaml/json" not found, skipping import
Error: nginx configuration is invalid (exit code 1):
nginx: the configuration file /kong-plugin/servroot/nginx.conf syntax is ok
nginx: [emerg] bind() to unix:/kong-plugin/servroot/worker_events.sock failed (1: Operation not permitted)
nginx: configuration file /kong-plugin/servroot/nginx.conf test failed

Does anyone see it?

Thank you

I am getting the same error with pongo 2.2.0 while trying to test https://github.com/Kong/kong-plugin. I am running inside of WSL2.

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.

4 participants