vangalamaheshh / dockerfiles

0 stars 3 forks source link

PM cell is down error #1

Open hangphan opened 6 years ago

hangphan commented 6 years ago

Hi, I tried running the docker containers using the following command lines

docker run -d --name oracle -p 1521:1521 -p 8080:8080 oracledb:0.1

docker run -d --name i2b2core -p 9009:9009 -p 9090:9090 --link oracle:oracle i2b2core:0.1

docker run --name i2b2web -p 80:80 --link i2b2core:i2b2core --volumes-from=i2b2core i2b2web:0.1

I was able to access http://IPAddress/admin as well as seeing the xml files when listing the services from http://IPAddress:9090/i2b2/services/listServices but after entering the username/password (i2b2/demouser) into the form, I got the "PM cell is down" error message. I changed the modifierFolder.png file in the admin/help/images folder into modifierfolder.png to remove the error message in the console about this file name, but it still had the "PM cell is down error" message. Do you have any idea or could you please tell me how you ran the docker command lines?

Thanks

vangalamaheshh commented 6 years ago

@hangphan -

Can you try these commands:

(assuming you have forked the repo and have access to scripts if needed)

Oracle:

docker run --name ORACLE --shm-size=5g -v /path/to/some/dir/db:/u01/app/oracle/oradata -e ORACLE_PWD=ORACLE_PWD -p 1521:1521 -d mvangala/oracle-xe:11.2

It might take 5min for the set up to complete. You can view the status of set up using,

docker logs -f ORACLE

Copy the "setting users" script onto ORACLE container using,

docker cp /path/to/create_users.sql ORACLE:/

create_users.sql script can be downloaded from here: https://github.com/vangalamaheshh/dockerfiles/blob/master/bioifx/i2b2/oracle/create_users.sql

docker exec -it ORACLE sqlplus system/ORACLE_PWD@//localhost:1521/XE @ /create_users.sql

Core server:

docker run --name CORE_SERVER -p 9090:9090 -d --link ORACLE:ORACLE mvangala/bioifx_i2b2_coreserver:0.0.1

It will take ~30min to load demodata; so please make sure you check the status using,

docker logs -f CORE_SERVER

Web server:

docker run --name WEB_SERVER -p 8080:80 --link CORE_SERVER:CORESERVER -d mvangala/bioifx_i2b2_webserver:0.0.1

Let me know.

hangphan commented 6 years ago

Hi Mahesh, Thanks for your responses. The oracle database run resulted in the below error

SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 7 10:14:49 2017

Copyright (c) 1982, 2011, Oracle. All rights reserved.

ERROR: ORA-12541: TNS:no listener


Have you got any idea why this happened?

Thanks Hang

vangalamaheshh commented 6 years ago

@hangphan -

Can you do

docker logs ORACLE

and send me log trace?

hangphan commented 6 years ago

I'm re-running the docker run command for the ORACLE database and still waiting for the log to come through so will send you details later. However, as I interactively entered the container and ran some diagnosis, this is what happened


bash-4.2# lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 07-NOV-2017 13:50:58

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 2: No such file or directory Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%hostname%)(PORT=%port%))) TNS-12545: Connect failed because target host or object does not exist TNS-12560: TNS:protocol adapter error TNS-00515: Connect failed because target host or object does not exist

bash-4.2# lsnrctl start

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 07-NOV-2017 13:51:10

Copyright (c) 1991, 2011, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.2.0 - Production System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora Log messages written to /u01/app/oracle/diag/tnslsnr/4ed63acf5c72/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE))) Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%hostname%)(PORT=%port%))) TNS-12545: Connect failed because target host or object does not exist TNS-12560: TNS:protocol adapter error TNS-00515: Connect failed because target host or object does not exist

Listener failed to start. See the error message(s) above...

bash-4.2# stat / File: '/' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 27h/39d Inode: 7253081 Links: 1 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-11-07 13:49:19.436253348 +0000 Modify: 2017-11-07 13:49:19.436253348 +0000 Change: 2017-11-07 13:50:58.856505895 +0000 Birth: -

vangalamaheshh commented 6 years ago

@hangphan -

I'd say it's best to first have oracle container working. I have tried this command on my end and successfully have oracle running.

docker run --name ORACLE --shm-size=5g -v /path/to/some/dir/db:/u01/app/oracle/oradata -e ORACLE_PWD=ORACLE_PWD -p 1521:1521 -d mvangala/oracle-xe:11.2

Make sure </path/to/some/dir/db> exists on your system and have that path added in your docker -> preferences -> file sharing.

Then take a look at logs using,

docker logs -f ORACLE

You should see oracle database starting in few minutes.

Let me know.

hangphan commented 6 years ago

Hi Mahesh, the log following the >docker logs ORACLE command is

~$ docker logs ORACLE

SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 7 13:59:21 2017

Copyright (c) 1982, 2011, Oracle. All rights reserved.

ERROR: ORA-12541: TNS:no listener

Enter user-name:


hangphan commented 6 years ago

I tried building the docker image on my local MAC machine and still have the same problem. I did add the folder to the file sharing option.

What was your build file to generate the oracle image?

Thanks Hang