Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create dir run.sh #52

Open
tomlieber opened this issue Nov 14, 2021 · 14 comments
Open

unable to create dir run.sh #52

tomlieber opened this issue Nov 14, 2021 · 14 comments
Assignees
Labels
question Further information is requested

Comments

@tomlieber
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

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

@fuzziebrain fuzziebrain self-assigned this Nov 21, 2021
@fuzziebrain fuzziebrain added the question Further information is requested label Nov 21, 2021
@silasmahler
Copy link

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

@tomlieber
Copy link
Author

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
Copy link
Author

same on centos

@silasmahler
Copy link

Can you provide your error?

@tomlieber
Copy link
Author

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

@silasmahler
Copy link

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

@silasmahler
Copy link

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

@tomlieber
Copy link
Author

tomlieber commented Apr 8, 2022 via email

@tomlieber
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants