-
Notifications
You must be signed in to change notification settings - Fork 1
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
Handle failed json parsing events gracefully #33
Labels
Comments
StrongestNumber9
added
assistance
Extra attention, more information or help is needed
bug
Something isn't working
labels
May 24, 2023
Caught some:
Seems like there is a race condition between minikube truncating the logs and rlo_13 reading it:
Seems like minikube is removing the file and replacing it with a new one: # while true; do grep "^[^{]" $(realpath /var/log/containers/first-pod_default_first-pod-1-34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962.log); sleep 1; done;
grep: /var/lib/docker/containers/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962-json.log: No such file or directory
grep: /var/lib/docker/containers/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962-json.log: No such file or directory
grep: /var/lib/docker/containers/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962/34f13cf05ce007abfa5266e530bb224b6658652939e857e225b79f0960812962-json.log: No such file or directory |
Might be very well related to teragrep/rlo_13#6 |
minikube does not truncate files |
minikube uses json-file logging driver which uses https://github.com/moby/moby/blob/master/daemon/logger/loggerutils/logfile.go#L272-L291 os.Rename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Most likely caused by minikube rotating logs and file reading library gives invalid message
The text was updated successfully, but these errors were encountered: