18.3 Known Issues
This section contains information about known issues.
Domain Creation Failure With WLST
The instructions in this section relate to problems creating Oracle Access Management (OAM) domains using WLST. See, Creating OAM Domains Using WLST Offline Scripts.
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.Failed to start container "create-fmw-infra-sample-domain-job": Error response from daemon: error while creating mount source path
'/nfs_volumes/oam/accessdomainpv ': mkdir /nfs_volumes/oam/accessdomainpv : permission denied
Then there is a permissions error on the directory for the PV and PVC and the
following should be checked:- The directory has 777 permissions:
chmod -R 777 <persistent_volume>/accessdomainpv
. - If it does have the permissions, check if an oracle user exists and the uid is 1000
and gid is 0.
Create the oracle user if it doesn’t exist and set the uid to 1000 and gid to 0.
- Edit the
$
WORKDIR/kubernetes/create-weblogic-domain-pv-pvc/create-pv-pvc-inputs.yaml
and add a slash to the end of the directory for theweblogicDomainStoragePath
parameter:weblogicDomainStoragePath: /nfs_volumes/oam/accessdomainpv/
Domain Creation Failure With WDT Models
The instructions in this section relate to problems creating OAM domains using WDT models. See, Creating OAM Domains Using WDT Models.
domain.yaml
file, run the following steps to diagnose the issue:
- Check the domain events, by running the following
command:
For example:kubectl describe domain <domain name> -n <domain_namespace>
Using the output, you should be able to diagnose the problem and resolve the issue.kubectl describe domain accessdomain -n oamns
- If the instrospector job fails due to validation errors, then you can recreate
the domain resources using the
commands:
kubectl delete -f domain.yaml
kubectl create -f domain.yaml
- If the domain creation fails because of database issues:
- Create a helper
pod:
kubectl run --image=container-registry.oracle.com/middleware/oam_cpu:14.1.2.1.0-jdk17-ol8-<YYMMDD> --image-pull-policy="IfNotPresent" --overrides='{"apiVersion": "v1","spec":{"imagePullSecrets": [{"name": "orclcred"}]}}' helper -n oamns -- sleep infinity
- Once you have diagnosed the problem, clean down the failed domain creation by following:
- Execute the steps in Creating OAM Domains Using WDT Models again.
Note:
You might need to recreate the domain creation image depending upon the errors. Domain creation logs are stored in<persistent_volume>/domains/wdt-logs
. - Create a helper
pod:
- If there is any issues bringing up the administration server, OAM managed server
pods or policy manager pods, you can run the following to check the
logs:
For example:kubectl logs <pod> -n <domain_namespace>
If the above does not give any information you can also run:kubectl logs accessdomain-adminserver -n oamns
For example:kubectl describe pod <pod> -n <domain_namespace>
kubectl describe pod accessdomain-adminserver -n oamns
Pods Restarting Due to LivenessProbe
If the server pods keep restarting due to livenessProbe
or
readinessProbe
failure, then make the following changes in the
oam-cluster
and policy-cluster
respectively.
kubectl edit cluster <cluster> -n <domain_namespace>
For
example:kubectl edit cluster accessdomain-oam-cluster -n oamns
In
the edit session change the CPU parameter as
follows:...
spec:
clusterName: oam_cluster
replicas: 1
serverPod:
env:
- name: USER_MEM_ARGS
value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m
-Xmx8192m
livenessProbe:
failureThreshold: 3
periodSeconds: 60
timeoutSeconds: 60
readinessProbe:
failureThreshold: 3
periodSeconds: 60
timeoutSeconds: 60
resources:
limits:
cpu: 1700m
memory: 6Gi
requests:
cpu: 500m
memory: 4Gi
...spec: