Unable to see logs on any pod of my node

Everytime I execute log command to see logs from my pod, I receive: stream logs failed Get…

stream logs failed Get " ││ ollow=true&tailLines=100&timestamps=true": EOF for pedal-hub-api/pedal-hub-api-6d9885ccd9-9bqmq (pedal-hub-api)

If I run kubectl logs -f pedal-hub-api-6d9885ccd9-9bqmq --namespace pedal-hub-api I end up seen

Error from server: Get "": EOF

I don’t what’s going on. Does someone know anything about it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 5, 2024

Hi there,

This is quite interesting, if you were to check the node status and the pod status what do you see?

kubectl get nodes
kubectl get pods -n pedal-hub-api

One thing that you should do here is to describe the pod in order to get some more detailed information about the pod and mainly check the events and status:

kubectl describe pod pedal-hub-api-6d9885ccd9-9bqmq -n pedal-hub-api

Feel free to share the output here after removing any sensitive information!

Also, on another note, have you tried restarting the pod to see if that helps?

kubectl delete pod pedal-hub-api-6d9885ccd9-9bqmq -n pedal-hub-api

If you are still seeing the problem, since this is a managed service, DigitalOcean might be able to provide support for this issue.

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel