-
Notifications
You must be signed in to change notification settings - Fork 15
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
Could not find logs for "app name" #106
Comments
What do the pod logs say?
|
They say a lot (that's a rails app), so when accessing the logs from |
ok i just wanted to make sure we are getting data from kuberentes. could you check out the graphs at |
That means that fluentd isn't processing any log entries. Let me see if I can come up with another check |
I run a bash prompt into a fluentd container and see the Dockerfile at the root of the container file system. There is this line in the Dockerfile:
I isolated the warning for one of my app process but basically, I've got this error for every pod running on my k8s cluster:
|
I have never seen taht error before. This is interesting. Is this on AWS? GKE? Bare metal? How did you provison your cluster? |
This is on AWS, provisionned with |
what does a stat say if you do it on one of the log files? |
@jchauncey could this be related to #50 I've been burned by that a few times before, albeit that was with |
potentially but he does see the files in the container unlike #50 where the files dont even show up |
Ok so:
So this is a symlink and if I stat the target:
So it doesn' exist, I have nothing in
|
Alright so this does look like it is similar to #50 |
Ok I read (quickly) about this "famous" issue, but thought it was not my issue since the message of
and I had an error on 2. Anyway thanks for the help, I will follow the workaround 👍 |
=) |
Had a similar problem, but fixed by simply deleting one of my deis-logger-fluentd pods |
Hi, I am encountering this issue. I setup my cluster using kubeadm and havent made any changes to the kubernetes setup. Please how do I apply this fix? I see /var/lib/docker/containers have content in it, but /var/log/containers have nothing in it, and deis-logger continuously outputs 'cannot find logs for '<appname>' Thanks |
@rukor if you are having this problem only for some apps, maybe check your deis-logger-fluentd pod logs in kubernetes to see if any of them is having issues. |
Thank you. I have it on all apps. I deleted all the deis logger fluentd pods, and when they restarted I still had the same problem
… On 2 Jan 2017, at 4:02 pm, Oli Lalonde ***@***.***> wrote:
@rukor if you are having this problem only for some apps, maybe check your deis-logger-fluentd pod logs in kubernetes to see if any of them is having issues.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@rukor any chance this might fix your issue? deis/fluentd#51 Otherwise, I have no idea... You might have better luck asking on the Deis community slack. |
@olalonde Thanks. I have no idea how to apply that. I am running deis 2.9.1, I assume as the linked item is a merge, the contents would already be included in what I am currently running. |
Yep, that fix has been in since v2.6. I think the first thing we need to do is check the logs of all your fluentd and logger pods. Can you post a gist of your log output? |
The logs turn out empty now, I think perhaps kubernetes have reccycled them. I'll delete them and post the logs when they restart. |
Check and see what's in /var/log/containers in the fluentd instances |
Thanks. I checked that and I see nothing.
Pretty much the same for all instances. I can see some stuff here though:
|
If it helps, I did setup my kubernetes cluster using kubeadm. |
When you do `deis logs` there is an issue in the error message that
describes your problem. That issue will link you to a workaround. That's
what you will need to do to fix your problem.
…On Jan 7, 2017 5:04 PM, "rukor" ***@***.***> wrote:
If it helps, I did setup my kubernetes cluster using kubeadm.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#106 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAaRGFYtFpnkZCQvr_6GFW3oAhIqTMYCks5rQAvtgaJpZM4JuKrp>
.
|
@jchauncey Thanks. It actually did fix it. Somehow, I had looked at that page before, and veered on to the coreos bit, and got lost. Adding the log-driver=json fixed it for me. Thanks again. |
Hi Team, |
@pasanchamikara, it's not a keyring. It's a ring buffer. That is a "circular" in-memory data structure where, once full, the oldest entry is overwritten with the newest entry. Also, are you aware that this software was sunset 5 years ago and isn't supported? The state of the art in deploying and hosting cloud native applications has improved by leaps and bounds since then. As a member of the team that built this -- please, don't use this. |
Hello,
I deployed Deis Workflow (v2.4) on a Kubernetes cluster and deployed one app successfully (via buildpacks). Running
deis logs
outputs:My logger and fluentd pods are running:
However:
Fluentd pods have my app's logs mounted in
/var/log/containers
:How can I debug further ?
Regards
The text was updated successfully, but these errors were encountered: