1 2 Previous Next 24 Replies Latest reply on Jul 8, 2011 2:26 PM by 874285 Go to original post
      • 15. [Answered]: Unable to start opmn "RCV: Permission denied"
        445913
        Hi all,

        Please find below details steps

        Cause

        You have previously started the opmn process as an incorrect user (such as root) but are now logged in as the unix user that owns the Application Server installation. The AS unix owner then experiences permission related errors communicating with the root initiated OPMN process.

        It can be confirmed that this has taken place by listing the ownership of the running "opmn -d" processes:
        $ ps -ef|grep 'opmn -d'|grep -v 'grep'
        root 31011 1 0 09:08 ? 00:00:00 /as1013/app/oracle/product/mid101300a/opmn/bin/opmn -d
        root 31012 31011 0 09:08 ? 00:00:00 /as1013/app/oracle/product/mid101300a/opmn/bin/opmn -d
        Solution

        To implement the solution, please execute the following steps:

        1. Capture output from "ps -ef|grep 'opmn -d'|grep -v 'grep'" to identify current opmn daemon processes to be terminated.
        2. Capture output from "opmnctl status -l" for future reference
        - it may be necessary to manually kill processes that the current "opmn -d" processes have started
        3. Log in to the UNIX account that owns the current "opmn -d" processes (this may require root privileges).
        4. Use "opmnctl stopall" to stop the opmn daemon and all processes
        5. Use "ps -ef|grep 'opmn -d'|grep -v 'grep'" to confirm the two "opmn -d" processes have been terminated
        - use "kill -9 <PID>" on each PID to force this if necessary (again, this may need root privileges)
        6. Review the PID column from the "opmnctl status -l" and confirm that each process has been stopped.
        - again use "kill -9 <PID>" on each PID to force this if necessary (again, this may need root privileges)
        7. For the directory of each OC4J instance that exists below $ORACLE_HOME/j2ee,
        rename the "persistence" directory to "persistence.old"
        8. Confirm if any files under the $ORACLE_HOME have been created under the incorrect unix account:

        $ find $ORACLE_HOME -user root -print
        With the exception of files below the $ORACLE_HOME/Apache/Apache/bin directory, use "chown" to reset the owner and group of each files that has changed.

        For example:

        $ cd $ORACLE_HOME/opmn/conf
        $ ls -ld1 .*
        drwx------ 3 mid101300a oinstall 4096 Sep 7 09:08 .
        drwx------ 8 mid101300a oinstall 4096 May 30 09:00 ..
        -r-------- 1 root root 21 Sep 7 09:08 .formfactor
        Use the ownership of the directory guide the "chown" command needed:

        $ chown mid101300a:oinstall .formfactor
        9. Log out from the incorrect UNIX account and log back in as the UNIX user owning the AS installation.
        10. Start opmn and desired managed processes:

        $ opmnctl start

        $ opmnctl startproc process-type=HTTP_Server
        opmnctl: starting opmn managed processes...

        $ opmnctl startproc process-type=home
        opmnctl: starting opmn managed processes...
        11. Confirm via "ps -ef|grep 'opmn -d'|grep -v 'grep' " that opmn daemon processes are owned by the expected user
        12. Use "opmnctl status -l" to confirm all processes have started correctly.

        Regards,
        Raza
        • 16. Re: [Answered]: Unable to start opmn "RCV: Permission denied"
          586714
          Hi Raza,

          You just saved my day!
          Thank you for your excellent and detailed help.

          Regards,
          Roger
          • 17. Re: Unable to start opmn
            666813
            Hi,

            Just check with which user you have started the services..
            it might have started with root...Please cross check and stop them and restart..it worked for me..

            Thanks & Regards,
            Sandeep Rebba.
            • 18. Re: Unable to start opmn
              540669
              Excellent post. Thanks very much.
              • 19. Re: Unable to start opmn
                722114
                Hello,

                after changing server IP the oracle discoverer http ....:7777 began to not connect

                all other program is running

                but ....opmn/bin/opmnctl startall return error
                then vi ...opmn/conf/opmn.xml
                I realize there is no ias instance so

                I put the following tag
                <ias-instance id="oracleDiscoverer.oracle2009.*******.com">
                although You said to compaire IP address

                how can I run discoverer after changing the live IP ? do you have any idea please let me know..
                Best Regards, Emre
                • 20. Re: Unable to start opmn
                  Roberto Barrera
                  For any change of ip or hostname you have to use $ORACLE_HOME/chgip/script/chgiphost.sh -mid

                  It will promp to enter old and new ip and hostname.

                  Regards.
                  • 21. Re: Unable to start opmn
                    Susheel Tamrakar
                    I had same issue, with no apparent log error or port issue:
                    Here is what I did to get a clear start:

                    Stop all opmn managed processes, Rebooted the host. and manually clean up the following files :
                    $ORACLE_HOME/opmn/logs/states/*
                    $ORACLE_HOME/Apache/Apache/logs/*.pid
                    $ORACLE_HOME/webcache/*.pid
                    $JDK_HOME/jar cvf $ORACLE_HOME/opmn/opmn_logs_backup.jar $ORACLE_HOME/opmn/logs
                    cd $ORACLE_HOME/opmn/logs
                    rm -Rf *
                    $JDK_HOME/jar cvf $ORACLE_HOME/dcm/dcm_logs_backup.jar $ORACLE_HOME/dcm/logs
                    cd $ORACLE_HOME/dcm/logs
                    rm -Rf *
                    $JDK_HOME/jar cvf $ORACLE_HOME/sysman/sysman_logs_backup.jar $ORACLE_HOME/sysman/logs
                    cd $ORACLE_HOME/sysman/logs
                    rm -Rf *
                    $JDK_HOME/jar cvf $ORACLE_HOME/webcache/webcache_logs_backup.jar $ORACLE_HOME/webcache/logs
                    cd $ORACLE_HOME/webcache/logs
                    rm -Rf *
                    $JDK_HOME/jar cvf $ORACLE_HOME/Apache/Apache/apache_logs_backup.jar $ORACLE_HOME/Apache/Apache/logs
                    cd $ORACLE_HOME/Apache/Apache/logs
                    rm -Rf *
                    • 22. Re:  [ons-listener] 127.0.0.1,6107: BIND (Address already in use)
                      774103
                      Hi Raza,

                      Thanks for the excellent info.

                      And also there is one more solution for the issue if the issue is not with the permission on .formFactor file.

                      **************************************************************************************
                      Issue: opmn services not starting.

                      Error:

                      10/05/19 05:58:30 [pm-internal] OPMN server ready. Request handling enabled.
                      10/05/19 05:58:30 [pm-process] Starting Process: HTTP_Server~HTTP_Server~HTTP_Server~1 (11538536:0)
                      10/05/19 05:58:59 [pm-process] Process Alive: HTTP_Server~HTTP_Server~HTTP_Server~1 (11538536:602300)
                      10/05/19 06:02:27 [ons-internal] ONS server initiated
                      10/05/19 06:02:27 [pm-internal] PM state directory exists: /clapp/oracle/PROD/inst/apps/RUP6_erptest/ora/10.1.3/opmn/logs/states
                      10/05/19 06:02:27 [pm-internal] OPMN server ready. Request handling enabled.
                      10/05/19 06:02:57 [pm-process] Starting Process: HTTP_Server~HTTP_Server~HTTP_Server~1 (11538537:0)
                      10/05/19 06:03:27 [pm-process] Process Alive: HTTP_Server~HTTP_Server~HTTP_Server~1 (11538537:598020)
                      10/05/19 06:03:27 [ons-internal] ONS server initiated
                      10/05/19 06:03:27 [pm-internal] PM state directory exists: /clapp/oracle/PROD/inst/apps/RUP6_erptest/ora/10.1.3/opmn/logs/states
                      10/05/19 06:03:27 [pm-internal] OPMN server ready. Request handling enabled.
                      10/05/19 06:03:27 [ons-listener] 127.0.0.1,6107: BIND (Address already in use)
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor
                      <unknown>
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor
                      <unknown>
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor
                      <unknown>
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor
                      <unknown>
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor
                      <unknown>
                      10/05/19 06:03:57 [ons-connect] Local connection 127.0.0.1,6107 invalid form factor


                      Solution:
                      *******

                      1. Source the environment to the below given path:
                           
                      cd $ORA_CONFIG_HOME/10.1.3 or cd $INST_TOP/ora/10.1.3

                      2. Run the environment File as shown below.

                      . DBSID_erptest.env

                      3. echo $ORACLE_HOME (*** should show 10.1.3 Home)

                      4. Run the below commands to start the services.

                      cd $ORACLE_HOME/opmn/bin

                      ./opmnctl status

                      ./opmnctl startproc process-type=oacore

                      ./opmnctl startproc process-type=oafm

                      ./opmnctl startproc process-type=forms

                      ./opmnctl status

                      5. If the process are running, please stop all Apps processes on your middle-Tier.

                      cd $ADMIN_SCRIPTS_HOME
                      adstrtal.sh apps/appl

                      6. Make sure there are no .lock files in the following directories:

                      $INST_TOP/ora/10.1.3/j2ee/oacore/persistence/*
                      $INST_TOP/ora/10.1.3/j2ee/oafm/persistence/*
                      $INST_TOP/ora/10.1.3/j2ee/forms/persistence/*

                      If they do exists make a backup of them and remove them.

                      3. Restart the Application and retest.

                      **************************************************************************************


                      Regards,
                      Purushottham
                      • 23. Re: Unable to start opmn
                        gajendra.ranka
                        follow the follwing Action plan


                        Change the request port for the opmn.xml file to a value greater than the 6100.
                        Notes: Only change the "Port Local" value, not the "Remote" and "Request" values

                        For example: <port local ="6202" remote="6302" request="6105"/>

                        2. Restart the application server opmnctl stopall/startall
                        • 24. Re: Unable to start opmn
                          874285
                          hiiii
                          i have the same problem , i wanna see the status of my server, but ihave the following error


                          RCV: Permission denied
                          Communication error with the OPMN server local port.
                          Check the OPMN log files
                          opmnctl status: opmn is not running.
                          1 2 Previous Next