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

[Kubernetes] Getting error while creating OWC-Content Domain, Error: getDatabaseDefaults() failed. Do dumpStack() to see details #2706

Open
chokhareganesh opened this issue Sep 25, 2023 · 0 comments

Comments

@chokhareganesh
Copy link

chokhareganesh commented Sep 25, 2023

followed to create oracle db 12c which is working fine: https://github.com/oracle/fmw-kubernetes/tree/master/OracleWebCenterContent/kubernetes/create-oracle-db-service#start-an-oracle-database-service-in-a-kubernetes-cluster

> kubectl get po -n default
NAME                        READY   STATUS    RESTARTS   AGE
oracle-db-59cb78758-fbqf2   1/1     Running   0          3d5h
rcu                         1/1     Running   0          4h44m

> kubectl get svc -n default
NAME         TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)          AGE
kubernetes   ClusterIP   10.96.0.1      <none>        443/TCP          3d5h
oracle-db    NodePort    10.100.79.85   <none>        1521:30011/TCP   3d5h

and I used this rcuDatabaseURL oracle-db.default.svc.cluster.local:1521/devpdb.k8s at file OracleWebCenterContent/kubernetes/create-wcc-domain/domain-home-on-pv/create-domain-inputs.yaml


While following this tutorial to Creating Oracle Web Center Content Domain on Kubernetes : https://oracle.github.io/fmw-kubernetes/wccontent-domains/installguide/create-wccontent-domains/#run-the-create-domain-script

I run this create-domain.sh as per above doc

./create-domain.sh \
  -i create-domain-inputs.yaml \
  -o ./output-dir

which is creating job and getting sucessful, but when I see jobs logs, it failed with error

> kubectl get job -n wccns
NAME                                          COMPLETIONS   DURATION   AGE
wccinfra-create-fmw-infra-sample-domain-job   1/1           2m7s       11m

job logs with error

The domain will be created using the script /u01/weblogic/create-domain-script.sh
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
=================================================================
    Oracle WebCenter Content Domain Creation Script    
                         12.2.1.4.0                              
=================================================================
Creating Base Domain...
Creating Admin Server...
Creating cluster...ucm_cluster
managed server name is ucm-server1
before calling SSL if enabled
managed server name is ucm-server2
before calling SSL if enabled
managed server name is ucm-server3
before calling SSL if enabled
managed server name is ucm-server4
before calling SSL if enabled
managed server name is ucm-server5
before calling SSL if enabled
['ucm-server1', 'ucm-server2', 'ucm-server3', 'ucm-server4', 'ucm-server5']
Managed servers created...
Creating additional cluster... ibr_cluster
managed server name is ibr_server1
before calling SSL if enabled
managed server name is ibr_server2
before calling SSL if enabled
managed server name is ibr_server3
before calling SSL if enabled
managed server name is ibr_server4
before calling SSL if enabled
managed server name is ibr_server5
before calling SSL if enabled
['ibr_server1', 'ibr_server2', 'ibr_server3', 'ibr_server4', 'ibr_server5']
Created managed Servers for additional cluster..... ibr_cluster
Creating Node Manager...
Will create Base domain at /u01/oracle/user_projects/domains/wccinfra
Writing base domain...
Base domain created at /u01/oracle/user_projects/domains/wccinfra
Extending Domain...
Extending domain at /u01/oracle/user_projects/domains/wccinfra
Database  oracle-db.default.svc.cluster.local:1521/devpdb.k8s
ExposeAdminT3Channel false with 192.168.64.3:30012 
Applying JRF templates...
Applying UCM templates...
Applying IBR templates...
Extension Templates added...
INFO: deleting UCM_server1
WC_Content default managed server deleted...
IBR defult managed server deleted...
Configuring the Service Table DataSource...
fmwDatabase  jdbc:oracle:thin:@oracle-db.default.svc.cluster.local:1521/devpdb.k8s
Getting Database Defaults...
Error: getDatabaseDefaults() failed. Do dumpStack() to see details.
Error: runCmd() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
  File "/u01/weblogic/..2023_09_25_12_59_03.1317261422/createWebCenterContentDomain.py", line 460, in ?
  File "/u01/weblogic/..2023_09_25_12_59_03.1317261422/createWebCenterContentDomain.py", line 71, in createWCContentDomain
  File "/u01/weblogic/..2023_09_25_12_59_03.1317261422/createWebCenterContentDomain.py", line 191, in extendDomain
  File "/u01/weblogic/..2023_09_25_12_59_03.1317261422/createWebCenterContentDomain.py", line 299, in configureJDBCTemplates
  File "/tmp/WLSTOfflineIni4937269296457947877.py", line 267, in getDatabaseDefaults
  File "/tmp/WLSTOfflineIni4937269296457947877.py", line 19, in command
Failed to build JDBC Connection object: 
 at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:69)
 at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:3085)
 at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:738)
 at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: Got exception when auto configuring the schema component(s) with data obtained from shadow table: 
Failed to build JDBC Connection object: 
Successfully Completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant