cancel
Showing results for 
Search instead for 
Did you mean: 

SAP not starting on Windows 2012 - message server not responding

Former Member
0 Kudos

Hi gurus,

I have some strange problems with starting SAP ERP 6.0 on Windows 2012 OS with Oracle 11.2.0.4 database. Server is connected into domain, but SAP is installed as local administrator.

System was working untill today morning (at night was shutted down becase of maintenance)

First weird observation : After launching sapmmc is not asking for any credentials during system start or stop. Also starting/stopping system or even expanding list is very, very slow.

This is how it looks:

Second weird observation: Message server is running, but is not responding, so disp+work processes cannot start. Running with rdisp/TRACE = 2 parameter shows this kind of logs:

[Thr 3268] MsIAddAddr: add 0 [10.14.16.127] (HOSTNAME)

[Thr 3268] NiHLGetNodeAddr: found hostname 'localhost' in cache

[Thr 3268] NiIGetNodeAddr: hostname 'localhost' = addr 127.0.0.1

[Thr 3268] MsIAddAddr: add 1 [127.0.0.1] (LOCALHOST)

[Thr 3268] NiPGetNodeAddrListInit: use GetAdaptersAddresses implementation (03)

[Thr 3268] MsGetOwnIpAddr: my host addresses are :

[Thr 3268] NiHLGetHostName: found address 10.14.16.127 in cache

[Thr 3268] NiIGetHostName: addr 10.14.16.127 = hostname 's[xxxx]n13'

[Thr 3268]   1 : [10.14.16.127] socvn13 (HOSTNAME)

[Thr 3268] NiHLGetHostName: got address 127.0.0.1 from operating system

[Thr 3268] NiIGetHostName: addr 127.0.0.1 = hostname 'S[xxxxxx]13.domain.Net'

[Thr 3268]   2 : [127.0.0.1] S[xxxxxx]13.domain.Net (LOCALHOST)

Strange, because few lines earlier hostname is normally resolved to ip address attached to interface.

What can cause this problems? Ive double checked services file, modified several time hosts file, checked start and instance profile files... msmon connects to message server without any problem.

I tried also started with command line - no success. R3trans is working, niping result:

C:\Windows\system32>niping -v -H s[xxxxx]13

Hostname/Nodeaddr verification:

===============================

Hostname of local computer: S[xxxxx]13                          (NiMyHostName)

Lookup of hostname: S[xxxxx]13   (ALL UPPER CASE)                               (NiHostToAddr)

    --> IP-Addr.: 10.14.16.127

Lookup of IP-Addr.: 10.14.16.127                             (NiAddrToHost)

    --> Hostname: s[xxxxx]3 (ALL LOWER CASE)

Lookup of hostname: s[xxxxx]13  (lower case)                                (NiHostToAddr)

    --> IP-Addr.: 10.14.16.127

Lookup of IP-Addr.: 10.14.16.127                             (NiAddrToHost)

    --> Hostname: s[xxxxx]13 (lower case)

Maybe here is a problem, hostname is case sensitive? Also this result is strange:

C:\Windows\system32>niping -v -H localhost

Hostname/Nodeaddr verification:

===============================

Hostname of local computer: S[xxxxx]13                          (NiMyHostName)

Lookup of hostname: S[xxxxx]13                                  (NiHostToAddr)

    --> IP-Addr.: 10.14.16.127

Lookup of IP-Addr.: 10.14.16.127                             (NiAddrToHost)

    --> Hostname: s[xxxxx]13

Lookup of hostname: localhost                                (NiHostToAddr)

    --> IP-Addr.: 127.0.0.1

Lookup of IP-Addr.: 127.0.0.1                                (NiAddrToHost)

    --> Hostname: S[xxxxx]13.[domain].Net

Also, problematic logs from disp+work process:

** ERROR => NiPGetServByName: result for 'sapdp00' is NULL [ninti.c  1320]

*** WARNING => DpNetCheck: NiServToNo(sapdp00) failed (rc=-3)

*** ERROR => NiPGetServByName: result for 'sapgw00' is NULL [ninti.c  1320]

*** ERROR => DpNetCheck: NiServToNo(sapgw00) failed (rc=-3) [dpxxtool2.c  6387]

Sat Apr 18 19:26:53 2015

*** WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds

*** ERROR => NiPGetServByName: result for 'http' is NULL [ninti.c  1320]

***LOG GZZ=> 3 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  6525]

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182657
Active Contributor
0 Kudos

Hi Martin,


(at night was shutted down becase of maintenance)

Please share what maintenance you performed on the system,I guess you did some changes at Domain Controller end,If yes please share.


[Thr 5880] ***LOG Q0I=> NiPConnect2: 127.0.0.1:3900: connect (10061: WSAECONNREF

USED: Connection refused) [nixxi.cpp 3283]

[Thr 5880] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 400

    (SI_ECONN_REFUSE/10061; I4; ST; 127.0.0.1:3900) [nixxi.cpp    3283]

Yes of-course it's related with network configurations as well as DC disturbances at your end.If possible could you share nslookup results from the SAP server.

With this i would like to check complete name resolution of your SAP server from DC end with help of nslookup command,similarly you could execute the same command at server end to resolve DC information.If possible kindly share both the results.

In case you failed to get info then try to re maintain the DNS entries (i.e PTR A record setup )for your SAP server & check again with same nslookup command.

I suggested all this to you as you're facing SI_ECONN_REFUSE/10061 & this code or message relates with network as well as resolution of name servers.

Hope you'll find it helpful.

Good luck !!

Former Member
0 Kudos

Ok.

Firstly, thank you guys for investigation and help.

I was so confused, that I reinstalled whole SAP once again. And it started without problem. However, after Windows reboot I had again same problem.

So this had to be something different that hosts or services file - they are not changing after reboot, I think

I checked in services.msc users on which they are running. I've changed them to user [sid]adm and problem resolved. Probably something is wrong in local users rights, but I dont have rights on my user to check policies.

Thank you again, thread can be closed.

Matt_Fraser
Active Contributor
0 Kudos

Hi Martin,

So, it's working now? If so, go ahead and mark the question as answered to close it out.

If not, a couple things jump out at me from what you've written. You asked about whether hostnames are case-sensitive, and the answer is yes, they are, except not everywhere. Much about Windows will not care whether you get the case right in a hostname, but SAP follows a different standard (similar to Unix), and it does care. If you set hostnames in the SAP profiles, for instance, that are lower-case, but your DNS resolves as upper-case, you will get inconsistent behavior. So, that's the first thing, make sure the hostname appears in the same case everywhere: nslookup (i.e., DNS), the hosts file (if it's maintained there), the SAP default, start, and instance profiles, and once you get the system started, check for consistency in SM51, RZ04, etc.

The other thing that jumped at me is you said the system was running as local administrator. Since you are in a domain environment, the system should really run under a domain account, and a very specific one at that. The installation would have attempted to create the domain accounts sidadm (lower-case) and SAPServiceSID (mixed-case), where sid or SID represent the System ID of your SAP system. It is possible to use local accounts instead of domain accounts, but they still must follow this naming convention and be setup correctly. If you look in the installation guide, there is a chapter about how to install using domain accounts without being a domain administrator (basically, you have to ask your domain administrator to setup the accounts and group ahead of time), or how to install using local accounts (which is not usually recommended, but is supported as long as they system all runs on a single host). The SAPServiceSID account does not have to be a local administrator, but it does need some specific rights, and those rights are granted during the installation as long as the user account you use for the installation is a local administrator.

The supported way to change which user the system runs with is to use the System Rename tool. This will also allow you to change from a local to a domain installation. Or, of course, you can always just reinstall, but you're probably getting tired of that by now.

Cheers,

Matt

Answers (2)

Answers (2)

gil_piotr
Explorer
0 Kudos

I had similar problem - connected with domain. Some policies were not correctly set for local accounts, maybe try setting sap services on different accounts, run sapmmc with another account or something..

Domains are weird

Sriram2009
Active Contributor
0 Kudos

Hi Martin

1.  Before its was working fine? could you share the you SAP Basis & BW support package level?

2. Could you share the log of dev_disp

BR

SS

Former Member
0 Kudos

Hi,

thank you for your answer.

Unfortunately, I dont have anywhere written down versions But system was installed a week ago. It is ERP 6.0 without any EhP.

Yes, It was working fine earlier... In attachement whole dev_disp.

Sriram2009
Active Contributor
0 Kudos

Hi Martin

1.  Could you just add the host enter IP = hostname  & same IP =hostname.microsoft.com and then try to start the SAP instance

2. After install the SAP system have you upgraded the Support package? because Windows 2012 on SAP required minimum SP level of Basis = 26 & BW 28

BR

SS

Former Member
0 Kudos

Now msg server is even not starting...

However, I tried to debug starting process and ive got this:

C:\Windows\system32>sapcontrol -nr 00 -function GetEnvironment -debug

[Thr 5880] Sat Apr 18 20:54:02 2015

[Thr 5880] NiIInit: allocated nitab (2048 at 0000000003C80080)

[Thr 5880] NiIHSBufInit: initialize hostname buffer (IPv4)

[Thr 5880] NiHLInit: alloc host buf (100 entries)

[Thr 5880] NiSrvLInit: alloc serv bufs (100 entries)

[Thr 5880] addrinfo of 'sapctrl00':

[Thr 5880] 0: ::1.3900 STREAM (0-23-1-0-28)

[Thr 5880] 1: 127.0.0.1:3900 STREAM (0-2-1-0-16)

[Thr 5880] NiSrvLGetServNo: got service name 'sapctrl00' from operating system

[Thr 5880] NiIGetServNo: servicename 'sapctrl00' = port 3900

[Thr 5880] NiInit3: NI already initializes (init=1;cur=2048)

[Thr 5880] addrinfo of 'localhost':

[Thr 5880] 0: 127.0.0.1:0 'SOCVN13.Mars-AD.Net' <unknown socket type 0> (0-2-0-0

-16)

[Thr 5880] NiHLGetNodeAddr: got hostname 'localhost' from operating system

[Thr 5880] NiIGetNodeAddr: hostname 'localhost' = addr 127.0.0.1

[Thr 5880] NiIGetServNo: servicename '3900' = port 3900

[Thr 5880] NiICreateHandle: hdl 1 state NI_INITIAL_CON

[Thr 5880] NiIInitSocket: set default settings for new hdl 1/sock 400 (I4; ST)

[Thr 5880] NiIBlockMode: set blockmode for hdl 1 FALSE

[Thr 5880] NiThrInit enter

[Thr 5880] NiITraceByteOrder: CPU byte order: little endian, reverse network, lo

w val .. high val

[Thr 5880] NiIConnectSocket: hdl 1 is connecting to 127.0.0.1:3900 (timeout=-1)

[Thr 5880] Sat Apr 18 20:54:03 2015

[Thr 5880] SiPeekPendConn: connection of sock 400 broke (10061-WSAECONNREFUSED:

Connection refused)

[Thr 5880] NiSrvLGetServName: found port number 3900 in cache

[Thr 5880] NiIGetServName: port 3900 = servicename 'sapctrl00'

[Thr 5880] ***LOG Q0I=> NiPConnect2: 127.0.0.1:3900: connect (10061: WSAECONNREF

USED: Connection refused) [nixxi.cpp 3283]

[Thr 5880] *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 1/sock 400

    (SI_ECONN_REFUSE/10061; I4; ST; 127.0.0.1:3900) [nixxi.cpp    3283]

[Thr 5880] NiICloseHandle: closing initial hdl 1

And here is trace from dev_ms:

[Thr 3552] NiMyHostName: hostname = 'S[xxxx]13'

[Thr 3552] NiHLGetNodeAddr: got hostname 'S[xxxx]13' from operating system

[Thr 3552] NiIGetNodeAddr: hostname 'S[xxxx]13' = addr 10.14.16.127

[Thr 3552] NiHLFlush: cache flushed

[Thr 3552] NiSrvLFlush: service cache flushed

[Thr 3552] NiHLGetHostName: got address 10.14.16.127 from operating system

[Thr 3552] NiIGetHostName: addr 10.14.16.127 = hostname 'hos.microsoft.com'

[Thr 3552] MsSInit: full qualified name hos.microsoft.com

[Thr 3552]

[Thr 3552] command line arg  0: D:\usr\sap\TA[x]\ASCS01\exe\msg_server.EXE

[Thr 3552] command line arg  1: pf=D:\usr\sap\TA[x]\SYS\profile\TA[x]_ASCS01_S[xxxxxx]13

[Thr 3552]

systemid   562 (PC with Windows NT)

relno      7210

patchlevel 0

patchno    327

intno      20020600

make       multithreaded, Unicode, 64 bit, optimized

pid        4852

[Thr 3552] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 4852) [msxxserv.c   2305]

[Thr 3552] 

[Thr 3552] SigIInit: ok (whoami=128)

[Thr 3552] Thread handle for mainthread created

[Thr 3552] SigIRegisterRoutine: handler for signal SIGSEGV installed (SigISegv)

[Thr 3444] Pipe created: \\.\pipe\SAP4852

[Thr 3552] SigIInit: Create Message Thread

[Thr 3552] SigIRegisterExitRoutine: exithandler installed (MsSHalt)

[Thr 3552] SigIRegisterTerminateRoutine: terminatehandler installed (MsSHalt)

[Thr 3552] SigIRegisterRoutine: handler for signal SIGINT installed (MsSExit)

[Thr 3552] SigIRegisterRoutine: handler for signal SIGTERM installed (MsSExit)

[Thr 3552] SigIRegisterRoutine: handler for signal 16 installed (MsSTrcDec)

[Thr 3552] SigIRegisterRoutine: handler for signal 17 installed (MsSTrcInc)

[Thr 3552] SigIRegisterRoutine: handler for signal 3 installed (MsSSoftShutdown)

[Thr 3552] SigIRegisterRoutine: handler for signal 18 installed (MsSigPrivDisp)

[Thr 3552] SigIRegisterRoutine: handler for signal 24 installed (MsSigPrivDisp)

[Thr 3552] SigIRegisterRoutine: handler for signal 0 installed (MsSigPrivDisp)

[Thr 3552] NiHLGetNodeAddr: got hostname 'localhost' from operating system

[Thr 3552] NiIGetNodeAddr: hostname 'localhost' = addr 127.0.0.1

[Thr 3552] NiICreateHandle: hdl 1 state NI_INITIAL_CON

[Thr 3552] *** ERROR => NiIInitSocket: SiSocket failed (sirc=6; I4; DG; errno=10022: WSAEINVAL: Invalid argument) [nixxi.cpp    823]

[Thr 3552] ***LOG Q0I=> NiIInitSocket: WSASocket, socket (10022: WSAEINVAL: Invalid argument) [nixxi.cpp 825]

[Thr 3552] *** ERROR => NiIInitSocket: SiSocket failed for hdl 1/sock -1

    (SI_ESYSCALL/10022; I4; DG) [nixxi.cpp    825]

[Thr 3552] *** ERROR => NiIWakeupBind: NiIInitSocket failed (rc=-1) [nixxi.cpp    9731]

[Thr 3552] NiICloseHandle: closing initial hdl 1

[Thr 3552] *** ERROR => NiWakeupOpen: NiIWakeupBind failed (rc=-1) [nixxi.cpp    9375]

[Thr 3552] *** ERROR => MsSInitWakeupServer: NiWakeupOpen failed (NIEINTERN) [msxxserv.c   2086]

[Thr 3552] *** ERROR => MsSInit: MsSInitWakeupServer rc=(NIEINTERN) [msxxserv.c   2338]

[Thr 3552] *** ERROR => MsSInit failed, see dev_ms for details

[msxxserv.c   7745]

[Thr 3552] *** MS_FATAL_ERROR => MsSInit failed, see dev_ms for details

[Thr 3552]

[Thr 3552] ***LOG Q02=> MsSHalt, MSStop (Msg Server 4852) [msxxserv.c   7804]

[Thr 3552] Good Bye .....

Sriram2009
Active Contributor
0 Kudos

Hi

1. Just refer the SAP KBA

1872990 - various error messages related to incorrect resolution of localhost

2. After installed the SAP ERP 6.00 have you change the host name?

BR

SS

Former Member
0 Kudos

various combinations with localhost didnt change anything...

It is possible that someone changed something at domain level and this caused that kind of issues?