OpenLiberty / OpenLiberty/ci.docker
InstantOn app image fails to restore on OCP if deploy with /logs persistence
Open
Nobody has claimed this yet.
InstantOn
- Dominant language
- Shell
- Stars
- 48
- Forks
- 60
- Avg merge
- 3h 2m
- Merged PRs (30d)
- 3
Description
when we deploy InstantOn app image to OCP using the following statefulSet settings
apiVersion: liberty.websphere.ibm.com/v1
kind: WebSphereLibertyApplication
metadata:
name: quicksec-jakarta
labels:
app: quicksec_wlo
spec:
license:
accept: true
applicationImage: my_instanton_app_image
statefulSet:
storage:
size: 2Gi
mountPath: "/logs"
..............
the server will fail to start with the following errors:
mkdir: cannot create directory ‘/logs/checkpoint’: Permission denied
/opt/ibm/wlp/bin/server: line 208: /logs/console.log: Permission denied
tail: cannot open '/logs/console.log' for reading: No such file or directory
tail: no files remaining
Error (criu/log.c:221): Can't create log file /logs/checkpoint/restore.log: No such file or directory
/opt/ibm/wlp/bin/server: line 1377: kill: (215) - No such process
CWWKE0961I: Restoring the checkpoint server process failed. Check the /logs/checkpoint/restore.log log to determine why the checkpoint process was not restored. Launching the server without using the checkpoint image.
JVMJ9GC063E Unable to open file '/logs/verbosegc.log' for writing
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the WebSphereLibertyApplication deployment with the shown StatefulSet storage mounted at /logs, then inspect the /logs permissions and the /opt/ibm/wlp/bin/server startup path. Done means the InstantOn image restores successfully with /logs persistence and no permission errors for checkpoint, console, or verbose GC logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, shell
- Domain
- infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100