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

If my cluster is not reachable I get a "Fatal IDE error" #621

Closed
adietish opened this issue Nov 23, 2023 · 0 comments · Fixed by #610
Closed

If my cluster is not reachable I get a "Fatal IDE error" #621

adietish opened this issue Nov 23, 2023 · 0 comments · Fixed by #610
Assignees
Labels
bug Something isn't working severity/major
Milestone

Comments

@adietish
Copy link
Contributor

adietish commented Nov 23, 2023

Steps:

  1. ASSERT: make sure that the cluster for the current context is not reachable
  2. EXEC: launch IDE and open OpenShift toolkit window (you can also, if you have 2 contexts, switch to the unreachable context using intellij-kubernetes)

Result:
you get a "Fatal IDE error" reported.
The stacktrace is something similar to the following:

java.io.IOException: Process exited with an error: 1 (Exit value: 1) {
	"message": "unable to list all dynamic resources required to find components: failed to fetch api groups from kubernetes: Get \"https://api.akundu-221120231226.devcluster.openshift.com:6443/api?timeout=32s\": dial tcp: lookup api.akundu-221120231226.devcluster.openshift.com on 10.2.0.1:53: no such host"
}

	at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithResult(ExecHelper.java:261)
	at org.jboss.tools.intellij.openshift.utils.odo.OdoCli.execute(OdoCli.java:280)
	at org.jboss.tools.intellij.openshift.utils.odo.OdoCli.discover(OdoCli.java:891)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationRootNodeOdo.discover(ApplicationRootNodeOdo.java:275)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode.addContext(ApplicationsRootNode.java:180)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode.loadProjectModel(ApplicationsRootNode.java:134)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode.lambda$getOdo$1(ApplicationsRootNode.java:85)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
	at java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:887)
	at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2325)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode.getOdo(ApplicationsRootNode.java:85)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsRootNode.getOdo(ApplicationsRootNode.java:92)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.getChildElements(ApplicationsTreeStructure.java:71)
	at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:411)
	at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:329)
	at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:323)
	at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:343)
	at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:568)
	at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:464)
	at com.intellij.ui.tree.AsyncTreeModel$Command.get(AsyncTreeModel.java:430)
	at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:306)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1133)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:76)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtilService.runActionAndCancelBeforeWrite(ProgressIndicatorUtilService.java:63)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:133)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:114)
	at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
	at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:71)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:111)
	at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:76)
	at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:188)
	at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:165)
	at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:433)
	at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:249)
	at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.executeFirstTaskAndHelpQueue(BoundedTaskExecutor.java:227)
	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218)
	at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:215)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
	at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
	at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
	at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithResult(ExecHelper.java:258)
	... 51 more
@adietish adietish self-assigned this Nov 23, 2023
@adietish adietish added bug Something isn't working severity/major labels Nov 23, 2023
@adietish adietish changed the title If my cluster is not reachable I get a "Fatal IDE error" upon IDE startup If my cluster is not reachable I get a "Fatal IDE error" Nov 23, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 23, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 23, 2023
@adietish adietish moved this to 👀 In review in IDE Cloudaptors Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
adietish added a commit to adietish/intellij-openshift-connector that referenced this issue Nov 24, 2023
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in IDE Cloudaptors Nov 24, 2023
sbouchet pushed a commit that referenced this issue Nov 24, 2023
…610)

* fix: refreshing tree upon config change or kubeconfig removal (#595)

Signed-off-by: Andre Dietisheim <[email protected]>

* display default-/first namespace if current doesnt exist

Signed-off-by: Andre Dietisheim <[email protected]>

* correct type of parent to CreateComponentLinkNode

Signed-off-by: Andre Dietisheim <[email protected]>

* fix: dont 'fatal IDE error' when cluster is not reachable (#621)

Signed-off-by: Andre Dietisheim <[email protected]>

---------

Signed-off-by: Andre Dietisheim <[email protected]>
@sbouchet sbouchet added this to the 1.7.0 milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity/major
Projects
Archived in project
2 participants