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

Check for serviceability storage prior to executing trace/dump operations #344

Open
1 task
leochr opened this issue May 26, 2022 · 0 comments
Open
1 task
Assignees

Comments

@leochr
Copy link
Member

leochr commented May 26, 2022

Storage for serviceability is required to store the files from Trace and Dump day-2 operations.

Check whether the OpenLibertyApplication instance has the storage for serviceability enabled and configured correctly prior to executing the operation or output a better error message to configure storage for serviceability.

Current error message from executing Dump operation on an application pod that hasn't configured storage for serviceability:

Encountered error while running command: [/bin/sh -c mkdir -p /serviceability/liberty/liberty-app-sample-6fd4786c57-dm2fm && server dump --archive=/serviceability/liberty/liberty-app-sample-6fd4786c57-dm2fm/2022-05-26_17:21:11.zip --include=thread,heap,] ; Stderr: mkdir: cannot create directory ‘/serviceability’: Permission denied
; Error: command terminated with exit code 1
  • The fix should be added for WLO as well
@leochr leochr changed the title Check serviceability storage prior to executing trace/dump operations Check for serviceability storage prior to executing trace/dump operations May 26, 2022
@leochr leochr added 23004 and removed 23004 labels Mar 13, 2023
@leochr leochr removed the 23004 label Mar 27, 2023
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

2 participants