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

Liberty depends on the ps command during shutdown #6956

Closed
arthurdm opened this issue Mar 19, 2019 · 3 comments
Closed

Liberty depends on the ps command during shutdown #6956

arthurdm opened this issue Mar 19, 2019 · 3 comments

Comments

@arthurdm
Copy link

If using a container that has ps removed (such as a minimalist Docker image) we get this error from Liberty while performing server stop:

java.io.IOException: Cannot run program "ps": error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1059)
    at com.ibm.ws.kernel.boot.internal.PSProcessStatusImpl.isPossiblyRunning(PSProcessStatusImpl.java:62)
    at com.ibm.ws.kernel.boot.internal.commands.ProcessControlHelper.waitForProcessStop(ProcessControlHelper.java:142)
    at com.ibm.ws.kernel.boot.internal.commands.ProcessControlHelper.stop(ProcessControlHelper.java:120)
    at com.ibm.ws.kernel.boot.Launcher.handleActions(Launcher.java:262)
    at com.ibm.ws.kernel.boot.Launcher.createPlatform(Launcher.java:117)
    at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:59)
    at com.ibm.ws.kernel.boot.cmdline.EnvCheck.main(EnvCheck.java:35)
Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:291)
    at java.lang.ProcessImpl.start(ProcessImpl.java:167)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1040)
    ... 7 more
@cbridgha
Copy link
Member

PR: #6953

@cbridgha
Copy link
Member

OK So after more testing, and I messed up the initial fix - I had to create another PR - but have def validated it fixes the issue... #6998

Will be in 19004 (Not 19003)

@cbridgha
Copy link
Member

cbridgha commented Dec 5, 2019

This was fixed in 19004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants