<?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 JayeX - Cloud Native CI/CD Built On Kubernetes</title>
		<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/</link>
		<description>Recent content in Troubleshooting on JayeX - Cloud Native CI/CD Built On Kubernetes</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Install</title>
				<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/install/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/install/</guid>
				<description>&lt;h2 id=&#34;check-you-are-using-a-cluster-git-url&#34;&gt;Check you are using a cluster Git URL&lt;/h2&gt;&#xA;&lt;p&gt;If using Terraform make sure the &lt;code&gt;values.auto.tfvars&lt;/code&gt; file contains a &lt;code&gt;jx_git_url = &lt;/code&gt; value that points to a &lt;strong&gt;cluster&lt;/strong&gt; git repo that contains a helmfile.yaml and a folder ./helmfiles. A common mistake is users set the &lt;code&gt;jx_git_url&lt;/code&gt; to the infrastructure repo instead.&lt;/p&gt;&#xA;&lt;p&gt;After a successful bootjob, these are few things to look for:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Secrets have been generated in the secret backend.&lt;/li&gt;&#xA;&lt;li&gt;A webhook has been created in the cluster git repo.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;issues-with-secret-generation&#34;&gt;Issues with secret generation&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;In some cases, the webhook generation will fail with a message :&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;jx gitops webhook update --warn-on-fail&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error: failed to find hmac token from secret:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This is normally because the secret generation failed during the boot job.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Bot Token</title>
				<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/bot-token/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/bot-token/</guid>
				<description>&lt;h1 id=&#34;commons-problems-with-bot-tokens&#34;&gt;Commons problems with Bot Tokens&lt;/h1&gt;&#xA;&lt;p&gt;Make sure the bot user has access to the organisation and / or git repositories that it needs.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;tip&lt;/em&gt; you can accept an organisation and repo GitHub invitation using&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;jx admin invitation&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Make sure the bot token has the correct permissions to perform the action you require&lt;/p&gt;</description>
			</item>
			<item>
				<title>Secrets</title>
				<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/secrets/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/secrets/</guid>
				<description>&lt;h1 id=&#34;commons-problems-with-secrets&#34;&gt;Commons problems with Secrets&lt;/h1&gt;&#xA;&lt;p&gt;Things to check:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;the general health&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;jx health status -A&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;the boot job&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;jx admin logs&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and make sure in the logs &lt;code&gt;jx secret populate&lt;/code&gt; command is successful.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;check the external secrets deployment and logs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kubectl get pods -n secret-infra&#xA;kubectl logs deploy/kubernetes-external-secrets -n secret-infra&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;check the status of the external secret using &lt;code&gt;kubectl&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kubectl get es -n [the namespace the secret / external secret is in]&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<item>
				<title>Webhooks</title>
				<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/webhooks/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/webhooks/</guid>
				<description>&lt;p&gt;Webhooks are used to trigger &lt;a href=&#34;https://github.com/jenkins-x/lighthouse&#34;&gt;lighthouse&lt;/a&gt; when you:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;merge commits to your main branch&lt;/li&gt;&#xA;&lt;li&gt;open a Pull Request&lt;/li&gt;&#xA;&lt;li&gt;push code to a Pull Request branch&lt;/li&gt;&#xA;&lt;li&gt;comment on a Pull Request to trigger ChatOps&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If webhooks are not working in your cluster then you won&amp;rsquo;t get ChatOps or pipelines triggered.&lt;/p&gt;&#xA;&lt;h3 id=&#34;requirements&#34;&gt;Requirements&lt;/h3&gt;&#xA;&lt;p&gt;For webhooks to work you must have a working &lt;code&gt;Ingress&lt;/code&gt; for the &lt;code&gt;hook&lt;/code&gt; endpoint from &lt;a href=&#34;https://github.com/jenkins-x/lighthouse&#34;&gt;lighthouse&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;The ingress defaults to using the domain name specified in &lt;code&gt;ingress.domain&lt;/code&gt; in your &lt;code&gt;jx-requirements.yml&lt;/code&gt; file.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Quickstart/Import</title>
				<link>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/quickstart-import/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://jx-docs-jx-jayex-io-jx-docs-pr-19.infra.jenkins-x.rocks/v3/admin/troubleshooting/quickstart-import/</guid>
				<description>&lt;p&gt;After a successful installation of JayeX, the first thing to do is to either create a quickstart or import an existing repository into JayeX.&#xA;They are both very similar, so the steps mentioned here can be applied for both.&lt;/p&gt;&#xA;&lt;p&gt;Import/Quickstart involves the following steps:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Cloning of the dev/cluster git repository&lt;/li&gt;&#xA;&lt;li&gt;Selecting and copying catalog folder into imported repository&lt;/li&gt;&#xA;&lt;li&gt;Pull Request in the cluster git repository&lt;/li&gt;&#xA;&lt;li&gt;Webhook creation in the imported repository&lt;/li&gt;&#xA;&lt;li&gt;Addition of the repository name to the &lt;code&gt;config&lt;/code&gt; configmap&lt;/li&gt;&#xA;&lt;li&gt;Source repository creation in the &lt;code&gt;jx&lt;/code&gt; namespace&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;issues-with-cloning-dev-repository&#34;&gt;Issues with cloning dev repository&lt;/h3&gt;&#xA;&lt;p&gt;If you encounter an issue of this form:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
