If the OAM domain creation fails when running create-domain.sh
, run the following to diagnose the issue:
Run the following command to diagnose the create domain job:
$ kubectl logs <domain_job> -n <domain_namespace>
For example:
$ kubectl logs accessdomain-create-fmw-infra-sample-domain-job-c6vfb -n oamns
Also run:
$ kubectl describe pod <domain_job> -n <domain_namespace>
For example:
$ kubectl describe pod accessdomain-create-fmw-infra-sample-domain-job-c6vfb -n oamns
Using the output you should be able to diagnose the problem and resolve the issue.
Clean down the failed domain creation by following steps 1-4 in Delete the OAM domain home. Then recreate the PV and PVC then execute the OAM domain creation steps again.
If any of the above commands return the following error:
Failed to start container "create-fmw-infra-sample-domain-job": Error response from daemon: error while creating mount source path
'/scratch/OAMDockerK8S/accessdomainpv ': mkdir /scratch/OAMDockerK8S/accessdomainpv : permission denied
then there is a permissions error on the directory for the PV and PVC and the following should be checked:
a) The directory has 777 permissions: chmod -R 777 <work directory>/accessdomainpv
.
b) If it does have the permissions, check if an oracle
user exists and the uid
and gid
equal 1000
.
Create the oracle
user if it doesn’t exist and set the uid
and gid
to 1000
.
c) Edit the <work directory>/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-access-domain-pv-pvc/create-pv-pvc-inputs.yaml
and add a slash to the end of the directory for the weblogicDomainStoragePath
parameter:
weblogicDomainStoragePath: /scratch/OAMDockerK8S/accessdomainpv/
Clean down the failed domain creation by following steps 1-4 in Delete the OAM domain home. Then recreate the PV and PVC and then execute the OAM domain creation steps again.