cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to connect to sap web dispatcher

Former Member
0 Kudos

Hi Experts,

We have configured a sap web dispatcher but we aren't able to connect to the same even though the web disp starts successfully.

The profile parameters are mentioned below.

# Profile generated by sapwebdisp bootstrap

# unique instance number

SAPSYSTEM = 76

# add default directory settings

DIR_EXECUTABLE = .

DIR_INSTANCE = .

# SECUDIR for SSL Certificate

SETENV_00 = SECUDIR=/usr/sap/SXX/sapwebdisp/sec

# Accessibility of Message Servers

rdisp/mshost = sapsXXascs.xyz.com

ms/http_port = 8174

# SAP Web Dispatcher Parameter

wdisp/auto_refresh = 25

wdisp/max_servers = 100

wdisp/shm_attach_mode = 6

# configuration for small scenario

icm/max_conn      = 100

icm/max_sockets   = 1024

icm/req_queue_len = 300

icm/min_threads   = 5

icm/max_threads   = 15

mpi/total_size_MB = 20

#maximum number of concurrent connections to one server

wdisp/HTTP/max_pooled_con = 100

wdisp/HTTPS/max_pooled_con = 100

# SAP Web Dispatcher Ports

icm/server_port_0 = PROT=HTTP,PORT=8076

icm/server_port_1 =

icm/server_port_2 = PROT=HTTPS,HOST=wd-sXX.xyz.com,PORT=443, EXTBIND=1, TIMEOUT=60, PROCTIMEOUT=600

# SAP Web Dispatcher Web Administration

icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=icmauth.txt

#-----------------------------------------------------------------------

# System Assignments

#----------------------------------------------------------------------------

wdisp/system_0 = SID=S20, MSHOST=sapsxxascs.xyz.com, MSPORT=8174, SRCSRV=wd-sxx.xyz.com:443

#SSL Parameters

wdisp/ssl_encrypt=1

wdisp/ssl_certhost = wd-sxx.xyz.com

wdisp/add_client_protocol_header=false

icm/HTTPS/verify_client = 0

# SAP Web Dispatcher Web Administration

icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=icmauth.txt

dev_webdisp logs :

[Thr 140551923976032] Wed Oct 29 10:45:07 2014

[Thr 140551923976032] started security log to file ./dev_icm_sec

[Thr 140551923976032] SigISetDefaultAction : default handling for signal SIGCHLD

[Thr 140551923976032] SAP Web Dispatcher running on: xyz.com

[Thr 140551923976032] MtxInit: 30001 0 2

[Thr 140551923976032] ***LOG IM1=> IcmInit, Startup (SAP Web Dispatcher&xyz.com&27002&) [icxxman.c    2026]

[Thr 140551923976032] IcmInit: listening to admin port: 64995

[Thr 140551923976032] MPI: dynamic quotas disabled.

[Thr 140551923976032] MPI init: pipes=4000 buffers=319 reserved=95 quota=10%

[Thr 140551923976032] *** ERROR => e=13 semget(27638,1,992) (13: Permission denied) [semux.c      508]

[Thr 140551923976032] *** ERROR => SemRq: Implicit SemInit failed. Key=38 [semux.c      1132]

[Thr 140551923976032] *** ERROR => CCMS: AlCreateAttachShm_Ext : lock semaphore returns 1 [alxxappl.c   1285]

[Thr 140551923976032] *** ERROR => CCMS: unable to connect to montoring segment of application server! [alxxappl.c   1133]

[Thr 140551923976032] *** ERROR => IcmAlInit: AlInit_R3Kernel_AS failed (rc=249) [icxxalrt.c   241]

[Thr 140551923976032] CGROUPS: changing prio of pid 27002 to medium

[Thr 140551923976032] CGROUPS: disabled

[Thr 140551923976032] IcrCoreInitSessionTable: Session table initialized

[Thr 140551882446592] Adding HttpAdminHandler: PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=icmauth.txt

[Thr 140551882446592] HttpExtractArchive: files from archive ./wdispadmin.SAR in directory . are up to date

[Thr 140551882446592] HttpISubHandlerAdd: Added handler HttpAdminHandler(0x7fd4c4000f30), slot=0, flags=36869) for /sap/wdisp/admin, active: 1, table 0x7fd4c4000ad0

[Thr 140551882446592] Adding HttpModHandler: PREFIX=/

[Thr 140551882446592] HttpISubHandlerAdd: Added handler HttpModHandler(0x7fd4c4001380), slot=1, flags=12293) for /, active: 1, table 0x7fd4c4000ad0

[Thr 140551882446592] Adding HttpAuthHandler: PREFIX=/,FILTER=SAP

[Thr 140551882446592] CsiInit(): Initializing the Content Scan Interface

[Thr 140551882446592]            AMD/Intel x86_64 with Linux (mt,ascii,SAP_CHAR/size_t/void* = 8/64/64)

[Thr 140551882446592] CsiInit(): CSA_LIB = "./libsapcsa.so"

[Thr 140551882446592] HttpISubHandlerAdd: Added handler HttpAuthHandler(0x7fd4c4001720), slot=2, flags=12293) for /, active: 1, table 0x7fd4c4000ad0

[Thr 140551882446592] HttpISubHandlerAdd: Added handler HttpWebDispHandler(0x7fd4c4006940), slot=3, flags=1060869) for /, active: 1, table 0x7fd4c4000ad0

[Thr 140551882446592] WebSocketPlugInInit: WebSocket Plugin initialized

[Thr 140551882446592] IcmAddHiddenService: Hidden service WEBSOCKET started

[Thr 140551882446592] *** ERROR => NiIBindSocket: SiBind failed for hdl 25/sock 10

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

[Thr 140551882446592] *** ERROR => IcmBindService: NiBuf2Listen failed for host xyz.com:8073 (rc=-4): NIESERV_USED [icxxserv.c   3345]

[Thr 140551882446592] *** WARNING => IcmAddService: Could not start service (rc=-1) PORT=8073,PROT=HTTP,TIMEOUT=60,PROCTIMEOUT=60 [icxxserv.c   1031]

[Thr 140551882446592] IcmAddHiddenService: Hidden service WEBSOCKETS started

[Thr 140551882446592] =================================================

[Thr 140551882446592] = SSL Initialization    platform tag=(linuxx86_64_gcc43)

[Thr 140551882446592] =   (741_REL,Aug 23 2014,mt,ascii,SAP_UC/size_t/void* = 8/64/64)

[Thr 140551882446592]   DIR_INSTANCE="."

[Thr 140551882446592]   DIR_LIBRARY="."

[Thr 140551882446592]   ssl/ssl_lib="./libsapcrypto.so"

[Thr 140551882446592]   profile param "ssl/ssl_lib" = "./libsapcrypto.so"

[Thr 140551882446592]            resulting Filename = "./libsapcrypto.so"

[Thr 140551882446592] Wed Oct 29 10:45:08 2014

[Thr 140551882446592] =   found CommonCryptoLib (SAPCRYPTOLIB) Version 8.4.22 pl40 (Jul 23 2014) MT-safe

[Thr 140551882446592] =   current UserID: "SXXadm",  env-var USER="SXXadm"

[Thr 140551882446592] =   using SECUDIR=/usr/sap/SXX/sapwebdisp/sec

[Thr 140551882446592]   ssl/ciphersuites="193:HIGH:MEDIUM:+e3DES:!aNULL"

[Thr 140551882446592]   ssl/client_ciphersuites="192:HIGH:MEDIUM:+e3DES:!aNULL"

[Thr 140551882446592] = Success -- SapCryptoLib SSL ready!

[Thr 140551882446592] =================================================

[Thr 140551882446592]

[Thr 140551923976032] Wed Oct 29 10:45:09 2014

[Thr 140551923976032] Started service HOST=wd-SXXxyz.com,PORT=443,PROT=HTTPS,TIMEOUT=60,PROCTIMEOUT=600,EXTBIND=1,VCLIENT=0

[Thr 140551923976032] SSL settings: verify_client: 0, cache_size: -1, cache_lifetime: -1, credfile: SAPSSLS.pse, ciphers: default

[Thr 140551923976032] SigISetDefaultAction : default handling for signal SIGCHLD

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 0

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 1

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 2

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 3

[Thr 140551867016960] *** ERROR => IcmConnClientRqCreate: No service for protocol HTTP started [icxxconn.c   3011]

[Thr 140551867016960] *** ERROR => IcmConnClientRqCreate() failed (rc=-1) [icrxx.c      7731]

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 4

[Thr 140551867016960] *** ERROR => Could not connect to SAP Message Server at sapSXXascsxyz.com. URL=/msgserver/text/logon?version=1.2 [icrxx.c      4387]

[Thr 140551867016960] *** ERROR => rc=-1, HTTP response code: 0 [icrxx.c      4388]

[Thr 140551867016960] *** ERROR => see also SAP note 552286 [icrxx.c      4389]

[Thr 140551882446592] IcmWatchDogThread: watchdog started

Accepted Solutions (1)

Accepted Solutions (1)

Reagan
Advisor
Advisor
0 Kudos

[Thr 140551882446592] *** ERROR => NiIBindSocket: SiBind failed for hdl 25/sock 10

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

[Thr 140551882446592] *** ERROR => IcmBindService: NiBuf2Listen failed for host xyz.com:8073 (rc=-4): NIESERV_USED [icxxserv.c   3345]

Most likely a port in use issue.

Cheers

Reagan

Former Member
0 Kudos

Hello Reagan,

Now when I have changed the port no. I am able to view the administration page, but I am not able to ping the same.

[Thr 140160242575104] Wed Oct 29 14:43:58 2014

[Thr 140160242575104] *** ERROR => IcrFindTargetSystem() failed for request /sap/public/icman/ping. [http_plg.c   9635]

[Thr 140160242575104] *** ERROR => No target SAP system for request {00050013} [http_route.c 2551]

URL for ping test :  http://wd-sxx.xyz.com:8065/sap/public/icman/ping

petr_solberg
Active Contributor
0 Kudos

is that the Port for the WebDispatcher ?

Reagan
Advisor
Advisor
0 Kudos

Could you please provide the latest Web Dispatcher profile and the back end systems system numbers? Are you configuring Web Dispatcher for multiple back end system or for a single system?

Former Member
0 Kudos

Sorry for not informing about the changes in profile of web disp. Please find the current web disp profile.

# Profile generated by sapwebdisp bootstrap

# unique instance number

SAPSYSTEM = 65

# add default directory settings

DIR_EXECUTABLE = .

DIR_INSTANCE = .

# Accessibility of Message Servers

#rdisp/mshost = sapSXXascs.hm.com

#ms/http_port = 8174

# SECUDIR for SSL Certificate

SETENV_00 = SECUDIR=/usr/sap/SXX/sapwebdisp/sec

# SAP Web Dispatcher Parameter

wdisp/auto_refresh = 25

wdisp/max_servers = 100

wdisp/shm_attach_mode = 6

# configuration for small scenario

icm/max_conn      = 100

icm/max_sockets   = 1024

icm/req_queue_len = 300

icm/min_threads   = 5

icm/max_threads   = 15

mpi/total_size_MB = 20

#maximum number of concurrent connections to one server

wdisp/HTTP/max_pooled_con = 100

wdisp/HTTPS/max_pooled_con = 100

# SAP Web Dispatcher Ports

icm/server_port_0 = PROT=HTTP,PORT=80$$

icm/server_port_1 =

icm/server_port_2 = PROT=HTTPS,HOST=wd-SXX.hm.com,PORT=443, EXTBIND=1, TIMEOUT=60, PROCTIMEOUT=600

#-----------------------------------------------------------------------

## System Assignments

##----------------------------------------------------------------------------

wdisp/system_0 = SID=SXX, MSHOST=sapSXXascs.hm.com,MSPORT=8174,SRCSRV=wd-SXX.hm.com:443

##SSL Parameters

wdisp/ssl_encrypt=1

wdisp/ssl_certhost = wd-SXX.hm.com

wdisp/add_client_protocol_header=false

icm/HTTPS/verify_client = 0

# SAP Web Dispatcher Web Administration

icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=icmauth.txt

We are configuring web dispatcher for single systems. Backend systems no. is 74.

gabriella_kiss
Participant
0 Kudos

Hi,

as far as I see, the binding of port still failes. Have you already checked this note?

421359 ICM: Binding ports < 1024 on Unix

Regards Gabriella

Former Member
0 Kudos

Hello Gabriella,

The note 421359 has been followed and icmbnd has been modified as mentioned in the note.

But still getting this error while trying to ping . The url used for ping test is http://wd-sxx.xyz.com:8065/sap/public/ping?sap-client=150

[Thr 139921311614720] Thu Oct 30 11:28:32 2014

[Thr 139921311614720] *** ERROR => IcrFindTargetSystem() failed for request /sap/public/ping. [http_plg.c   9635]

[Thr 139921311614720] *** ERROR => No target SAP system for request {0001045e} [http_route.c 2551]

Regards,

Anuradha Jha

Former Member
0 Kudos

Yes its the webdispatcher port.

Answers (2)

Answers (2)

madasamy_arunachalam
Active Participant
0 Kudos

Hi

In this thread, you provided the parameter  for ms/http_port http  as 8174


ms/http_port = 8174

But the trace log, it shows 8073 , how this is possible ?


[Thr 140551882446592] *** ERROR => IcmBindService: NiBuf2Listen failed for host xyz.com:8073

What is the correct instance #  ?,

From Web Dispatcher, try to telnet the MS port (telnet 8073 or telnet 8074, based on the correct instance # ) & ensure this port is reachable.

regards

Swami

petr_solberg
Active Contributor
0 Kudos

Hi Mansi,

I can help with giving you some tips on finding the solution.

You quested the error log:

[Thr 140551867016960] *** ERROR => IcmConnClientRqCreate: No service for protocol HTTP started [icxxconn.c   3011]

[Thr 140551867016960] *** ERROR => IcmConnClientRqCreate() failed (rc=-1) [icrxx.c      7731]

[Thr 140551923976032] IcmCreateWorkerThreads: created worker thread 4

[Thr 140551867016960] *** ERROR => Could not connect to SAP Message Server at sapSXXascsxyz.com. URL=/msgserver/text/logon?version=1.2 [icrxx.c      4387]

[Thr 140551867016960] *** ERROR => rc=-1, HTTP response code: 0 [icrxx.c      4388]

[Thr 140551867016960] *** ERROR => see also SAP note 552286 [icrxx.c      4389]



I suggest, read the quoted OSS Note

and

search the

     SAP OSS Notes

     SCN

     Google

for the solution to this error:

     IcmConnClientRqCreate: No service for protocol HTTP started


Kind regards,


Andy.