fuzziebrain / docker-apex-stack

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

No such file or directory when running quickstart.sh #69

Closed WayneNani closed 1 year ago

WayneNani commented 1 year ago

When I run the quickstart.sh script (on Fedora), everything goes smoothly (downloads are extremely slow but fine I guess) up until it installs the database. After that, I run into a file/directory issue:

...
Installed:
  oracle-database-xe-21c.x86_64 0:1.0-1                                         

Dependency Installed:
  file.x86_64 0:5.11-37.el7                                                     

Complete!
Loaded plugins: ovl
Resolving Dependencies
--> Running transaction check
---> Package expect.x86_64 0:5.45-14.el7_1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch           Version                Repository           Size
================================================================================
Removing:
 expect         x86_64         5.45-14.el7_1          @ol7_latest         566 k

Transaction Summary
================================================================================
Remove  1 Package

Installed size: 566 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : expect-5.45-14.el7_1.x86_64                                  1/1 
  Verifying  : expect-5.45-14.el7_1.x86_64                                  1/1 

Removed:
  expect.x86_64 0:5.45-14.el7_1                                                 

Complete!
/bin/sh: /opt/oracle/oraInventory/orainstRoot.sh: No such file or directory
Removing intermediate container b2cdd12d6f19
The command '/bin/sh -c cd $INSTALL_DIR &&     mkdir -p $ORACLE_BASE &&     mv $RUN_FILE $PWD_FILE $CHECK_DB_FILE $CREATE_DB_FILE $USER_SCRIPTS_FILE $CONFIG_TCPS_FILE $ORACLE_BASE/ &&     chmod ug+x *.sh &&     sync &&     ./$CHECK_SPACE_FILE &&     yum -y install expect &&     ./$SETUP_LINUX_FILE &&     chown -R oracle:oinstall $ORACLE_BASE /home/oracle &&     sed -i -r 's/(^session\s+include\s+system-auth)/# \1/' /etc/pam.d/su &&     unbuffer yum -y install $INSTALL_FILE_1 &&     yum -y remove expect &&     rm -rf /var/cache/yum &&     rm -rf /var/tmp/yum-* &&     mv $CONF_FILE /etc/sysconfig/ &&     cd $HOME &&     rm -rf $INSTALL_DIR &&     $ORACLE_BASE/oraInventory/orainstRoot.sh &&     $ORACLE_HOME/root.sh &&     echo 'export ORACLE_SID=XE' > .bashrc' returned a non-zero code: 127

ERROR: Oracle Database container image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the build operation.
fuzziebrain commented 1 year ago

Can you please post the log files from the build and run processes?

WayneNani commented 1 year ago

I reran the quickstart.sh script and now it finishes building. No idea what caused the issue. The same issue occurred when I tried building the 21xe image with the oracle docker sources.