strongloop / apiconnect-docker

IBM API Connect on Docker
Other
26 stars 26 forks source link

apim start failed in icp (ibm cloud private) #39

Open Alex-BlackMamba opened 6 years ago

Alex-BlackMamba commented 6 years ago

I just want to move the apim into icp, it seems that the container starts failed as below:

[root@master api-connect]# kubectl logs api-connect-manager -n api-connect /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found grep: /opt/ibm/informix/etc/apim-informix.conf: No such file or directory Stopping informix service: Success.

/opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found grep: /opt/ibm/informix/etc/apim-informix.conf: No such file or directory /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found Failed to load c++ bson extension, using pure JS version Require serial number Creating new empty database /opt/ibm/informix/apim/get-os-info.sh: line 105: dmidecode: command not found Failed to load c++ bson extension, using pure JS version Require serial number Starting Informix 12.10.FC6XP oninit: DBSERVERNAME 'apimconfig' not in sqlhosts file or sqlhosts file contents are damaged.

WARNING: server initialization failed or timed out. Check the message log, online.log, for errors. Failed to run step 1: _oninit_iy ERROR Normal startup

Alex-BlackMamba commented 6 years ago

I'm using the image: ibmcom/apiconnect:manager-v5.0.6.0

yarramsetti commented 6 years ago

Getting the same error. Any solution to this?

mm54760 commented 6 years ago

I'm also getting this. Could the image be corrupted? when I ran the image in interactive mode the dmidecode isn't installed but there is an empty directory.

hasegawatmy commented 6 years ago

I got this, too. I continue procedure 3times. And I install dmidecode, but I couldn't run.

qpresley commented 6 years ago

@Alex-BlackMamba We did some digging into this and understand the issue. We will be working on a fix this week.

qpresley commented 6 years ago

@Alex-BlackMamba The problem is that docker has moved forward a lot since the module was pushed to dockerhub and some of these changes are causing the get-os-info.sh script to jump down the wrong path.

The quick work around is to do the following using the attached file:

Make sure you have run docker-compose down to ensure all containers are down and removed. Create a new directory locally called apim Copy the attached gz file into this directory and unzip it. Ensure the file is executable by all chmod a+x get-os-info.sh. Create a dockerfile in the directory and populate with

FROM ibmcom/apiconnect:manager-v5.0.6.0
ADD --chown=root:root get-os-info.sh /opt/ibm/informix/apim/get-os-info.sh

Run docker build -t manager-v5.0.6.0-ifix.

Once complete update docker-compose.yaml and change the apim image to manager-v5.0.6.0-ifix:latest.

docker-compose up to bring it all up.

get-os-info.sh.gz

rsarunprashad commented 6 years ago

seems still not fixed

emilyling commented 6 years ago

@qpresley I recreated the api connect manager image using you provided get-os-info.sh file. Then push the new image to ICP and run the deployment. Container seems running, but the api connect doesn't work. Container log: grep: /opt/ibm/informix/etc/apim-informix.conf: No such file or directory Stopping informix service: Success.

grep: /opt/ibm/informix/etc/apim-informix.conf: No such file or directory Failed to load c++ bson extension, using pure JS version Creating new empty database Failed to load c++ bson extension, using pure JS version Starting Informix 12.10.FC6XP /opt/ibm/informix/apim/cache_values.sh: line 38: /etc/ibm/instancedata.env: No such file or directory Verifying physical disk space, please wait ... Chunk successfully added. Configuring 600MB of logical logs in /var/db/informix/logdbs

Database selected.

(expression) Low Memory Manager failed to start, error = -1.

1 row(s) retrieved.

Database closed.

Verifying physical disk space, please wait ... Chunk successfully added. Verifying physical disk space, please wait ... Chunk successfully added. Starting informix service: Success. jsonListener.jar -version: 1.2.0-SNAPSHOT;201602112205 Failed to load c++ bson extension, using pure JS version Informix started Starting database server couchdb CouchDB started Apache proxy is starting Failed to load c++ bson extension, using pure JS version Adding password for user couchdb rproxy started not starting kibana CATALINA_HOME --> /usr/ironhide/tomcat-cmc cp: cannot create regular file '/usr/java/default/jre/lib/security/java.security': Permission denied cmc starting Could you help to check it? My ICP version is v2.1.0.2 Thank you very much!

ghost commented 5 years ago

hello, i remove from docker-compose.yaml file mem_limit in apim, wait about 5-15 minute, and APIM start success. try CONTAINER CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS a5fd5436738b 0.01% 11.07 MiB / 15.58 GiB 0.07% 15.9 MB / 15.8 MB 6.4 MB / 16.4 kB 6 9a5b4587c300 0.80% 354.6 MiB / 15.58 GiB 2.22% 39.2 kB / 15.3 kB 1.35 MB / 106 kB 71 b949ab249406 8.81% 1.852 GiB / 15.58 GiB 11.88% 213 kB / 117 kB 33.6 MB / 197 MB 87 5794eec0db51 4.01% 3.272 GiB / 15.58 GiB 21.00% 1.97 MB / 13.8 MB 290 MB / 2.09 GB 249 f8977f087353 43.98% 2.511 GiB / 15.58 GiB 16.11% 7.84 MB / 9.73 MB 63.9 MB / 111 kB 19 09b93517652b 4.05% 287.3 MiB / 15.58 GiB 1.80% 606 kB / 1.43 MB 8.84 MB / 983 kB 78