Troubleshooting Workflow Process Service
Getting the operator logs
kubectl logs deployment/ibm-cp4a-wfps-operator -c manager > operator.logWorkflow Process Service runtime server pod not ready
kubectl logs sts/<cr-name>-wfps-runtime-server -c manager > server.log org.postgresql.util.PSQLException: ERROR: role "yourdatabaserole" does not existthen
you must re-create the role and database for Workflow Process Service by running the
following command in your database server. Do not put quotation marks around the role and database
name.create role <your_database_role> password '<your_password>' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
create database <your_database_name> owner <your_database_role>;In PostgreSQL, if the role and database name are in quotation marks, they are treated as case-sensitive, which is not supported in Workflow Process Service.
Certificate trust issue
spec.tls.serverTrustCertificateList parameter in the custom
resource. You can enter a list of secrets, where each secret stores a trusted certificate using the
Privacy Enhanced Mail (PEM) format. For example, a snippet of your custom resource might look
similar to: tls:
serverTrustCertificateList:
- example_secret_02
- example_secret_03 To create a secret, run the following
command:
kubectl create secret generic dummy_secret_01 --from-file=tls.crt=./cert.crtWorkflow Process Service runtime server pod not showing
If the full text search or federation capability is enabled in the custom resource, and you do not see the Workflow Process Service pod after the custom resource is deployed, you might see an error in the Workflow Process Service operator log similar to:
"spec.capabilities.fullTextSearch.esStorage.storageClassName must be set if
spec.capabilities.fullTextSearch.enable is set to true. The
StorageClass should be a block StorageClass."
The following is a snippet from the custom resource that shows the full text search and federation capability enabled:
spec:
capabilities:
fullTextSearch:
enable: true
federate:
enable: true
The problem might be caused by not installing Elasticsearch before deploying Workflow Process Service when
capabilities.fullTextSearch.enable is set to true. You must add
capabilities.fullTextSearch.esStorage and
capabilities.fullTextSearch.esSnapshotStorage to the custom resource YAML file. The
StorageClass for Elasticsearch and Elasticsearch snapshot should create the storage
type of the PVs in block mode rather than file system mode.
Workflow Process Service workplace console dashboard not installed
NAME READY STATUS RESTARTS AGE
wfps-instance1-wfps-runtime-server-0 1/1 Running 1 2h node:
probe:
startupProbe:
failureThreshold: 30
periodSeconds: 40
successThreshold: 1
timeoutSeconds: 20 If you are using the default EDB PostgreSQL cluster, make sure that
the EDB PostgreSQL
persistent volume claim (PVC) is deleted before redeploying your Workflow Process Service instance.