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

OracleConnectionManager fails with tee: /tmp/orod.log: Permission denied #2344

Open
ghost opened this issue Apr 18, 2022 · 2 comments
Open
Assignees
Labels
RAC Oracle Database RAC

Comments

@ghost
Copy link

ghost commented Apr 18, 2022

Steps followed:

cd ~/OracleDatabase/RAC/OracleConnectionManager/dockerfiles
cp ~/LINUX.X64_193000_client.zip 19.3.0/
./buildContainerImage.sh -v 19.3.0
docker network create --driver=bridge --subnet=172.16.1.0/24 rac_pub1_nw
docker run -d --hostname racnode-cman1 --dns-search=altitude-dashboard.com \
--network=rac_pub1_nw --ip=172.16.1.15 \
-e DOMAIN=altitude-dashboard.com -e PUBLIC_IP=172.16.1.15 \
-e PUBLIC_HOSTNAME=racnode-cman1 -e SCAN_NAME=racnode-scan \
-e SCAN_IP=172.16.1.70 --privileged=true \
-p 1521:1521 --name racnode-cman oracle/client-cman:19.3.0
docker logs -f racnode-cman

result:

04-18-2022 12:23:28 UTC :  : Creating /tmp/orod.log
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Domain is defined to altitude-dashboard.com
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : PORT is not defined. Setting PORT to '1521'
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Public IP is set to 172.16.1.15
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : RAC Node PUBLIC Hostname is set to racnode-cman1
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : SCAN_NAME name is racnode-scan
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : SCAN_IP name is 172.16.1.70
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Generating CMAN file
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:28 UTC :  : Copying CMAN file to /u01/app/oracle/product/19.3.0/client_1/network/admin
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:29 UTC :  : Starting CMAN

CMCTL for Linux: Version 19.0.0.0.0 - Production on 18-APR-2022 12:23:29

Copyright (c) 1996, 2019, Oracle.  All rights reserved.

Current instance CMAN_racnode-cman1.altitude-dashboard.com is not yet started
Connecting to (DESCRIPTION=(address=(protocol=tcp)(host=racnode-cman1.altitude-dashboard.com)(port=1521)))
Starting Oracle Connection Manager instance CMAN_racnode-cman1.altitude-dashboard.com. Please wait...
CMAN for Linux: Version 19.0.0.0.0 - Production
Status of the Instance
----------------------
Instance name             cman_racnode-cman1.altitude-dashboard.com
Version                   CMAN for Linux: Version 19.0.0.0.0 - Production
Start date                18-APR-2022 12:23:29
Uptime                    0 days 0 hr. 0 min. 9 sec
Num of gateways started   2
Average Load level        0
Log Level                 USER
Trace Level               USER
Instance Config file      /u01/app/oracle/product/19.3.0/client_1/network/admin/cman.ora
Instance Log directory    /u01/app/oracle/diag/netcman/racnode-cman1/cman_racnode-cman1.altitude-dashboard.com/alert
Instance Trace directory  /u01/app/oracle/diag/netcman/racnode-cman1/cman_racnode-cman1.altitude-dashboard.com/trace
The command completed successfully.
04-18-2022 12:23:38 UTC :  : Checking CMAN Status
tee: /tmp/orod.log: Permission denied

CMCTL for Linux: Version 19.0.0.0.0 - Production on 18-APR-2022 12:23:38

Copyright (c) 1996, 2019, Oracle.  All rights reserved.

Current instance CMAN_racnode-cman1.altitude-dashboard.com is already started
Connecting to (DESCRIPTION=(address=(protocol=tcp)(host=racnode-cman1.altitude-dashboard.com)(port=1521)))
Services Summary...
Proxy service "cmgw" has 1 instance(s).
  Instance "cman", status READY, has 2 handler(s) for this service...
    Handler(s):
      "cmgw001" established:0 refused:0 current:0 max:256 state:ready
         <machine: localhost, pid: 71>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#71.1)(KEYPATH=/var/tmp/.oracle_5432100))
      "cmgw000" established:0 refused:0 current:0 max:256 state:ready
         <machine: localhost, pid: 69>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#69.1)(KEYPATH=/var/tmp/.oracle_5432100))
Service "cmon" has 1 instance(s).
  Instance "cman", status READY, has 1 handler(s) for this service...
    Handler(s):
      "cmon" established:2 refused:0 current:1 max:4 state:ready
         <machine: localhost, pid: 63>
         (ADDRESS=(PROTOCOL=ipc)(KEY=#63.1)(KEYPATH=/var/tmp/.oracle_5432100))
The command completed successfully.
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : cman started sucessfully
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : ################################################
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  :  CONNECTION MANAGER IS READY TO USE!
tee: /tmp/orod.log: Permission denied
04-18-2022 12:23:38 UTC :  : ################################################
04-18-2022 12:23:38 UTC : : Cman startup failed!
@ghost
Copy link
Author

ghost commented Apr 18, 2022

I was able to resolve the error by entering a new line (chmod 777 /tmp && ) here:

    chown -R oracle:oinstall $SCRIPT_DIR && \
    chmod 755 $SCRIPT_DIR/*.sh && \
    chmod 666 $SCRIPT_DIR/*.ora && \
    chmod 777 /tmp && \
    sync

in the Dockerfile.

@cjbj
Copy link
Member

cjbj commented Apr 18, 2022

@Altitude-Dashboard I'm not following this issue but the command chmod 777 /tmp caught my eye. If this is really needed, you should probably do chmod 1777 /tmp

@gvenzl gvenzl added the RAC Oracle Database RAC label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RAC Oracle Database RAC
Projects
None yet
Development

No branches or pull requests

3 participants