Skip to content
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

log-collector-script is broken #499

Closed
s4rd1nh4 opened this issue Jul 2, 2020 · 2 comments
Closed

log-collector-script is broken #499

s4rd1nh4 opened this issue Jul 2, 2020 · 2 comments

Comments

@s4rd1nh4
Copy link

s4rd1nh4 commented Jul 2, 2020

What happened:

Trying to collect common operating system logs...
Trying to collect kernel logs...
Trying to collect mount points and volume information... ./eks-log-collector.sh: line 265: lvs: command not found
./eks-log-collector.sh: line 266: pvs: command not found
./eks-log-collector.sh: line 267: vgs: command not found

Trying to collect SELinux status...
Trying to collect iptables information...
Trying to collect installed packages...
Trying to collect active system services...
Trying to collect Docker daemon information...  Timed out, ignoring "docker info output "
        Timed out, ignoring "docker ps --all --no-truc output "
        Timed out, ignoring "docker images output "
        Timed out, ignoring "docker version output "

Trying to collect kubelet information... error: stat /var/lib/kubelet/kubeconfig: no such file or directory

Trying to collect L-IPAMD introspection information... Trying to collect L-IPAMD prometheus metrics... Trying to collect L-IPAMD checkpoint... cp: cannot stat '/var/run/aws-node/ipam.json': No such file or directory

Trying to collect sysctls information...
Trying to collect networking infomation... timeout: failed to run command 'conntrack': No such file or directory
timeout: failed to run command 'conntrack': No such file or directory
timeout: failed to run command 'ifconfig': No such file or directory
timeout: failed to run command 'ip': No such file or directory
timeout: failed to run command 'ip': No such file or directory

Trying to collect CNI configuration information...
Trying to collect Docker daemon logs...
Trying to archive gathered information...


What you expected to happen:
Collect logs.

How to reproduce it (as minimally and precisely as possible):
Run eks-log-collector.sh

Anything else we need to know?:

Environment:

  • AWS Region: sa-east-1
  • Instance Type(s):m5.large
  • EKS Platform version (use aws eks describe-cluster --name <name> --query cluster.platformVersion): eks.9
  • Kubernetes version (use aws eks describe-cluster --name <name> --query cluster.version): 1.14
  • AMI Version: amazon-eks-node-1.14-v20190927 (ami-0ffbe64a5b32ed07b)
  • Kernel (e.g. uname -a): Linux ip-172-16-76-204.sa-east-1.compute.internal 4.14.146-119.123.amzn2.x86_64 Template is missing source_ami_id in the variables section #1 SMP Mon Sep 23 16:58:43 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • Release information (run cat /etc/eks/release on a node):
@ezzoueidi
Copy link
Contributor

This is a bit late, but are you executing the eks-log-collector on eks node? It seems that docker is not running and kubelet is not installed.. It looks also a customized minimal ami as most linux commands (ip, ifconfig, conntrack, etc..) are not there.

@ravisinha0506
Copy link
Contributor

Hi,

Could you please confirm if this is still an issue? I tried running log-collector script and it succeeded.

[ec2-user@ip-192-168-0-76 ~]$ sudo bash eks-log-collector.sh

	This is version 0.6.2. New versions can be found at https://github.com/awslabs/amazon-eks-ami/blob/master/log-collector-script/

Trying to collect common operating system logs... 
Trying to collect kernel logs... 
Trying to collect mount points and volume information... 
Trying to collect SELinux status... 
Trying to collect iptables information... 
Trying to collect installed packages... 
Trying to collect active system services... 
Trying to Collect Containerd daemon information... 

Trying to collect Docker daemon information... 

	Warning: The Docker daemon is not running. 

Trying to collect kubelet information... 
Trying to collect L-IPAMD introspection information... Trying to collect L-IPAMD prometheus metrics... Trying to collect L-IPAMD checkpoint... 
Trying to collect Multus logs if they exist... 
Trying to collect sysctls information... 
Trying to collect networking infomation... conntrack v1.4.4 (conntrack-tools): 136 flow entries have been shown.

Trying to collect CNI configuration information... 
Trying to collect Docker daemon logs... 
Trying to Collect sandbox-image daemon information... 
Trying to archive gathered information... 

	Done... your bundled logs are located in /var/log/eks_i-0dd8fcaffcbe1399b_2021-11-15_2059-UTC_0.6.2.tar.gz

@cartermckinnon cartermckinnon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants