You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have deployed the continuous streaming of stdout and stderr in external once probe mode. In few deployments we are getting a lot of errors :
Error reading from stderr: read |0: file already closed
Error reading from stdout: read |0: file already closed
I don't have access to any GCP account right now, but can you please use some other interface (kubectl logs, docker logs) to access stderr logs. You can try running it locally also if you've access.
I could reproduce it after running the probe for a while. I got it approximately once in 7-10 attempts. This is more of a random log line, caused by pipe reading failing in different places when external process exits.
Thanks @manugarg for the quick response and resolving this issue.
Yes, we are using bbmc configurations. I think the problem is resolved now but if you need any further details or logs then please let me know. I will be happy to help.
Activity
manugarg commentedon May 3, 2024
@v-pratap Are you running the latest code? This error was fixed in:
2b2695e
v-pratap commentedon May 3, 2024
Hi @manugarg,

Yes I am using the latest code :
manugarg commentedon May 3, 2024
Can you post the full error message. It will have the code line logging this.
v-pratap commentedon May 3, 2024
There is nothing else than that :

manugarg commentedon May 3, 2024
That's weird. GCP log entry should be complete. We even have a test for it:
cloudprober/logger/logger_test.go
Line 416 in 896b8fd
I don't have access to any GCP account right now, but can you please use some other interface (kubectl logs, docker logs) to access stderr logs. You can try running it locally also if you've access.
manugarg commentedon May 3, 2024
Oh if you're using BBMC setup, logs can be either in /tmp/cloudprober.* files or journalctl.
Also, in your first screenshot, I see errors coming from different locations. If you limit to one location, you'll see a more useful pattern.
[-]Getting lots of file already closed error[/-][+]Getting random file already closed error[/+]manugarg commentedon May 4, 2024
I could reproduce it after running the probe for a while. I got it approximately once in 7-10 attempts. This is more of a random log line, caused by pipe reading failing in different places when external process exits.
#739 should fix it.
v-pratap commentedon May 4, 2024
Thanks @manugarg for the quick response and resolving this issue.
Yes, we are using bbmc configurations. I think the problem is resolved now but if you need any further details or logs then please let me know. I will be happy to help.