Docker container error
Dear team,
I am trying to experiment the Docker container in our development environment. I have successfully build an image and running the container. When I access the CSP portal home page ( http://<host-ip>:57772/csp/sys/%25CSP.Portal.Home.zen?$NAMESPACE=%25SYS), I am getting the following error:
Server Availability Error
Server is currently unavailable
I logged in to the running container (docker exec -it <container-id> sh), issued the command, 'ccontrol list' where the state says 'warn'.
Configuration 'CACHE' (default)
directory: /opt/healthshare/
versionid: 2017.1.1.111.0.17521
conf file: cache.cpf (SuperServer port = 1972, WebServer = 57772)
status: running, since Mon Apr 22 12:02:09 2019
state: warn
After some time (around 30 minutes later), the state is changed to ok. But, still getting the same error when accessing the CSP portal home page.
I looked at the alerts.log under /opt/healthshare/mgr, which says the following error:
(376) 2 System appears to have failed over from node bbce08f01ef1
Any help would be greatly appreciated!
Here is the Dockerfile I am using:
FROM centos:latest
MAINTAINER devEnv
RUN yum -y update && \
yum -y install which tar hostname net-tools wget java-1.8.0-openjdk &&\
yum -y clean all
ENV TMP_INSTALL_DIR=/tmp
ENV LONG_FOLDER=HS-2017.1.1.111.0.17521-hscore15.03_hsaa15.03_hspi15.03_hsviewer15.03_linkage15.03-b8384-lnxrhx64
ENV ISC_PACKAGE_INSTANCENAME="CACHE" \
ISC_PACKAGE_INSTALLDIR="/opt/healthshare/" \
ISC_PACKAGE_UNICODE="Y" \
ISC_PACKAGE_CLIENT_COMPONENTS="" \
ISC_PACKAGE_INITIAL_SECURITY="Minimal"
RUN mkdir -p ${TMP_INSTALL_DIR}
WORKDIR ${TMP_INSTALL_DIR}
COPY HS-Install .
WORKDIR ${TMP_INSTALL_DIR}/$LONG_FOLDER
RUN ./cinstall_silent && \
ccontrol stop $ISC_PACKAGE_INSTANCENAME quietly && \
rm -rf $TMP_INSTALL_DIR
COPY HS-Install/cache.key $ISC_PACKAGE_INSTALLDIR/mgr/
COPY ccontrol-wrapper.sh /usr/bin/
RUN cd /usr/bin && \
rm ccontrol && \
mv ccontrol-wrapper.sh ccontrol && \
chmod 555 ccontrol
WORKDIR ${ISC_PACKAGE_INSTALLDIR}
EXPOSE 57772 1972
WORKDIR /
ADD ccontainermain .
RUN chmod +x /ccontainermain
ENTRYPOINT ["/ccontainermain", "-i", "CACHE"]
building the image with:
docker build -t siva/devcache:1.0 --no-cache .
running it with:
docker run -d -p 57772:57772 -p 1972:1972 --privileged siva/devcache:1.0 -shmem=7168