cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Router not Starting Giving Error.

Former Member
0 Kudos

Dear Experts

When I tried to start sap router though the ./saprouter -r the following error message provided.

When I start with the paremeters

./saprouter -r -K "p:CN=example, OU=0000123456, OU=SAProuter, O=SAP, C=DE"

it gives the following error.

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

*

*  LOCATION    SAProuter 40.4 on 'cpstlsr'

*  ERROR       service '0.0.0.0:3299' in use

*

*  TIME        Thu Oct 29 15:30:48 2015

Thu Oct 29 15:30:48 2015

*  RELEASE     742

*  COMPONENT   NI (network interface)

*  VERSION     40

*  RC          -4

*  MODULE      /bas/742_REL/src/base/ni/nixxi.cpp

*  LINE        3778

*  DETAIL      NiIBindSocket

*  SYSTEM CALL bind

*  ERRNO       98

*  ERRNO TEXT  Address already in use

*  COUNTER     2

*

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

Then I read the file dev_rout it says like this.

---------------------------------------------------

trc file: "dev_rout", trc level: 1, release: "742"

---------------------------------------------------

Thu Oct 29 15:30:48 2015

SAP Network Interface Router, Version 40.4

command line arg 0: ./saprouter

command line arg 1: -r

command line arg 2: -K

command line arg 3: p:CN=CPSTLSR,OU=0000913484,OU=SAProuter,o=SAP,C=DE

SncInit(): Initializing Secure Network Communication (SNC)

      AMD/Intel x86_64 with Linux (mt,ascii,SAP_UC/size_t/void* = 8/64/64)

      UserId="root" (0), envvar USER="root"

SncInit(): Trying environment variable SNC_LIB as a

      gssapi library name: "/usr/sap/saprouter/libsapcrypto.so".

  File "/usr/sap/saprouter/libsapcrypto.so" dynamically loaded as GSS-API v2 library.

  SECUDIR="/usr/sap/saprouter/" (from $SECUDIR)

  The internal Adapter for the loaded GSS-API mechanism identifies as:

  Internal SNC-Adapter (Rev 1.1) to CommonCryptoLib

  Product Version = CommonCryptoLib (SAPCRYPTOLIB) Version 8.4.43 pl40 (Oct  8 2015) MT-safe

main: pid = 4750, ppid = 4602, port = 3299, parent port = 0 (0 = parent is not a saprouter)

***LOG Q0I=> NiIBindSocket: bind (98: Address already in use) [/bas/742_REL/src/base/ni/nixxi.cpp 3778]

*** ERROR => NiIBindSocket: SiBind failed for hdl 1/sock 5

    (SI_EPORT_INUSE/98; I4; ST; 0.0.0.0:3299) [nixxi.cpp    3778]

*** ERROR => main: NiBufServerHandleForAddr failed (rc=-4) [nirout.cpp   2208]

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

*

*  LOCATION    SAProuter 40.4 on 'cpstlsr'

*  ERROR       service '0.0.0.0:3299' in use

*

*  TIME        Thu Oct 29 15:30:48 2015

Thu Oct 29 15:30:48 2015

*  RELEASE     742

*  COMPONENT   NI (network interface)

*  VERSION     40

*  RC          -4

*  MODULE      /bas/742_REL/src/base/ni/nixxi.cpp

*  LINE        3778

*  DETAIL      NiIBindSocket

*  SYSTEM CALL bind

*  ERRNO       98

*  ERRNO TEXT  Address already in use

*  COUNTER     2

*

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


saprouttab file as follows


#SNC connection to SAP

KT "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 194.39.131.34 *

# SNC-connection from SAP to local system for R/3 Support

#KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 192.168.10.* 3200

KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 10.10.10.* *

# SNC-connection from SAP to local system for pcAnywhere, if applicable

#KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" <IP-address> 5631

# SNC-connection from SAP to local system for SAPtelnet, if applicable

#KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" <IP-address> 23

# SNC-connection from SAP to local system for WTS, if applicable

#KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" <IP-address> 3389

# Access from local network to SAP

#P * 194.39.131.34 3299

#P * 194.39.131.34 *

P * * *

# All other connections will be denied

#D * * *


I created the certificate and not get any error.

Please provide me a solution.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear All willing to help me.

It got resolved after I start the saprouter with parameters.

./saprouter -r -S 3299 -K "p:CN=XXXXX, OU=0000XXXXX, OU=SAProuter, O=SAP, C=DE" &

Thank you very much.

Priyan

Answers (3)

Answers (3)

former_member199290
Participant
0 Kudos

Hi Priyan:

As Amerjit mentioned from the above error messages that you have shared it appears that there is another saprouter process that is already using this port.

After you started the saprouter -r ,  the error that appeared for the saprouttab does n't necessarily mean that the saprouter did not start.

Can you check the status of your saprouter using command saprouter -l ?

Thanks.

Former Member
0 Kudos

Hi mandeep.

This is the saprouter -l output.

BR

Priyan

former_member199290
Participant
0 Kudos

Hi Priyan:

You have mentioned in one of your post that telnet to port 3299 for saprouter host is working so it implies that a service is litening on port 3299.

Can you please share the results of your netstat command?

netstat –an | find "3299"

Thank you.

Former Member
0 Kudos

Hello Priyan,

Of the different error/warnings that are in the info you have pasted in, the first thing I would look at is to see why port 3299 is in use.

Make sure you don't already have a running saprouter process.

Also, please don't run saprouter as "root". Create a dedicated user with the appropriate permissions for this.

Please check your /etc/services file and also network connections with netstat to see what is currently listening on port 3299.

KR,

Amerjit

Former Member
0 Kudos

Dear Amerjit.

I checked it already. no process running with the port 3299 and no any sap router process is running.

A dedicated user is there to run this, But it also provided the same error in same way. thats y I uses root to start this. and I have given appropriate permission for the root as well.

I telnet to the port 3299 from the sap servers is working fine.But the saprouter service not starting.

Thanks

Former Member
0 Kudos
*  ERROR   service '0.0.0.0:3299' in use

It seems there is some other process on your host, blocking port 3299.

At best this is an unneeded process.

You may get rid of it by killing the process, or simply by rebooting.

At worst this process is needed by some other application. In this case you will have to reconsider your whole configuration.

What else is running on that computer, except for the saprouter?

hope this helps

Former Member
0 Kudos

Dear Josef.

I checked with netstat for 3299 is using. but not listed.

Also checked any saprouter process is running, but not running any saprouter process.

I am running NTP service on same box.

I have attached a status screenshot as well.

Please check.

BR

Priyan

former_member182657
Active Contributor
0 Kudos

Hi Priyan,

It's bit strange still port 3299 is in use after following above recommendations especially by @


please don't run saprouter as "root". Create a dedicated user with the appropriate permissions for this.

Please check your /etc/services file

Addition to above could you please share your host file as i've some doubts related with the last sanp shot which you shared.

If possible try to check or maintain host entries as similar & restart the system once more to test again.


127.0.0.1  localhost.localdomain localhost

<IP of server> <Host Name>

Regards,

Gaurav