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

Command not working in Apache Camel K #17015

Closed
4 of 22 tasks
Katka92 opened this issue May 26, 2020 · 12 comments
Closed
4 of 22 tasks

Command not working in Apache Camel K #17015

Katka92 opened this issue May 26, 2020 · 12 comments
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@Katka92
Copy link
Contributor

Katka92 commented May 26, 2020

Describe the bug

There is just one command in Apache Camel K devfile. It is displayed only in Terminal -> Run task... view, it is not displayed in the right panel in section My Workspace.
When the user runs the command, it fails.

Che version

  • latest 7.13.1
  • nightly
  • other: please specify

Steps to reproduce

  • go to Get Started page
  • click on Apache Camel K
  • wait for workspace to start
  • click Terminal -> Run Task...
  • select the only command here
  • select Continue without scanning the task output option

Expected behavior

If the command should work correctly or be removed.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Screenshot from 2020-05-26 10-43-41
Screenshot from 2020-05-26 10-41-41

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Log from theia-ide container:

2020-05-26 09:18:03.891 task INFO Created new task, id: 1, process id: 5, OS PID: 126, context: file:///projects 
2020-05-26 09:18:04.300 terminal ERROR Couldn't attach - can't find terminal with id: 5  
2020-05-26 09:18:04.315 root INFO Failed to set task status: the corresponding terminal is not found 
2020-05-26 09:18:04.447 root ERROR Couldn't resize terminal -1, because it doesn't exist. 
2020-05-26 09:18:04.448 terminal ERROR Error attaching to terminal id 5, the terminal is most likely gone. Starting up a new terminal instead. 
@Katka92 Katka92 added the kind/bug Outline of a bug - must adhere to the bug report template. label May 26, 2020
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label May 26, 2020
@Katka92 Katka92 mentioned this issue May 26, 2020
10 tasks
@skabashnyuk skabashnyuk added area/languages Issues related to Language extensions or plugins integration. severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels May 26, 2020
@ericwill
Copy link
Contributor

@apupier can you take a look?

@apupier
Copy link
Contributor

apupier commented Aug 17, 2020

do you have the Camel K integration file opened in editor when launching the command?

@Katka92
Copy link
Contributor Author

Katka92 commented Aug 24, 2020

@apupier Could you please explain where can I find Camel K integration file?

@apupier
Copy link
Contributor

apupier commented Aug 24, 2020

When using the Apache Camel K defautl stack, there are several Camel K integration files. For instance, the file named Sample.java inside examples folder

@Katka92
Copy link
Contributor Author

Katka92 commented Aug 27, 2020

I've tried to open the file but the command is still failing on exit code 127.
Screenshot from 2020-08-27 10-57-47

@apupier
Copy link
Contributor

apupier commented Aug 27, 2020

that's not very nice not having more information :-(

have you configured an access to a Camel K instance?
Is it working when you open a terminal in vscode-camelkxxx container and call the kamel run <thepathtoSample.java>?

@Katka92
Copy link
Contributor Author

Katka92 commented Sep 14, 2020

have you configured an access to a Camel K instance?

@apupier So there are some extra steps I need to do to configure Camel K instance? Could you please provide me those steps?

Is it working when you open a terminal in vscode-camelkxxx container and call the kamel run <thepathtoSample.java>?

Screenshot from 2020-09-14 08-20-22

@apupier
Copy link
Contributor

apupier commented Sep 14, 2020

So there are some extra steps I need to do to configure Camel K instance?

yes, due to Che limitations #15391

Could you please provide me those steps?

it depends on your version and how you are used to configure the Kubernetes connection in your Eclipse Che workspace.

Some possibilities described here:

@apupier
Copy link
Contributor

apupier commented Sep 14, 2020

Is it working when you open a terminal in vscode-camelkxxx container and call the kamel run <thepathtoSample.java>?

Screenshot from 2020-09-14 08-20-22

so this error means that the Camel K instance is not available. This is up to the user to do it due to Che limitation #15391

@Katka92
Copy link
Contributor Author

Katka92 commented Sep 14, 2020

Thank you for your answer, I'll try that. 👍

@che-bot
Copy link
Contributor

che-bot commented Mar 17, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 17, 2021
@ericwill ericwill removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 17, 2021
@che-bot
Copy link
Contributor

che-bot commented Sep 20, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 20, 2021
@che-bot che-bot closed this as completed Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/languages Issues related to Language extensions or plugins integration. kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants