fuzziebrain / docker-apex-stack

Utility scripts for creating an Oracle Application Express stack as a Docker container.
MIT License
99 stars 34 forks source link

unable to create dir run.sh #52

Open tomlieber opened 3 years ago

tomlieber commented 3 years ago

hi fuzziebrain

i have a virtualbox running with oracle linux 8 installing docker, git, curl etc.

i downloaded all recommended files as root i run ./01_build.sh xe21.env works well

then als root again i tried to run ./02_run.sh

i get always this error: (i found a solution with chmod 777 - but this doesnt work)

please help here i will attache my files

tomlieber commented 3 years ago

Prepare for db operation Cannot create directory "/opt/oracle/oradata/XE". 7% complete 100% complete [FATAL] Prepare Operation has failed. 0% complete Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.

tomlieber commented 3 years ago

Description

===========

* Oracle Database 21c XE Edition

* Database features:

* Patching allowed? No

* OML4R supported? No

* ORDS features:

* REST-enabled? Yes

* SQL Developer Web? Yes

* Database API? Yes

* Java 8 server runtime engine downloaded from Oracle

ORACLE_SID=XE ORACLE_PDB=XEPDB1 ORACLE_PWD=oeadmin APEX_ADMIN_EMAIL=t@g.com APEX_ADMIN_PWD=oeadmin APEX_PUBLIC_USER_PWD=oeadmin APEX_LISTENER_PWD=oeadmin APEX_REST_PUBLIC_USER_PWD=oeadmin ORDS_PUBLIC_USER_PWD=oeadmin INSTALL_FILE_APEX=apex-latest.zip INSTALL_FILE_ORDS=ords-latest.zip INSTALL_FILE_JAVA=openjdk11 DOCKER_ORDS_PORT=50080 DOCKER_EM_PORT=55500 DOCKER_DB_PORT=51521 DB_VERSION=21.3.0 DB_EDITION=xe DOCKER_NETWORK_NAME=das_network ALLOW_DB_PATCHING=N OML4R_SUPPORT=N REST_ENABLED_SQL=Y RTU_ENABLED=N SQLDEVWEB=Y DATABASEAPI=Y

tomlieber commented 3 years ago

root@localhost docker-apex-stack]# ls -ltr -rwxr-xr-x. 1 admin admin 4657 13. Nov 11:12 01-build.sh drwxrwxrwx. 2 root root 6 13. Nov 16:17 oia_env-oradata -rw-r--r--. 1 admin admin 847 13. Nov 16:00 xe21.env

fuzziebrain commented 3 years ago

@tomlieber Did you try running it as a regular user?

silasmahler commented 2 years ago

Did you give your user permission to execute the files? Try sudo chmod +x 01-build.sh sudo chmod +x 02-run.sh

tomlieber commented 2 years ago

still same issue.. i try it again on fresh virtualbox on oracle linux 8.

48Gbyte VM oracle linux 8.5 as root connected yum update yum install docker yum install git rpm -ivh jdk-17*

git clone https://github.com/fuzziebrain/docker-apex-stack.git -- 1st try:

sudo chmod +x 01-build.sh sudo chmod +x 02-run.sh

./quickstart.sh

error

tomlieber commented 2 years ago

same on centos

silasmahler commented 2 years ago

Can you provide your error?

tomlieber commented 2 years ago

Cannot create directory "/opt/oracle/oradata/XE". 7% complete 100% complete [FATAL] Prepare Operation has failed.

silasmahler commented 2 years ago

Did you run the script as root user? If not change to it with "sudo su - root"

silasmahler commented 2 years ago

Look at the log file "/opt/oracle/cfgtoollogs/dbca/XE/XE.log" for further details.

tomlieber commented 2 years ago

I do all as root in CentOS and ol8 also .. i will try it again, which Linux distro image u use?

Tom

Silas Mahler @.***> schrieb am Fr., 8. Apr. 2022, 13:53:

Did you run the script as root user? If not change to it with "sudo su - root"

— Reply to this email directly, view it on GitHub https://github.com/fuzziebrain/docker-apex-stack/issues/52#issuecomment-1092781628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4WOANDMAQPCNUG5E3ALE3VEAM3TANCNFSM5H7VZU2Q . You are receiving this because you were mentioned.Message ID: @.***>

tomlieber commented 2 years ago

in my dockerfiles directory i found a directory called 21.3.0 and the .sh files are without execution rights.. in 19.3.0 it is with it.. maybe is this the fault?

silasmahler commented 2 years ago

in my dockerfiles directory i found a directory called 21.3.0 and the .sh files are without execution rights.. in 19.3.0 it is with it.. maybe is this the fault?

Im using: server_ami = "ami-07e51b655b107cd9b" # AWS-AMI Marketplace Owner-ID: 131827586825 OL8.5 https://community.oracle.com/tech/apps-infra/discussion/4417739/launch-an-oracle-linux-instance-in-aws

You should try oracle linux