Open hangphan opened 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.
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
@hangphan -
Can you do
docker logs ORACLE
and send me log trace?
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...
@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.
~$ 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:
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
Hi, I tried running the docker containers using the following command lines
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