<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Troubleshooting on Tetragon - eBPF-based Security Observability and Runtime Enforcement</title>
		<link>/docs/troubleshooting/</link>
		<description>Recent content in Troubleshooting on Tetragon - eBPF-based Security Observability and Runtime Enforcement</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="/docs/troubleshooting/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>System dump</title>
				<link>/docs/troubleshooting/sysdump/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/troubleshooting/sysdump/</guid>
				<description>&lt;p&gt;Before you report a problem, make sure to retrieve the necessary information&#xA;from your cluster.&lt;/p&gt;&#xA;&lt;p&gt;Tetragon&amp;rsquo;s bugtool captures potentially useful information about your&#xA;environment for debugging. The tool is meant to be used for debugging a single&#xA;Tetragon agent node but can be run automatically in a cluster. Note that in the&#xA;context of Kubernetes, the command needs to be run from inside the Tetragon&#xA;Pod&amp;rsquo;s container.&lt;/p&gt;&#xA;&lt;p&gt;Key information collected by bugtool:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Log level</title>
				<link>/docs/troubleshooting/loglevel/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/troubleshooting/loglevel/</guid>
				<description>&lt;p&gt;When debugging, it might be useful to change the log level. The default log&#xA;level is controlled by the log-level option at startup:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Enable debug level with &lt;code&gt;--log-level=debug&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Enable trace level with &lt;code&gt;--log-level=trace&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;change-log-level-on-kubernetes&#34;&gt;Change log level on Kubernetes&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#change-log-level-on-kubernetes&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;div class=&#34;alert alert-danger warning callout&#34; role=&#34;alert&#34;&gt;&#xA;  &lt;strong&gt;Warning&lt;/strong&gt; The Pods of the Tetragon DaemonSet will be restarted automatically after&#xA;changing the debug Helm value.&#xA;&lt;/div&gt;&#xA;&#xA;&lt;p&gt;It is possible to change the log level of Tetragon&amp;rsquo;s DaemonSet Pods by setting&#xA;&lt;code&gt;tetragon.debug&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>BPF programs statistics</title>
				<link>/docs/troubleshooting/bpf-progs-stats/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/troubleshooting/bpf-progs-stats/</guid>
				<description>&lt;p&gt;This page shows you how to monitor BPF programs statistics.&lt;/p&gt;&#xA;&lt;h2 id=&#34;concept&#34;&gt;Concept&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#concept&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The BPF subsystem provides performance data for each loaded program and tetragon&#xA;exports that in metrics or display that in terminal in top like tool.&lt;/p&gt;&#xA;&lt;h2 id=&#34;in-terminal&#34;&gt;In terminal&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#in-terminal&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;The tetra command allows to display loaded BPF programs in terminal with:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tetra debug progs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The default output shows tetragon programs only and looks like:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;2024-10-31 11:12:45.94715546 +0000 UTC m=+8.038098448&#xA;&#xA;Ovh(%)  Id      Cnt     Time    Name                            Pin&#xA;  0.00  22201   0       0       event_execve                    /sys/fs/bpf/tetragon/__base__/event_execve/prog&#xA;  0.00  22198   0       0       event_exit_acct_process         /sys/fs/bpf/tetragon/__base__/event_exit/prog&#xA;  0.00  22200   0       0       event_wake_up_new_task          /sys/fs/bpf/tetragon/__base__/kprobe_pid_clear/prog&#xA;  0.00  22207   0       0       tg_cgroup_rmdir                 /sys/fs/bpf/tetragon/__base__/tg_cgroup_rmdir/prog&#xA;  0.00  22206   0       0       tg_kp_bprm_committing_creds     /sys/fs/bpf/tetragon/__base__/tg_kp_bprm_committing_creds/prog&#xA;  0.00  22221   0       0       generic_kprobe_event            /sys/fs/bpf/tetragon/syswritefollowfdpsswd/generic_kprobe/__x64_sys_close/prog&#xA;  0.00  22225   0       0       generic_kprobe_event            /sys/fs/bpf/tetragon/syswritefollowfdpsswd/generic_kprobe/__x64_sys_write/prog&#xA;  0.00  22211   0       0       generic_kprobe_event            /sys/fs/bpf/tetragon/syswritefollowfdpsswd/generic_kprobe/fd_install/prog&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The fields have following meaning:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Troubleshooting gRPC TLS</title>
				<link>/docs/troubleshooting/grpc-tls/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>/docs/troubleshooting/grpc-tls/</guid>
				<description>&lt;p&gt;The setup steps live in &lt;a href=&#34;/docs/installation/grpc-tls/&#34;&gt;gRPC TLS / mTLS&lt;/a&gt;.&#xA;This page covers the three errors operators hit most often.&lt;/p&gt;&#xA;&lt;h2 id=&#34;x509-certificate-signed-by-unknown-authority&#34;&gt;&lt;code&gt;x509: certificate signed by unknown authority&lt;/code&gt;&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#x509-certificate-signed-by-unknown-authority&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;Seen on the client during the TLS handshake.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Cause — &lt;code&gt;tetra&lt;/code&gt; does not trust the CA that signed the server certificate.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Fix — pass the CA bundle that issued the server cert:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tetra --tls-ca-cert-files ca.crt ...&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When the chart auto-provisioned the cert, copy &lt;code&gt;ca.crt&lt;/code&gt; out of the Secret:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kubectl -n kube-system get secret tetragon-grpc-server-cert &lt;span style=&#34;color:#8045ff&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  -o &lt;span style=&#34;color:#111&#34;&gt;jsonpath&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#d88200&#34;&gt;&amp;#39;{.data.ca\.crt}&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#111&#34;&gt;|&lt;/span&gt; base64 -d &amp;gt; ca.crt&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
			</item>
	</channel>
</rss>
