MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
686 stars 289 forks source link

Cannot create directory "/u01/app/oracle/cfgtoollogs/dbca". #103

Closed Leon1108 closed 6 years ago

Leon1108 commented 6 years ago
[centos@ip-172-31-20-227 data]$ sudo docker run -d -p 8088:8080 -p 1521:1521 -v /data/oracle:/u01/app/oracle  sath89/oracle-12c
39a2be7cfa3198ada48c9cc6cfe8528784b5fe65e2bc83d0b981507b46f93c5f
[centos@ip-172-31-20-227 data]$ sudo docker logs -f 39
Database not initialized. Initializing database.
Starting tnslsnr
Cannot create directory "/u01/app/oracle/cfgtoollogs/dbca".

Unique database identifier check passed.
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2018-06-27_01-44-30-PM (No such file or directory)

/u01/app/oracle/ has enough space. Required space is 6140 MB , available space is 657444 MB.
File Validations Successful.
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2018-06-27_01-44-30-PM (No such file or directory)
Cannot create directory "/u01/app/oracle/cfgtoollogs/dbca/xe".
Error writing into silent log -- /u01/app/oracle/cfgtoollogs/dbca/silent.log_2018-06-27_01-44-30-PM (No such file or directory)
Error in file copy from </u01/app/oracle/cfgtoollogs/dbca/silent.log_2018-06-27_01-44-30-PM> to </u01/app/oracle/cfgtoollogs/dbca/xe.log>
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/silent.log_2018-06-27_01-44-30-PM" for further details.
[centos@ip-172-31-20-227 data]$ 

OS : CentOS 7.4 HOST: AWS EC2

jmbalmaceda-technisys commented 6 years ago

I have the same problem. How could you solve it?

MaksymBilenko commented 6 years ago

Centos issue. Research on docker storage drivers under centos

alanliu95 commented 5 years ago

I am using ubuntu server 18.10 encountering the same issue. Would please give me some suggestions to solve this issue? Thanks much.

rumberomelo commented 5 years ago

I solve it using a volumen insted of mapping a host route.

Try that:

docker create volume oracleV sudo docker run -d -p 8088:8080 -p 1521:1521 -v oracleV:/u01/app/oracle sath89/oracle-12c

wuguozhu commented 1 year ago

I solve it,

chmod -R a+w /data/oracle