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 compose setup not working #13650

Open
1 task done
akoserwal opened this issue Sep 11, 2024 · 2 comments
Open
1 task done

docker compose setup not working #13650

akoserwal opened this issue Sep 11, 2024 · 2 comments
Labels
docker images Issues regarding Kong's official Docker images

Comments

@akoserwal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

latest

Current Behavior

Error: could not prepare Kong prefix at /var/run/kong: nginx configuration is invalid (exit code 1):
�nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /var/run/kong/nginx.conf:7
nginx: the configuration file /var/run/kong/nginx.conf syntax is ok
nginx: [emerg] bind() to unix:/var/run/kong/worker_events.sock failed (13: Permission denied)
nginx: configuration file /var/run/kong/nginx.conf test failed

Run with --v (verbose) or --vv (debug) for more details
Error: could not prepare Kong prefix at /var/run/kong: nginx configuration is invalid (exit code 1):
�nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /var/run/kong/nginx.conf:7
nginx: the configuration file /var/run/kong/nginx.conf syntax is ok
nginx: [emerg] bind() to unix:/var/run/kong/worker_events.sock failed (13: Permission denied)
nginx: configuration file /var/run/kong/nginx.conf test failed

Run with --v (verbose) or --vv (debug) for more details

Expected Behavior

No response

Steps To Reproduce

$ git clone https://github.com/Kong/docker-kong
$ cd docker-kong/compose/
$ KONG_DATABASE=postgres docker-compose --profile database up

Anything else?

No response

@chobits chobits added the docker images Issues regarding Kong's official Docker images label Sep 14, 2024
@chobits
Copy link
Contributor

chobits commented Sep 14, 2024

hi @akoserwal

I tried your steps and setup kong master successfully on my MacOS. which Operating system do you use? And make sure you have delete all the original kong docker container.

@akoserwal
Copy link
Author

Using Podman and Apple M1 Darwin (arm64)

db-1                  | LOG:  autovacuum launcher started
kong-1                | Error: could not prepare Kong prefix at /var/run/kong: nginx configuration is invalid (exit code 1):
kong-1                | nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /var/run/kong/nginx.conf:7
kong-1                | nginx: the configuration file /var/run/kong/nginx.conf syntax is ok
kong-1                | nginx: [emerg] bind() to unix:/var/run/kong/worker_events.sock failed (13: Permission denied)
kong-1                | nginx: configuration file /var/run/kong/nginx.conf test failed
kong-1                |
kong-1                |
kong-1                |   Run with --v (verbose) or --vv (debug) for more details```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker images Issues regarding Kong's official Docker images
Projects
None yet
Development

No branches or pull requests

2 participants