cancel
Showing results for 
Search instead for 
Did you mean: 

SAP router error RC -17 SncSetMyNameU

mandeep_kauldhar
Participant
0 Kudos

I am configuring SAP router on windows server.

I have internal host name say <host_i> and IP ‘192.168.0.1’ and external host name <host_e> and ip ‘214.787.33.33’.

I am getting error while starting sap router:

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

*

*  ERROR       SNC processing failed:

* SncSetMyNameU

*

*  TIME        Tue Aug 04 18:52:23 2015

*  RELEASE     742

*  COMPONENT   NI (network interface)

*  VERSION     40

Tue Aug 04 18:52:23 2015

*  RC          -17

*  MODULE D:/depot/bas/742_REL/src/base/ni/nisnc.c

*  LINE        569

*  DETAIL      NiSncInit: sncrc=-4

*  COUNTER     3

*

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

I followed the guide on link below:

https://support.sap.com/remote-support/help/installing-saprouter.html

I tried sap notes but in vain.

35010 - Service connections: Composite note (overview))

33135 - Guide for OSS1

i tried putting only below entry in SAPROUTTAB file

P * * * *

or

KP * * * *

then starting with

saprouter -r -K "p:CN=<host_e>, OU=<sap_ou_id>, OU=SAProuter, O=SAP, C=DE"

any clue will be helpfull.

Here is the dev_rout file output

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

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

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

Tue Aug 04 18:52:23 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=<router_host_name_external>, OU=<SAP_OU_id>, OU=SAProuter, O=SAP, C=DE;

SncInit(): Initializing Secure Network Communication (SNC)

      PC with Windows NT (mt,ascii,SAP_UC/size_t/void* = 8/64/64)

      GetUserName()="sapadm" NetWkstaUser="sapadm"

SncInit(): Trying environment variable SNC_LIB as a

      gssapi library name: "C:\usr\sap\saprouter\sapcrypto.dll".

  File "C:\usr\sap\saprouter\sapcrypto.dll" dynamically loaded as GSS-API v2 library.

  SECUDIR="C:\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.39 pl40 (Jul 15 2015) MT-safe

*** ERROR => SncPGSSImportName()==SNCERR_GSSAPI  [D:/depot/bas/74 2636]

      GSS-API(maj): An invalid name was supplied

    Import of a name failed

    name="p:CN=<router_host_name_external>, OU=<SAP_OU_id>, OU=SAProuter, O=SAP, C=DE;"

<<- SncSetMyName()==SNCERR_GSSAPI

     in: myname = "p:CN=<router_host_name_external>, OU=<SAP_OU_id>, OU=SAProuter, O=SAP, C=DE;"

*** ERROR => NiSncInit: SncSetMyNameU failed (sncrc=-4;'p:CN=<router_host_name_external>, OU=<SAP_OU_id>, OU=SAProuter, O=SAP, C=DE;') [nisnc.c      571]

*** ERROR => main: NiSncInit failed (rc=-17) [nirout.cpp 1958]

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

*

*  ERROR       SNC processing failed:

* SncSetMyNameU

*

*  TIME        Tue Aug 04 18:52:23 2015

*  RELEASE     742

*  COMPONENT   NI (network interface)

*  VERSION     40

Tue Aug 04 18:52:23 2015

*  RC          -17

*  MODULE D:/depot/bas/742_REL/src/base/ni/nisnc.c

*  LINE        569

*  DETAIL      NiSncInit: sncrc=-4

*  COUNTER     3

*

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

Mani

Accepted Solutions (0)

Answers (1)

Answers (1)

mandeep_kauldhar
Participant
0 Kudos

anybody clues?

Mani

Former Member
0 Kudos

Hi Mani,

May be it's a bit late, but are you sure you start with

saprouter -r -K "p:CN=<host_e>, OU=<sap_ou_id>, OU=SAProuter, O=SAP, C=DE"

and not with an extra ";" at the end as it reported in the dev_rout file ?

saprouter -r -K "p:CN=<host_e>, OU=<sap_ou_id>, OU=SAProuter, O=SAP, C=DE;"

I'd experienced a similar issue, but with an "NiSncInit: sncrc=-35"  instead "your" -4

I forgot the "p:" before CN.

Hope this help

Best regards

mandeep_kauldhar
Participant
0 Kudos

Resolved by inserting entry

sapdp99     3299/tcp

in file 'services' at location NT: '<windir>/system32/drivers/etc/services'.