Question

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 "https://10.108.0.6:10250/containerLogs/pedal-hub-api/pedal-hub-api-6d9885ccd9-9bqmq/pedal-hub-api?f ││ 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 "https://10.108.0.6:10250/containerLogs/pedal-hub-api/pedal-hub-api-6d9885ccd9-9bqmq/pedal-hub-api?follow=true": 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.

https://www.digitalocean.com/support/

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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.