cancel
Showing results for 
Search instead for 
Did you mean: 

can´t install saprouter as services on windows 2008 R2

nelson_chamba2
Participant
0 Kudos


Hi folks,

I´m having this error on installing saprouter as services.

I´m running it on a windows 2008 R2 Server and according with the note 618053 I should use the sc instead of ntscmgr but with sc it can´t see the install.

The command i´m using is:

# ntscmgr install SAProuter -b D:\usr\sap\saprouter\saprouter.exe –p “service -r -R D:\usr\sap\saprouter\saprouttab -W 60000 -K ^p:CN=saprouter,OU=000XXXXXXX,OU=SAProuter,O=SAP,C=DE^"

Even when I start the saprouter alone it gives me this error:

Please check the screenshot for more details.

Best regards,

Nelson Chamba.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When you are opening CMD, make sure you're right-clicking and selecting "run as administrator", even if you are currently logged on as an admin. That will get rid of your "access denied" error in creating the service.

The "wildcard error" can be ignored, but make sure the format of your saprouttab is correct and post your dev_route log (block any confidential info).

nelson_chamba2
Participant
0 Kudos

Hi Pavlovoc,

Thank you for the hint, the error was exactly that , run as administrator

But now I have something different, the service is not starting, can you please check my screenshot to see what´s wrong?

Best regards,

Nelson Chamba\

nelson_chamba2
Participant
0 Kudos

Hi Pavlovic,

Here is the output of dev_rout

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

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

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

Mon Dec 09 03:30:57 2013

SAP Network Interface Router, Version 40.4

command line arg 0: saprouter.exe

command line arg 1: -r

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

reading routtab: './saprouttab'

*** ERROR => SNC field without SNC active, skip line 2 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 7 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 8 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 13 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 18 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 23 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 27 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 33 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 34 [nirout.cpp   9240]

*** ERROR => SNC field without SNC active, skip line 35 [nirout.cpp   9240]

Best regards,

Nelson Chamba\

Former Member
0 Kudos

Hi Nelson,

Looks from your screenshot like you're running the SAP Router service with "Local Sys Account". You have to run SAP Router with the same user that you used to configure the SNC.

Durin the step when you're importing the cert that was generated by SAP:

1.    sapgenpse seclogin –p local.pse

     You can use “-O” if you want to change the user that you configure with. SAP router has to run under that user.

Former Member
0 Kudos

I can only say one line please read the link and try to configure the router

http://service.sap.com/saprouter-sncdoc

If you think that you have done all then past the command output.

sapgenpse seclogin –l

sapgenpse get_my_name -v -n Issuer


and saproutertab.


Thanks

Rishi Abrol

nelson_chamba2
Participant
0 Kudos

Dear Rishi,

Please find in the attachment the results of the output.

Look, but when I run it manually using the command:


saprouter.exe -r -S 3299 -G con1.log -K "p:CN=saprouter,OU=0001040564,OU=SAProuter,O=SAP,C=DE"

It works and users can connect to my system.

Best regards,

Nelson Chamba\

Sriram2009
Active Contributor
0 Kudos

Hi Nelson

Check this SAP KBA 1921693 - How to update SAProuter

Regards

Ram

Sriram2009
Active Contributor
0 Kudos

Hi

One more thing have you disable the Firewall & UAC in windows 2008 server ?

Regards

Ram

Former Member
0 Kudos

Hi Nelson,

Your regedit entry has an extra space after the first quote. Not sure if that will fix your problem, but try getting rid of it.

Ie.

-p " service

should be:

-p "service

Also, make sure you remove P * * * from your saprouttab after you're done testing, as well as P * 194.39.131.34 3299 (that will allow anyone to bounce through you to OSS.

Thanks,


Damjan Pavlovic

Former Member
0 Kudos

Hi Nelson,

My mistake, I just checked my own, your regedit entry should say the following:

D:\usr\sap\saprouter\saprouter.exe service -r -W 30000 -G D:\usr\sap\saprouter\routerlog.txt -R D:\usr\sap\saprouter\saprouttab -K "p:CN=saprouter, OU=0001040564, OU=SAProuter, O=SAP, C=DE"

Copy/paste that.

Former Member
0 Kudos

Hi,

First thing which user is trying to run the command is it slmadm?


saprouter.exe -r -S 3299 -G con1.log -K "p:CN=saprouter,OU=0001040564,OU=SAProuter,O=SAP,C=DE"

as per the note you should register the service with these setting as it think below which are bold are missing.

\usr\sap\saprouter\saprouter.exe service -r -W 60000 -R d:\usr\sap\saprouter\saprouttab -K "p:CN=XXXXX, OU=0000111111, OU=SAProuter, O=SAP, C=DE""

Have you ran the below command..

sapgenpse seclogin -p <path>\<psefile> -O <SNC_admin>

Thanks

Rishi abrol

nelson_chamba2
Participant
0 Kudos

Hi Sriram,

Yes, firewall are all disabled just ON to Private Networks.

Best regards,

Nelson Chamba\

nelson_chamba2
Participant
0 Kudos

Hi Pavlovic,

Done, thanks for the alerts on the saprouter.

Regards,

Nelson Chamba\

nelson_chamba2
Participant
0 Kudos

Hi Pavlovic,

It´s working was just change the string (copy & past). Now I understand the problem I was comparing the lines and for my case was

D:\usr\sap\saprouter\saprouter.exe

–p "service

-r

-R D:\usr\sap\saprouter\saprouttab

-W 60000

-K "p:CN=saprouter,OU=0001040564,OU=SAProuter,O=SAP, C=DE""

And the right one is:

D:\usr\sap\saprouter\saprouter.exe service

-r

-W 30000

-G D:\usr\sap\saprouter\routerlog.txt

-R D:\usr\sap\saprouter\saprouttab

-K "p:CN=saprouter, OU=0001040564, OU=SAProuter, O=SAP, C=DE"

Thank you all

Best regards,

Nelson Chamba\

Answers (4)

Answers (4)

0 Kudos

C:\usr\sap\saprouter>sc.exe create SAPRouter binPath= "C:\usr\sap\saprouter\saprouter service -r -S 3299 -W 60000 -R C:\usr\sap\saprouter\saprouttab -K ^p:<Your respective Distinguished name>^" [SC] CreateService SUCCESS

Regedit:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\saprouter string ImagePath

From: C:\usr\sap\saprouter\saprouter service -r -S 3299 -W 60000 -R C:\usr\sap\saprouter\saprouttab -K ^p:<your respective distinguished name>^”

To:C:\usr\sap\saprouter\saprouter service -r -S 3299 -W 60000 -R C:\usr\sap\saprouter\saprouttab -K "p:<your respective distinguished name>"

0 Kudos

For: Windows 2008 R2 - The above solution worked for me.

tsenol
Active Participant
0 Kudos

Hi Nelson,

In windows platforms sometimes ' can be a problem in CMD.

So please create the service as below and then change the record in REGEDIT. I'm writing step by step.

sc.exe create SAPRouter binPath= "d:\usr\sap\saprouter\saprouter.exe service -r -W 60000 -R d:\usr\sap\saprouter\saprouttab -K ^p:CN=XXXXX, OU=0000111111, OU=SAProuter, O=SAP, C=DE^" start= auto obj= "XXXX\saprouter"

After creating the service, find the key from Regedit-> HKEY_LOCAL_MACHINE  -> SYSTEM - >CurrentControlSet - >Services -> Saprouter -> Imagepath

and change signs ^  to  “.

After save, try to start service.

Regards

nelson_chamba2
Participant
0 Kudos

Hi Senol,

thank you for the hint, did that but the service is not starting it´s giving me the error from the screenshot i posted on the previous message, please check.

Best regards,

Nelson Chamba

Sriram2009
Active Contributor
0 Kudos

Hi

Just restart the windows server and then try again as you mention the same SAP note 618053

Regards

Ram

nelson_chamba2
Participant
0 Kudos

Hi Sriram,

nop

regards,

Nelson\

Sriram2009
Active Contributor
nelson_chamba2
Participant
0 Kudos

Hi Sriram,

still

D:\usr\sap\saprouter> ^p:CN=saprouter,OU=000XXXXXXX,OU=SAProuter,O=SAP,C=DE^"
The system cannot find the drive specified.

D:\usr\sap\saprouter>
D:\usr\sap\saprouter>ntscmgr.exe install SAProuter -b "D:\usr\sap\saprouter\sapr
outer.exe -p service -r -R D:\usr\sap\saprouter\saprouttab -W 60000 -K
failure: OpenSCManager, NT ErrorMessage: Access is denied.

failure: CreateService (0x06)

D:\usr\sap\saprouter> ^p:CN=saprouter,OU=000XXXXXXX,OU=SAProuter,O=SAP,C=DE^"
The system cannot find the drive specified.

D:\usr\sap\saprouter>

regards,

Nelson\


Sriram2009
Active Contributor
0 Kudos

Hi Nelson

You can follow the steps in SAP Note as already mention by Benjamin

525751 - Installation of the SNC SAPRouter as NT Service

Regards

Ram

Former Member
0 Kudos

Hi,

Have you configured the router first . we can register the service later. You have not configured the router and you are trying to start the service.

Please follow the below link and configure the router.

http://service.sap.com/saprouter-sncdoc

1628296 - SAProuter installation process

Thanks

Rishi abrol

Former Member
0 Kudos

This is an SO issue.

You must run this command under administrator credentials.

Log on system as an administrator and run the prompt as administrator.

Then execute the following

sc create SAProuter -b "D:\usr\sap\saprouter\saprouter.exe -p "service -r -s 3299 -R D:\usr\sap\saprouter\saprouttab -W 60000 -K p:^xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx^"

substitute the xxxxxx by the distinguish name of your saprouter.

After that, go to the registry of your windows and ajust the shortcut on the service.

nelson_chamba2
Participant
0 Kudos

Hi Murador,

great, the problem was really the user, i runned as administrator and it installed the service but now it´s not running as services it give me this error here, what could be the problem?

This was the command I used:

ntscmgr install SAProuter -b "D:\usr\sap\saprouter\saprouter.exe -p service -r -R D:\usr\sap\saprouter\saprouttab -W 60000 -K ^p:CN=saprouter,OU=0001031150,OU=SAProuter,O=SAP,C=DE^”

And I changed the ^ with the " on the regedit, please can you help troubleshoot what´s wrong here?

Check the screenshot for more details.

Best regards,

Nelson Chamba\

former_member183107
Contributor
0 Kudos

Hi nelson,

You should install the SNC saprouter as NT service using the recommended SAP note 525751.

In case you are still getting issues then you can raise an OSS message in the component XX-SER-NET-HTL.

It could be your Saprouter started from service is not configured correctly. Are you able to start your Saprouter manually using command ?

Please stop the saprouter process with command ' saprouter -s ' and restart it using the following options.  Please type in one line and keep a space after the comma.

saprouter -r -V 2 -K "p:CN=INBL5S07, OU=0001254733, OU=SAProuter, O=SAP, C=DE"

Try to test the RFC connection to SAPOSS via transaction SM59  -> R/3 Connections /ABAP -> Connections -> SAPOSS -> Test Connection
(see also  SAP note 33135) and send us the following information in the message, in order for us to troubleshoot  the connection problem:

-> Output of the command 'sapgenpse'
-> Output of the command 'sapgenpse get_my_name -n all'
-> Output of the command 'sapgenpse seclogin -l'
-> Output of the commands
    INBL5S07# niping -c -O -S 3299 -H 194.39.131.34
    INBL5S07# niping -c -H /H/INBL5S07/H/194.39.131.34/H/194.39.131.34
-> File of dev_rout (after the test access to SAPOSS)
-> File of saprouttab
-> Technical settings in transaction OSS1(Parameter ->Technical Settings)

Regards,

Himanshu

Reagan
Advisor
Advisor
0 Kudos

Hello

Try this string and see whether it works.

ntscmgr install SAPRouter -b D:\usr\sap\saprouter\saprouter.exe -p "service -r -W 60000 -R D:\usr\sap\saprouter\saprouttab -K ^p:CN=saprouter, OU=000XXXXXXX, OU=SAProuter, O=SAP,C=DE^"

Refer to this SAP note

525751 - Installation of the SNC SAPRouter as NT Service

Regards

RB

nelson_chamba2
Participant
0 Kudos

Hi Benjamin,

According with the note it still not going

D:\usr\sap\saprouter>sc create SAPRouter -b "D:\usr\sap\saprouter\saprouter.exe
service -r -W 60000 -R D:\usr\sap\saprouter\saprouttab -K ^p:CN=saprouter,OU=000
XXXXXXX,OU=SAProuter,O=SAP,C=DE^" start= auto obj= "NT AUTHORITY\LocalService"
[SC] OpenSCManager FAILED 5:

Access is denied.


D:\usr\sap\saprouter>

regards

nelson\

Sriram2009
Active Contributor
nelson_chamba2
Participant
0 Kudos

Hi dear Sriram,

there is no saprouter services on this list, please check the screenshot.

Best regards,

Nelson Chamba\