Cannot start hosted plugin
See original GitHub issueDescribe the bug
Starting a hosted plugin by HOSTED PLUGIN: start instance
command causes an error.
Che version
- latest
- nightly
- other: please specify
Steps to reproduce
- Clone and build any theia plugin e.g. https://github.com/eclipse/che-theia-samples/tree/master/samples/hello-world-backend-plugin
- Go to command palette and run
HOSTED PLUGIN: start instance
command.
See: plugin doesn’t start, error notification appears : Failed to run hosted plugin instance: unable to verify the first certificate
Expected behavior
Hosted plugin must start.
Runtime
- kubernetes (include output of
kubectl version
) - Openshift (include output of
oc version
) - minikube (include output of
minikube version
andkubectl version
) - minishift (include output of
minishift version
andoc version
) - docker-desktop + K8S (include output of
docker version
andkubectl version
) - other: (please specify)
Screenshots
Installation method
- chectl
- che-operator
- minishift-addon
- I don’t know
Environment
- my computer
- Windows
- Linux
- macOS
- Cloud
- Amazon
- Azure
- GCE
- other (please specify)
- other: please specify
Eclipse Che Logs
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Can't start Hosted Plugin instance on MacOS electron build
'Hosted Plugin: Start Instance' generates following output: yarn run v1.22.4. error Couldn't find a package.json file in "/".
Read more >Plugin won't activate - WordPress.org
I downloaded wordpress and I want to download the plugin it show's to me error ... I taked freenom domain and infinityfree hosting...
Read more >WordPress Plugin Troubleshooting: What To Do When Your ...
If you can't access your site · Double-click the wp-content folder to open it. · Double-click the plugins folder to open it. ·...
Read more >Can't find 'Hosted Mode' / Hosted: Plugin - Option in (F1) Menu
Hey, I'm trying to get a plugin to build work, I've ran the yeoman generator command and it successfully creates the new “subproject?...
Read more >Connect (No-Plugin Version) Does Not Start or Respond - IBM
Answer. Sometimes, depending on the environment, Aspera Connect may not launch or respond. This article explores ways to troubleshoot such ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are some thoughts around this issue. Everything works fine with signed certificates (not self-signed!), so on che.openshift.io this issue doesn’t reproduce, which is fine.
Theia instance (che editor, lets call it
Theia-Main
) in che-theia image runs as http node process. Which comes to the first question, should we run Theia instance with SSL parameters?So when user tries to call command
Hosted Plugin: Start Instance
, theia calls a command/usr/local/bin/node /home/theia/src-gen/backend/main.js /projects --hostname=127.0.0.1 --hostname=0.0.0.0 --port=3130
under the hood, so we’re getting a new instance of Theia (hosted instance, lets call this oneTheia-Hosted
). Then client onTheia-Main
, through https tries to reachTheia-Hosted
, which is hosts on http. And as far as we have self-signed certificate, we’re getting errorunable to verify the first certificate
.One good thing, that this is reproduce only when
Theia-Main
uses self-signed certs. And we can ignore this error, just adding environment variable to pod deployment:this works, hosted instance starts. But, to apply this environment variable we need somehow detect, whether we run development environment or production. I mean, not to put this environment variable into production.
Found another interesting bug inside Theia. When Theia instance runs with SSL configuration. There is the similar situation, but with another error message, when Theia tries to ping hosted instance:
We potentially can get the same error, when we’ll try to run Theia in che-theia image with SSL options. For this issue there is also simple fix, by adding
strictSSL: false
parameter into AbstractHostedInstanceManager.instanceOptions For this fix there will be PR into upstream, but not sure if this is urgent for now.But as for first use case, the fix can be applied only on our side modifying deployment configurations.
When
cheEditor
component is used, it needs to be modified by adding additional environment variable: