Why do I receive "ERROR: Expected /usr/sap/$SID/SYS/profile/ to be a directory, please set DIR_PROFILE parameter!" even when DIR_PROFILE attribute is set?

Solution Verified - Updated -

Issue

  • We observe the following error in logs even when the DIR_PROFILE attribute for given SAPInstance is configured and resource doesn't start. How to fix this?

    ERROR: Expected /usr/sap/RH1/SYS/profile/ to be a directory, please set DIR_PROFILE parameter!
    
  • SAP Instance on node fails to start and when the following command is run by SAPInstance resource agent or manually the Instance is not starting.

    # LD_LIBRARY_PATH=/usr/sap/RH1/ASCS00/exe/ /usr/sap/RH1/ASCS00/exe/sapcontrol -nr 00 -function Start; echo $?
    
    23.09.2018 17:40:01
    Start
    OK
    0
    
    # LD_LIBRARY_PATH=/usr/sap/RH1/ASCS00/exe/ /usr/sap/RH1/ASCS00/exe/sapcontrol -nr 00 -function WaitforStarted 3600 10; echo $?
    
    23.09.2018 17:40:39
    WaitforStarted
    FAIL: process msg_server MessageServer not running
    2
    

Environment

  • Red Hat Enterprise Linux 7 with High Availability Add-on
  • running pacemaker cluster with SAPInstance resources

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content