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

Can't list helm when connecting to devsandbox for the first time, using 'default' as project #975

Open
sbouchet opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sbouchet
Copy link
Collaborator

sbouchet commented Feb 6, 2025

by default, when connecting to devsandbox for the first time, the default project/namespace is set to 'default', resulting to below exception:

2025-02-06 16:28:15,604 [ 278192]   WARN - org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure - Process exited with an error: 1 (Exit value: 1) Error: list: failed to list: secrets is forbidden: User "stephane-bouchet" cannot list resource "secrets" in API group "" in the namespace "default"

java.io.IOException: Process exited with an error: 1 (Exit value: 1) Error: list: failed to list: secrets is forbidden: User "stephane-bouchet" cannot list resource "secrets" in API group "" in the namespace "default"

	at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithResult(ExecHelper.java:261)
	at org.jboss.tools.intellij.openshift.utils.helm.HelmCli.execute(HelmCli.java:206)
	at org.jboss.tools.intellij.openshift.utils.helm.HelmCli.list(HelmCli.java:156)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.lambda$getHelmReleases$8(ApplicationsTreeStructure.java:236)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.load(ApplicationsTreeStructure.java:245)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.getHelmReleases(ApplicationsTreeStructure.java:236)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.createNamespaceChildren(ApplicationsTreeStructure.java:141)
	at org.jboss.tools.intellij.openshift.tree.application.ApplicationsTreeStructure.getChildElements(ApplicationsTreeStructure.java:84)
	at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:424)
	at com.intellij.ui.tree.StructureTreeModel.validateChildren(StructureTreeModel.java:332)
	at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:326)
	at com.intellij.ui.tree.StructureTreeModel.getChildren(StructureTreeModel.java:348)
	at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.computeNode(AsyncTreeModel.java:668)
	at com.intellij.ui.tree.AsyncTreeModel$Command.computeNode(AsyncTreeModel.java:541)
	at com.intellij.util.concurrency.Invoker$Task.run(Invoker.java:361)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.run(CoroutineInvokerDelegate.kt:38)
	at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:189)
	at com.intellij.util.concurrency.Invoker.lambda$offerSafely$0(Invoker.java:173)
	at com.intellij.util.concurrency.Invoker$Background.lambda$offer$0(Invoker.java:470)
	at com.intellij.util.concurrency.CoroutineInvokerDelegate.offer$lambda$2(CoroutineInvokerDelegate.kt:27)
	at com.intellij.util.concurrency.ConcurrentBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend$lambda$1$lambda$0(CoroutineInvokerDelegate.kt:118)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext$lambda$1(CoroutineInvokerDelegate.kt:78)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContextInner(coroutines.kt:341)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invokeSuspend(coroutines.kt:233)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at com.intellij.openapi.progress.CoroutinesKt$blockingContext$2.invoke(coroutines.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:62)
	at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:261)
	at com.intellij.openapi.progress.CoroutinesKt.blockingContext(coroutines.kt:232)
	at com.intellij.util.concurrency.BgtCoroutineInvokerDelegate.withProperContext(CoroutineInvokerDelegate.kt:77)
	at com.intellij.util.concurrency.ConcurrentBgtCoroutineInvokerDelegate$doLaunch$1.invokeSuspend(CoroutineInvokerDelegate.kt:117)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
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)
	... 36 more

@sbouchet sbouchet added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants