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

container real time logging does not work as expected #978

Open
rayzhou2017 opened this issue Jul 27, 2020 · 5 comments
Open

container real time logging does not work as expected #978

rayzhou2017 opened this issue Jul 27, 2020 · 5 comments
Assignees
Labels
area/logging kind/bug Categorizes issue or PR as related to a bug. priority/low
Milestone

Comments

@rayzhou2017
Copy link
Contributor

Describe the bug
Enable components in cluster configuration, and check the logs using

kubectl logs -n kubesphere-system $(kubectl get pod -n kubesphere-system -l app=ks-install -o jsonpath='{.items[0].metadata.name}') -f

Also open the pod ks-installer container log and enable real time to compare the result. At first time, it works perfect fine, but after a while, the container real time logging seems to stop working as you can see from the screenshot below
Screen Shot 2020-07-27 at 5 25 55 PM

Versions used(KubeSphere/Kubernetes)
KubeSphere: 3.0.0-dev

@rayzhou2017 rayzhou2017 added area/logging kind/bug Categorizes issue or PR as related to a bug. priority/low labels Jul 27, 2020
@rayzhou2017 rayzhou2017 added this to the 3.0.0 milestone Jul 27, 2020
@leoendless
Copy link
Contributor

leoendless commented Jul 27, 2020

Please check if the apiserver is disconnected during the update.

@rayzhou2017
Copy link
Contributor Author

rayzhou2017 commented Jul 27, 2020

aha, that is true. Changing cluster configuration will restart api server. Let me check the logs in other docker

@rayzhou2017
Copy link
Contributor Author

It seems the problem does exist. I install a nginx pod, then in another pod to curl the nginx sevice. When enable real time logging the nginx, it does not show the access log. Then I disable the real time logging, the last time access logs pop up as you can see the 10.233.99.99 log.
Screen Shot 2020-07-27 at 7 36 10 PM
Screen Shot 2020-07-27 at 7 36 20 PM

harrisonliu5 pushed a commit that referenced this issue Oct 17, 2023
* fix: monitor fetchlist  add cluster params

* fix: kafka 创建 topic 长度扩充,以及支持 .

* fix: copyWriting
@hanqingwu
Copy link

any progress ?
same problem.

@hanqingwu
Copy link

I have find root cause in kubesphere-apiserver respoonseWriter , so there is a operation flush need add in code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/bug Categorizes issue or PR as related to a bug. priority/low
Projects
None yet
Development

No branches or pull requests

5 participants