-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
k3s log fill up my disk in short time #7128
Comments
You'll need to provide more than just the one repeating log message. Can you go back in the logs to just before that message started repeating, or perhaps just stop k3s, clean up the logs, and then start it again so that you can get the logs from the beginning of startup onwards? You might also confirm that nothing else obvious has gone wrong with this host, such as running out of disk space. |
@brandond Thanks for attention! Yes, I know the log provide no clue here. When I see the issue, the log file is 400GB+, impossible to see the beginning part of log. I restart the service to recollect the log, but the problem is gone when doing so. So losing the chance to collect meaningful log. Is this because of something going wrong with embedded etcd? Btw, my friend said he experienced the same on 1.23.10. Rebooting the node and the problem is gone. I will try to see if I can collect a meaningful log when it occurs again. |
It is happening again, I observe that there are more than one k3s server instances are running on the node, even I have stopped the k3s-service.
My system use openrc to start the service. On the normal node, I have
For some reason, k3s-service script dose not actually kill '/sbin/k3s server' processes, the left over process conflict to each other, and racing to write into the log files, hence collecting GBs of log in a couple of minutes. @brandond Is there any chance we can improve create_openrc_service_file() in the install.sh, make it robust, avoiding such situation from happening? |
Before starting up new k3s instance, make sure old ones are gone. To fix issue k3s-io#7128
Before starting up new k3s instance, make sure old ones are gone. To fix issue k3s-io#7128 Signed-off-by: Liyi Meng <[email protected]>
@liyimeng is this still an issue for you? I see the open PR, but it's been some time without an update. Thanks! |
@caroline-suse-rancher Thanks for your attention! I have been using the solution in the PR to solve this problem. So far so good. Not sure if it can help others. |
Environmental Info:
K3s Version: 1.25.6
Node(s) CPU architecture, OS, and Version:
x86_64, ubuntu 22.04
Cluster Configuration:
3 server 3 nodes
Describe the bug:
I have the fresh installed cluster running for 3-4 days, suddenly one of the master get filled up by k3s-service.log.
which keep printing
MILLIONS line of this text make the k3s-service.log grow into hundreds of GB in a couple of hours.
Steps To Reproduce:
install 1.25.6
Expected behavior:
cluster nodes keep running stalely.
Actual behavior:
one of the master get filled up with massive log printout, then kill the node in the end.
Additional context / logs:
It keep printing
The text was updated successfully, but these errors were encountered: