question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does ws-agent require JDK?

See original GitHub issue

I’m getting the below error when starting a ubuntu workspace using a base image that doesn’t have JDK.

[STDOUT] 2017/04/28 10:20:12 Terminal routes:
[STDOUT] 2017/04/28 10:20:12 ✓ Connect to pty(webscoket) ............... GET    /pty
[STDOUT] 2017/04/28 10:20:12 
[STDERR] /bin/sh: 57: [: Illegal number:  <<<<<<<<<<<<<<<<<
[STDOUT] Reading package lists...
[STDOUT] Building dependency tree...
[STDOUT] Reading state information...
[STDOUT] software-properties-common is already the newest version (0.96.20.6).

I think this refers to https://github.com/eclipse/che/blob/master/wsagent/agent/src/main/resources/org.eclipse.che.ws-agent.script.sh#L57

Is JDK required to use the ws-agent? We are developing with PHP in the ws not Java and the docs seem to imply it isn’t required.

Dockerfile in use https://github.com/outeredge/edge-docker-che-base/blob/master/Dockerfile

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Apr 28, 2017

Yeah, got it. Will issue a PR to fix it.

1reaction
ghostcommented, Apr 28, 2017

@davidwindell yes, jdk is required for a workspace agent.

And it looks like a bug in a bash script. Testing it on a clean ubuntu image now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

che wsagent can't load Java stack when only JDK 11 ... - GitHub
Using the new EAP 7.2 RHEL 8 JDK 11 base image, I managed to get a clean scratch build [0] from this commit...
Read more >
How to Use the Latest Certified JDK 8 Update with 13.5 Agents
This document will be updated as and when a newer version is certified. This document provides instructions on How to use the Latest...
Read more >
java.lang.instrument (Java SE 11 & JDK 11 )
An implementation is not required to provide a way to start agents from the command-line interface. When it does, then it supports the...
Read more >
Extra licensing required for Java JDK/JRE? — oracle-mosc
From version 1.8.0_202 Java is no longer free. Does this Java now have to be licensed additionally if it is only used by...
Read more >
jdk.management.agent (Java SE 17 & JDK 17)
This module allows a Java Virtual Machine to be monitored and managed via JMX API. See more information from the Monitoring and Management...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found