servicecatalog / oscm-dockerbuild

OSCM docker build files.
Apache License 2.0
3 stars 10 forks source link

Empty reply from server #185

Closed i-rupesh closed 3 years ago

i-rupesh commented 5 years ago

followed the instruction to install oscm in my local vm by install docker and docker-compose, All the Containers started but when i hit url got empty reply from server. Dubug by going inside container checked with curl localhost::8081/oscm-portal/ same issue (Empty reply from server).

Checked the logs got some issue in logs please find below some Error lines of the logs:

=========================================================== docker logs -f oscm-core

keytool error: java.io.FileNotFoundException: /opt/trusted_certs/* (No such file or directory) Listening for transport dt_socket at address: 8000 11-Aug-2019 08:10:31.709 INFO [main] org.apache.openejb.persistence.PersistenceBootstrap.getDefaultProvider Default JPA Provider changed to org.eclipse.persistence.jpa.PersistenceProvider 11-Aug-2019 08:10:32.298 WARNING [main] sun.reflect.NativeMethodAccessorImpl.invoke [SetAllPropertiesRule]{Server/Service/Connector/SSLHostConfig/Certificate} Setting property 'xpoweredBy' to 'false' did not find a matching property. 11-Aug-2019 08:10:32.298 WARNING [main] sun.reflect.NativeMethodAccessorImpl.invoke [SetAllPropertiesRule]{Server/Service/Connector/SSLHostConfig/Certificate} Setting property 'server' to 'Apache TomEE' did not find a matching property.

11-Aug-2019 08:10:37.837 SEVERE [main] org.apache.openejb.OpenEJB$Instance. OpenEJB has encountered a fatal error and cannot be started: Assembler failed to build the container system. org.apache.openejb.OpenEJBException: java.lang.IllegalStateException: Infinite loop in property interpolation of ${DB_PWD_CORE}: DB_PWD_CORE: Infinite loop in property interpolation of ${DB_PWD_CORE}: DB_PWD_CORE

============================================================== docker logs -f oscm-app

/opt/apache-tomee/bin/catalina.sh: line 104: ${PROXY_ENABLED}: command not found

11-Aug-2019 08:10:58.759 SEVERE [main] org.apache.openejb.OpenEJB$Instance. OpenEJB has encountered a fatal error and cannot be started: Assembler failed to build the container system. org.apache.openejb.OpenEJBException: java.lang.IllegalStateException: Infinite loop in property interpolation of ${DB_PWD_APP}: DB_PWD_APP: Infinite loop in property interpolation of ${DB_PWD_APP}: DB_PWD_APP

============================================================== [root@instance-1 ~]# docker logs -f oscm-birt sed: can't read /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/lib/security/java.security: No such file or directory Java virtual machine used: /usr/lib/jvm/jre/bin/java classpath used: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar main class used: org.apache.catalina.startup.Bootstrap flags used: options used: -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager arguments used: start

Please help its urgent ...

GoebelL commented 5 years ago

Hi @rupeshk071

there are two issues here I believe.

  1. There is a known bug with the oscm-identity container, which has been added in last build. This will be fixed in next build. The service is not required in the current version. As quick workaround, please remove the entire section oscm-identity in /docker/docker-compose-oscm.yml and the line starting with IMAGE_IDENTITY=... in /docker/.env (assuming /docker is the directory where you installed OSCM).
  2. Please check your var.env file. It seems that not all ${ } placeholders have been replaced with valid values there. See the comments in this file. Re-run the deployer after corrections. docker run --name deployer2 --rm -v /docker:/target -v /var/run/docker.sock:/var/run/docker.sock -e INITDB=true -e STARTUP=true servicecatalog/oscm-deployer
i-rupesh commented 5 years ago

Hi GoebeIL,

I have tried to do same as mentioned by you, but i don't know exactly what i need to replace in var.env

Can you please tell what to replace in it.

DB_PORT_CORE=5432 DB_PORT_JMS=5432 DB_PORT_APP=5432 DB_PWD_CORE=${DB_PWD_CORE} DB_PWD_APP=${DB_PWD_APP} DB_SUPERPWD=${DB_SUPERPWD} SMTP_HOST=${SMTP_HOST} SMTP_PORT=${SMTP_PORT} SMTP_FROM=${SMTP_FROM} SMTP_USER=${SMTP_USER} SMTP_PWD=${SMTP_PWD} SMTP_AUTH=${SMTP_AUTH} SMTP_TLS=${SMTP_TLS} APP_ADMIN_MAIL_ADDRESS=${SMTP_FROM} APP_TRUSTSTORE_BSS_ALIAS=1 CONTROLLER_ORG_ID=${CONTROLLER_ORG_ID} CONTROLLER_USER_KEY=${CONTROLLER_USER_KEY} CONTROLLER_USER_NAME=${CONTROLLER_USER_NAME} CONTROLLER_USER_PASS=${CONTROLLER_USER_PASS} DB_USER_VMWARE=${DB_USER_VMWARE} DB_PWD_VMWARE=${DB_PWD_VMWARE} VCENTER_NAME=${VCENTER_NAME} DATACENTER_NAME=${DATACENTER_NAME} CLUSTER_NAME=${CLUSTER_NAME} LOAD_BALANCER_NAME=${LOAD_BALANCER_NAME} KEY_SECRET=${KEY_SECRET} HOST_FQDN=${HOST_FQDN} REPORT_ENGINEURL=https://${HOST_FQDN}:8681/birt/frameset?__report=\${reportname}.rptdesign&SessionId=\${sessionid}&__locale=\${locale}&WSDLURL=\${wsdlurl}&SOAPEndPoint=\${soapendpoint}&wsname=Report&wsport=ReportPort

TOMEE_DEBUG=${TOMEE_DEBUG} LOG_LEVEL=${LOG_LEVEL} CONTAINER_CALLBACK_THREADS=${CONTAINER_CALLBACK_THREADS} CONTAINER_MAX_SIZE=${CONTAINER_MAX_SIZE} PROXY_ENABLED=${PROXY_ENABLED} PROXY_HTTP_HOST=${PROXY_HTTP_HOST} PROXY_HTTP_PORT=${PROXY_HTTP_PORT} PROXY_HTTPS_HOST=${PROXY_HTTPS_HOST} PROXY_HTTPS_PORT=${PROXY_HTTPS_PORT} PROXY_NOPROXY=${PROXY_NOPROXY} AUTH_MODE=INTERNAL ADMIN_USER_ID=${ADMIN_USER_ID}

GoebelL commented 5 years ago

Hi @rupeshk071 you need to replace all variables ${...}. See the hint given in the comment above each setting. We will share an example version for the var.env file.

GoebelL commented 5 years ago

Please also find the information in the Operator's Guide. Settings are listed in the Appendix.