-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
file-log plugin fails to log to /dev/stdout
with Permission Denied
error
#12129
Comments
Could you use some other methods, not using kong. to open this file to check if this file could be opened normally? For example, |
Sure @chobits. See output below:
|
I'm not very familiar with the permission control under linux system, but it seems that your kong user/group could not modify the stdout file with irght permission |
It seems a known issue, i search it and find some questions associated to it, but not find a good solution for k8s container. https://discuss.konghq.com/t/file-log-plugin-not-able-to-log-to-dev-stdout/9347 |
@chobits thanks for taking a look. Yes, this is the same issue as #8067. I created this issue as that issue was closed without resolution. Do you recommend opening another issue in https://github.com/Kong/docker-kong. |
hi @gsadhani keep your question here, discussion is more lively. And most kong developers and fans will see it. |
I created an internal ticket (KAG-3501) to track this issue. |
@ADD-SP , could you add the ticket number here? |
Is there an existing issue for this?
Kong version (
$ kong version
)3.4
Current Behavior
file-log plugin fails to log to /dev/stdout with Permission Denied error when running in a container.
I have tried the following:
/var/log/kong/kong.log
to/dev/stdout
and log to/var/log/kong/kong.log
But the issue persists.
Expected Behavior
The file-log plugin should be able to log to
/dev/stdout
as indicated in the documentation.Steps To Reproduce
Anything else?
No response
The text was updated successfully, but these errors were encountered: