Skip to Main Content

GoldenGate Free

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Golden Gate UI and Service not running in container

2986891Nov 1 2023 — edited Nov 1 2023

Docker container is running, but no processes are running in container. I am thinking it has something to do with Servicemanager-config.dat not being available.

File "/usr/local/bin/deployment-init.py", line 440, in <module>
sys.exit(main())
File "/usr/local/bin/deployment-init.py", line 428, in main
establish_service_manager(hasServiceManager)
File "/usr/local/bin/deployment-init.py", line 295, in establish_service_manager
reset_servicemanager_configuration()
File "/usr/local/bin/deployment-init.py", line 140, in reset_servicemanager_configuration
with open(configFileName, 'r') as config:
FileNotFoundError: [Errno 2] No such file or directory: '/u02/ServiceManager/var/lib/conf/ServiceManager-config.dat'

Below is full log

----------------------------------------------------------------------------------
-- Password for OGG administrative user 'oggadmin' is 'aPO8X6jJX+mv-FCW4'
----------------------------------------------------------------------------------
OGG_SECURE_DEPLOYMENT=false
APP_HOME=/u01/oggf
APP_DATA_HOME=/u02/oggf
/u02/oggf/deploymentId
OGGF_DEPLOYMENT_ID=d35c28c0-68bc-40d5-b07a-23cd7cf9a835
/u02/oggf/certificate /u02/oggf
Generating a RSA private key
.++++
.....................................................................................................++++
writing new private key to '/u01/oggf/certificate/ca-key.pem'
-----
Generating RSA private key, 4096 bit long modulus (2 primes)
...................................................................................................................................++++
.........++++
e is 65537 (0x010001)
Signature ok
subject=CN = localhost
Getting CA Private Key
/etc/nginx/cert/ogg.pem.full: OK
/etc/nginx/cert/ogg.pem: OK
/u02/oggf
OGG_SERVERCERT=/u02/oggf/certificate/server.pem
OGG_SERVERCERT_KEYFILE=/u01/oggf/certificate/server-key.pem
2023-11-01T23:17:59.607Z | INFO | -------------------------------------------------------
2023-11-01T23:17:59.623Z | INFO | Copyright (c) 2014, 2020, Oracle and/or its affiliates.
2023-11-01T23:17:59.625Z | INFO | All rights reserved.
2023-11-01T23:17:59.627Z | INFO |
2023-11-01T23:17:59.628Z | INFO | Create deployment started on 11-01-2023 23:17:59
2023-11-01T23:17:59.630Z | INFO | JRE: 17
2023-11-01T23:17:59.631Z | INFO | -------------------------------------------------------
Password:
2023-11-01T23:17:59.661Z | INFO | Using hostname: 127.0.0.1
2023-11-01T23:17:59.663Z | INFO | Using default port for adminsrvr: 9001
2023-11-01T23:17:59.664Z | INFO | Using default port for distsrvr: 9002
2023-11-01T23:17:59.665Z | INFO | Using default port for rcvrsrvr: 9003
2023-11-01T23:17:59.666Z | INFO | Using default TCP port for pmsrvr: 9004
2023-11-01T23:17:59.666Z | INFO | Using default UDP port for pmsrvr: 9005
2023-11-01T23:17:59.668Z | INFO | Using default DataStore type 'BDB' for pmsrvr
2023-11-01T23:17:59.670Z | INFO | GGSCHEMA not provided. GLOBALS file won't be created.
2023-11-01T23:17:59.677Z | INFO | Creating deployment 'ServiceManager'
2023-11-01T23:17:59.679Z | INFO |
2023-11-01T23:17:59.680Z | INFO | Info: directory /u02/ServiceManager/etc already exists.
2023-11-01T23:17:59.682Z | INFO | Directory /u02/ServiceManager/etc/conf was created successfully.
2023-11-01T23:17:59.685Z | INFO | Directory /u02/ServiceManager/etc/conf/sca was created successfully.
2023-11-01T23:17:59.687Z | INFO | Directory /u02/ServiceManager/etc/conf/ogg was created successfully.
2023-11-01T23:17:59.689Z | INFO | Directory /u02/ServiceManager/etc/conf/logging was created successfully.
2023-11-01T23:17:59.691Z | INFO | Directory /u02/ServiceManager/etc/ssl was created successfully.
2023-11-01T23:17:59.693Z | INFO | Info: directory /u02/ServiceManager/var already exists.
2023-11-01T23:17:59.694Z | INFO | Directory /u02/ServiceManager/var/lib was created successfully.
2023-11-01T23:17:59.696Z | INFO | Directory /u02/ServiceManager/var/lib/checkpt was created successfully.
2023-11-01T23:17:59.698Z | INFO | Directory /u02/ServiceManager/var/lib/data was created successfully.
2023-11-01T23:17:59.700Z | INFO | Directory /u02/ServiceManager/var/lib/def was created successfully.
2023-11-01T23:17:59.701Z | INFO | Directory /u02/ServiceManager/var/lib/distpaths was created successfully.
2023-11-01T23:17:59.702Z | INFO | Directory /u02/ServiceManager/var/lib/info was created successfully.
2023-11-01T23:17:59.703Z | INFO | Directory /u02/ServiceManager/var/lib/report was created successfully.
2023-11-01T23:17:59.706Z | INFO | Directory /u02/ServiceManager/var/lib/sql was created successfully.
2023-11-01T23:17:59.709Z | INFO | Directory /u02/ServiceManager/var/lib/sql/install was created successfully.
2023-11-01T23:17:59.710Z | INFO | Directory /u02/ServiceManager/var/lib/wallet was created successfully.
2023-11-01T23:17:59.712Z | INFO | Directory /u02/ServiceManager/var/lib/www was created successfully.
2023-11-01T23:17:59.713Z | INFO | Directory /u02/ServiceManager/var/lib/credential was created successfully.
2023-11-01T23:17:59.714Z | INFO | Directory /u02/ServiceManager/var/lib/credential/secureStore was created successfully.
2023-11-01T23:17:59.716Z | INFO | Directory /u02/ServiceManager/var/lock was created successfully.
2023-11-01T23:17:59.717Z | INFO | Directory /u02/ServiceManager/var/log was created successfully.
2023-11-01T23:17:59.719Z | INFO | Directory /u02/ServiceManager/var/run was created successfully.
2023-11-01T23:17:59.721Z | INFO | Directory /u02/ServiceManager/var/run/BR was created successfully.
2023-11-01T23:17:59.723Z | INFO | Directory /u02/ServiceManager/var/temp was created successfully.
2023-11-01T23:17:59.724Z | INFO |
2023-11-01T23:17:59.728Z | INFO | Finished creating directories (0 errors).
2023-11-01T23:17:59.729Z | INFO |
2023-11-01T23:17:59.730Z | INFO |
2023-11-01T23:17:59.751Z | INFO |
2023-11-01T23:17:59.753Z | INFO | Step 2: Import admin user.
2023-11-01T23:17:59.770Z | INFO | JSON payload:
{"oggadmin": {
"credential": "********",
"roles": ["Security"],
"type": "Basic",
"info": ""
}}
2023-11-01T23:17:59.773Z | INFO | Command: /u01/ogg/bin/pmsrvr --import-users=/u02/ServiceManager/var/temp/tmp_user.json --exit
2023-11-01T23:17:59.779Z | INFO | Setting child process environment variable OGG_VAR_HOME to /u02/ServiceManager/var
2023-11-01T23:17:59.781Z | INFO | Setting child process environment variable OGG_ETC_HOME to /u02/ServiceManager/etc
2023-11-01T23:17:59.892Z | INFO | Waiting for the process to finish...
2023-11-01T23:18:01.975Z | INFO | Successfully imported 1 users.
2023-11-01T23:18:02.063Z | INFO | exiting...
2023-11-01T23:18:02.067Z | INFO | Process exit value: 1
2023-11-01T23:18:02.072Z | INFO |
2023-11-01T23:18:02.074Z | INFO |
2023-11-01T23:18:02.076Z | INFO | Step 3: Start ServiceManager.
2023-11-01T23:18:02.084Z | INFO | Starting up ServiceManager '/u01/ogg/bin/ServiceManager'
2023-11-01T23:18:02.092Z | INFO | Command: /u01/ogg/bin/ServiceManager --inventory /u02/ServiceManager/etc/conf
2023-11-01T23:18:02.094Z | INFO | Setting child process environment variable OGG_VAR_HOME to /u02/ServiceManager/var
2023-11-01T23:18:02.096Z | INFO | Setting child process environment variable OGG_CONF_HOME to /u02/ServiceManager/etc/conf
2023-11-01T23:18:02.098Z | INFO | Setting child process environment variable OGG_SSL_HOME to /u02/ServiceManager/etc/ssl
2023-11-01T23:18:02.102Z | INFO | Setting child process environment variable OGG_ETC_HOME to /u02/ServiceManager/etc
2023-11-01T23:18:02.103Z | INFO | Setting child process environment variable OGG_DATA_HOME to /u02/ServiceManager/var/lib/data
2023-11-01T23:18:03.121Z | INFO |
2023-11-01T23:18:03.154Z | INFO | Deployment (ServiceManager) creation succeeded.
2023-11-01T23:18:03.156Z | INFO | ALL DONE (0 errors).
Traceback (most recent call last):
File "/usr/local/bin/deployment-init.py", line 440, in <module>
sys.exit(main())
File "/usr/local/bin/deployment-init.py", line 428, in main
establish_service_manager(hasServiceManager)
File "/usr/local/bin/deployment-init.py", line 295, in establish_service_manager
reset_servicemanager_configuration()
File "/usr/local/bin/deployment-init.py", line 140, in reset_servicemanager_configuration
with open(configFileName, 'r') as config:
FileNotFoundError: [Errno 2] No such file or directory: '/u02/ServiceManager/var/lib/conf/ServiceManager-config.dat'
OGG_ADMIN=oggadmin
OGG_ADMIN_PWD=aPO8X6jJX+mv-FCW4
OGG_DEPLOYMENT=Local
OGGF_DEPLOYMENT_ID=d35c28c0-68bc-40d5-b07a-23cd7cf9a835
OGG_SERVERCERT=/u02/oggf/certificate/server.pem
2023-11-01T23:18:10+0000 INFO: *****************************************************************************************
2023-11-01T23:18:10+0000 INFO: ** Firing up service
2023-11-01T23:18:10+0000 INFO: *****************************************************************************************
OGGF_API_SERVER_PORT=8080
OGGF_API_SERVER_SPORT=8080
OGGF_DEPLOYMENT_ID=d35c28c0-68bc-40d5-b07a-23cd7cf9a835
OGGF_SECURE=
OGGF_SERVER_CRT=
OGGF_SERVER_KEY=
OGGF_SIGN_JWK=
OGGF_VERIFY_JWK=
OGGF_SERVER_CRT_P12=
OGGF_UTIL_BIN=/usr/local/bin
OGGF_VERSION=23.3.0.16
OGG_DEPLOYMENT=Local
OGG_DOMAIN=
OGG_DEPLOYMENT_HOME=/u02
OGG_SECURE_DEPLOYMENT=false
OGG_HOST=
OGG_SERVICE_MANAGER_PORT=
OGG_ADMIN_SERVER_PORT=
OGG_DISTRIBUTION_SERVER_PORT=
OGG_RECEIVER_SERVER_PORT=
OGG_METRIC_SERVER_PORT=
OGGF_USE_DAEMON=
OGGF_LOAD_SAMPLES=
OGGF_SERVICE=
----- Prepare --------
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)
Using existing service zip in /u01/oggf
JAVA_HOME=/usr/java/jdk-17
OGGF_API_SERVER_URL:localhost/oggfServices
OGGF_API_SERVER_SSL_URL:localhost/oggfServices
OGGF_DEPLOYMENT_ID=d35c28c0-68bc-40d5-b07a-23cd7cf9a835
OGGF_KEY_STORE=/u02/oggf/config/ggfe.p12
Generating password key
Generating JWK Keys
key is written to : /u02/oggf/config/sign-jwk.json
publicKey is written to : /u02/oggf/config/verify-jwk.json
Using /u02/oggf/config/ggfe.p12
/u02/oggf/config/ggfe.p12 does not exist. Generating Key Store
Nov 01, 2023 11:18:20 PM oracle.cloud.ggfe.security.SecureKeyStore createKeyStore
INFO: /u02/oggf/config/ggfe.p12 created
OGGF_KEY_STORE=/u02/oggf/config/ggfe.p12
Creating Default Local Connections
Local Connections - /u02/oggf/local-connections.json
2023-11-01T23:18:28+0000 INFO: <== preStartup: Starting
2023-11-01T23:18:28+0000 INFO: ==> preStartup: Finished
Linux localhost 6.1.29-0-virt #1-alpine SMP PREEMPT_DYNAMIC Wed, 17 May 2023 14:22:15 +0000 x86_64 x86_64 x86_64 GNU/Linux
{
"runtime": {
"majorVersion": "11"
},
"release": {
"build": "master",
"commit": "228b43c9",
"version": "23.3.0.16",
"buildTime": "2023-09-16 07:48"
},
"command": "sh bin/startup.sh",
"startupTime": "120",
"notes": "Java server api-server",
"mode": "rolling"
}
2023-11-01T23:18:28+0000 INFO: <== startup: Starting
2023-11-01T23:18:28+0000 INFO: startup: Launching Java process
JAVA_PROPERTIES=-XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/u02/oggf/oggf-oom-dump.hprof -Dggfe.conf=/u02/oggf/config/ggfe.conf -Dsecurity.conf=/u02/oggf/config/security.conf -Djava.net.preferIPv4Stack=true -Djava.security.egd=file:/dev/./urandom -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Dhelidon.serialFilter.pattern=oracle.sql.converter.* -Djava.util.logging.config.file=/u02/oggf/config/logging.properties -Dmp.jwt.verify.publickey.location=file:///u02/oggf/config/verify-jwk.json -DOGGF_VERSION=23.3.0.16 -DAPP_HOME=/u01/oggf -DAPP_DATA_HOME=/u02/oggf -DoggfApiServerUrl=localhost/oggfServices -DdeploymentId=d35c28c0-68bc-40d5-b07a-23cd7cf9a835 -DoggfDomain=localhost -DsecureKeyStorePath=/u02/oggf/config/ggfe.p12
ARGS=
2023-11-01T23:18:28+0000 INFO: startup: Launched java class PID 304
2023-11-01T23:18:28+0000 INFO: ==> startup: Finished
2023-11-01T23:18:28+0000 INFO: <== postStartup: Starting
2023-11-01T23:18:28+0000 INFO: ==> postStartup: Finished
2023-11-01T23:18:28+0000 INFO: *****************************************************************************************
2023-11-01T23:18:28+0000 INFO: ** Finished all startup steps for service
2023-11-01T23:18:28+0000 INFO: *****************************************************************************************
This is a idle script (infinite loop) to keep container running.
2023.11.01 23:18:31 INFO oracle.cloud.ggfe.mds.bdb.BdbStorage Thread[main,5,main]: Storage : /u02/oggf/storage
2023.11.01 23:18:35 INFO oracle.cloud.ggfe.model.tool.SampleGenerator Thread[main,5,main]: 2 connections to populate from /u02/oggf/local-connections.json
2023.11.01 23:18:35 INFO oracle.cloud.ggfe.model.tool.SampleGenerator Thread[main,5,main]: 0 old connections
2023.11.01 23:18:37 INFO oracle.cloud.ggfe.model.tool.SampleGenerator Thread[main,5,main]: create connection: {"name":"LocalGoldenGate","description":"Local Secure GoldenGate with default deployment(Local)","connector":"GOLDENGATE","status":"VALIDATED","result":{"status":"VALIDATED","steps":{}},"encrypted":true,"properties":{"hostName":"localhost","deploymentUserName":"oggadmin","port":"443","serverCert":"/u02/oggf/certificate/server.pem","isSecure":"true","hasReverseProxy":"true","isBuiltIn":"true","userName":"oggadmin","deployment":"Local"}}
2023.11.01 23:18:37 INFO oracle.cloud.ggfe.model.tool.SampleGenerator Thread[main,5,main]: create connection: {"name":"LocalNoSecureGoldenGate","description":"Local GoldenGate with default deployment(Local)","connector":"GOLDENGATE","status":"VALIDATED","result":{"status":"VALIDATED","steps":{}},"encrypted":true,"properties":{"hostName":"localhost","deploymentUserName":"oggadmin","port":"80","hasReverseProxy":"true","isBuiltIn":"true","userName":"oggadmin","deployment":"Local"}}
2023.11.01 23:18:39 INFO io.helidon.common.LogConfig Thread[main,5,main]: Logging at initialization configured using /u02/oggf/config/logging.properties
2023.11.01 23:18:52 INFO io.helidon.microprofile.server.ServerCdiExtension Thread[main,5,main]: Registering JAX-RS Application: GGFEApplication
2023.11.01 23:18:56 INFO io.helidon.webserver.NettyWebServer Thread[nioEventLoopGroup-2-1,10,main]: Channel '@default' started: [id: 0x059463a9, L:/0.0.0.0:8080]
2023.11.01 23:18:57 INFO io.helidon.microprofile.server.ServerCdiExtension Thread[main,5,main]: Server started on http://localhost:8080 (and all other host addresses) in 28580 milliseconds (since JVM startup).
2023.11.01 23:18:57 INFO oracle.cloud.ggfe.Main Thread[main,5,main]: Server started at: http://localhost:8080
2023.11.01 23:18:57 INFO io.helidon.common.HelidonFeatures Thread[features-thread,5,main]: Helidon MP 3.2.2 features: [CDI, Config, Fault Tolerance, Health, JAX-RS, Metrics, REST Client, Security, Server, Tracing, Websocket]

Comments
Post Details
Added on Nov 1 2023
3 comments
114 views