Skip to Content

When you are executing Software Provisioning Manager tool or if you manually run sapcontrol command, you can face an issue like below:

Execution of the command “/usr/sap/<SID>/SYS/exe/sapcontrol -nr 00 -host abcde -function GetInstanceProperties” finished with return code 1. Output:

<date> <time>

GetInstanceProperties

FAIL: NIECONN_REFUSED (Connection timed out), NiRawConnect failed in plugin_fopen()

Usually, this issue happens because sapstartsrv is not properly running. Below, you can see some steps to follow in order to solve this issue:

  1. Make sure /usr/sap/sapservices does exist on your system. If not, please follow as described in SAP note below:
    823941  – SAP start service on Unix platforms

  2. Run command ps -ef | grep sapstartsrv and check if the the service is running for the instance. sapstartsrv must be pointing to the start or instance profile (according to the profile configuration of your system);
  3. If it is running, then manually kill the process;
  4. Make sure the sapstartsrv is properly working by running the command sapstartsrv -h as <sid>adm from kernel directory. If it returns all options from help, it means sapstartsrv command is working. Otherwise, it means it has issues and you must patch your kernel.

  5. If sapstartsrv is properly working, manually run the command above as <sid>adm from kernel directory:
    ./sapstartsrv pf=/sapmnt/<SID>/profile/<start or instance profile> -D

  6. After that, run the command below and check if the issue still persists:
    /usr/sap/<SID>/<instance>/exe/sapcontrol -prot NI_HTTP -nr <inst number> -function GetInstanceProperties

  7. Does the NIECONN_REFUSED error remains? If so, then make sure all hosts are properly set in the /etc/host file.
  8. If no error returns, it means the issue is not occurring any more and you will be able to continue the installer.
To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Ashutosh Chaturvedi

    Dear Henrique,

     

    Very nice blog.

     

    I want to add something more , If we run the below command with -D argument then we will not able to see the exact error with sapstartsrv service.

     

    ./sapstartsrv pf=/sapmnt/<SID>/profile/<start or instance profile> -D


    If you really want to see the errors which causing problem then we need to run the command without -D argument at os level.


    With Regards

    Ashutosh Chaturvedi

    (0) 
    1. Henrique Girardi Post author

      Hi Ashutosh,

       

      In fact, my intention was only starting up the sapstartsrv, this is why I recommended putting -D parameter, but thank you for this feedback, I will update the blog

       

      Regards,

      Henrique Girardi

      (0) 
  2. Manaswi Srivastava

    Hi Henrique,

     

    Very Nice blog..

     

    I would add 2 more steps between your point no.3 and 4 to make it more useful.

     

    a) We need to copy the command for sapstartsrv by process viewing

    (ps -ef|grep sapstartsrv) for future.

     

    b) Check the directory /sapmnt/<SID>/global/sapcontrol for multiple log files having some numbers_portno._<Instance no._hostname

    Those need to be removed for a particular instance which is not getting started or identified.

    And run the earlier copied sapstartsrv command for particular instance.

     

    In nut shell, there should be only 1 log file for each instance and central services, etc.

     

    You can also find the exact root cause of the problem with below debug option:

     

    /usr/sap/<SID>/<instance>/exe/sapcontrol -prot NI_HTTP -nr <inst number> -function GetInstanceProperties -debug

     

     

    Regards,

    Manaswi Srivastava

    (0) 
  3. Jorge Velásquez

    Hi,

    I am having this error and also startsap shows this:

     

     

    solmandes:scdadm 84> startsap
    Checking syb Database
    Database is running
    ——————————————-
    Starting Startup Agent sapstartsrv
    /usr/sap/SCD/SYS/exe/uc/linuxx86_64/startsap: line 3171: 8271 Segmentation fault $_SAPSTARTSRV pf=$_PROFILE -D >> $LOGFILE 2>&1
    FAIL: Timeout
    Startup of Instance Service failed
    See /home/scdadm/startsap_SCS02.log for details

     

    Any clue?

    (0) 

Leave a Reply