Solution : https://service.sap.com/sap/support/notes/1565645 (SAP Service marketplace login required)
Summary : Key words : Related Notes :
This SAP Note addresses issues encountered when using the sapcontrol utility, particularly relating to authentication errors such as HTTP/1.1 401 Unauthorized, invalid credentials, and connection refusals. Key concerns include improper handling or absence of /tmp/.sapstream5$$13 or \\.\pipe\saptcontrol_$$ on Unix and Windows respectively, incorrect user execution permissions, and possibly misconfigured or failing services such as sapstartsrv. Solutions include file management, service restarts, permission checks, relevant SAP Note references, and PAM configuration reviews. Ensure that all operations are performed under the correct user context, namely
sapcontrol -nr <instance number> -function restartservice, - http basic authentication - trusted connects, basic http authentication, operating system level, trusted connection functionality, <sid>adm user, instance number, plugin_fopen solution follow, trace file sapstartsrv, sapcontrol function
1348820 sapstartsrv hangs after receiving 'StopService' request 927637 Web service authentication in sapstartsrv as of Release 7.00 877795 Problems with sapstartsrv from Release 7.00 and 6.40 patch 169