cancel
Showing results for 
Search instead for 
Did you mean: 

start web dispacher on linux

Former Member
0 Kudos

Hello all,

I want to start the WebDispacher ( NW 7.0 EhP3, Java system)

The Error is:

3> startsap all X01

Trying to start SID database ...

Log file: /home/sidadm/startdb.log

Starting Startup Agent sapstartsrv

OK

Instance Service on host sid started

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

starting SAP Instance X01

Startup-Log is written to /home/sidadm/startsap_X01.log

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

/usr/sap/SID/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 01 -function Start

startup of Instance failed

See /home/sidadm/startsap_X01.log for details

<sid>dm 74> ./sapcontrol -prot NI_HTTP -nr 01 -function Stop

08.04.2015 06:02:58

Stop

FAIL: HTTP error, HTTP/1.1 401 Unauthorized

/usr/sap/<SID>/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 01 -function Start

08.04.2015 05:32:52

Start

FAIL: HTTP error, HTTP/1.1 401 Unauthorized

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

05:33:02

startup of Instance failed

What I tried and didnt work: stop sap instance, kill web dispacher process.

The webdispacher profile looks like this:

SAPSYSTEMNAME = sapsid

SAPSYSTEM = 01

# Message Server Description

rdisp/mshost=hostname

#ms_http_port=3900

ms/http_port  = 3900

# SAP Web Dispatcher Parameters

wdisp/auto_refresh  = 120

wdisp/max_servers  = 100

# Directory variables

DIR_EXECUTABLE = $(DIR_INSTANCE)/exe

DIR_INSTANCE = /usr/sap/SID/SCS00/work

# Description of the Access Points

#icm/server_port_0 = PROT=HTTP , PORT=8$ (SAPSYSTEM) 00, TIMEOUT=60 , PROCTIMEOUT=600

icm/server_port_0  = PROT=HTTP,PORT=80

icm/server_port_1  = PROT=ROUTER,PORT=443

# Description of the Resources

icm/min_threads  = 20

icm/max_threads  = 40

icm/max_conn  = 500

# Communication Buffer

mpi/total_size_MB  = 100

mpi/buffer_size  = 65536

# Parameters for the HTTPS Routing

wdisp/HTTPS/dest_logon_group  = HTTPS

wdisp/HTTPS/max_client_ip_entries   = 100000

wdisp/HTTPS/sticky_mask             = 255.255.255.0

Can you pls advise me.

Thx

Chris

Accepted Solutions (1)

Accepted Solutions (1)

former_member198633
Contributor
0 Kudos

Hello Chris,

There is a chance it is an authorization issue caused by the too strict profile settings.

Please check this note. If the current service/protectedwebmethods is SDEFAULT, please try the DEFAULT setting.

Regards,

Peter

Former Member
0 Kudos

Hello Peter,

that paramenter, was already changed to DEFAULT, restarted the system, but I cant start webdispacher

thx

Chris

former_member198633
Contributor
0 Kudos

Hi,

Please attach the corresponding log: startsap_X01.log.

Regards

Peter

Former Member
0 Kudos

Hello,

hostname:sidadm 55> startsap all X01

Trying to start SID database ...

Log file: /home/sidadm/startdb.log

Starting Startup Agent sapstartsrv

OK

Instance Service on host hostname started

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

starting SAP Instance X01

Startup-Log is written to /home/sidadm/startsap_X01.log

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

/usr/sap/SID/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 01 -function Start

startup of Instance failed

See /home/sidadm/startsap_X01.log for details

hostname:sidadm 56>view /home/sidadm/startsap_X01.log

Trace of system startup/check of SAP System SID on Wed Apr  7 09:13:00 UTC 2015

Called command: /usr/sap/SID/SYS/exe/run/startsap start

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

09:13:01

Starting Startup Agent sapstartsrv

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

09:13:01

Instance Service on host  started

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

09:13:01

starting SAP Instance X01

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

09:13:01

Startup-Log is written to /home/sidadm/startsap_X01.log

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

09:13:01

/usr/sap/SID/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 01 -function Start

07.04.2015 09:13:01

Start

FAIL: HTTP error, HTTP/1.1 401 Unauthorized

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

09:13:11

startup of Instance failed

~

WebDispacher profile:

SAPSYSTEMNAME = SID

SAPSYSTEM = 01

# Message Server Description

rdisp/mshost=hostname

ms/http_port  = 8101

# SAP Web Dispatcher Parameters

wdisp/auto_refresh  = 120

wdisp/max_servers  = 100

# Directory variables

DIR_EXECUTABLE = $(DIR_INSTANCE)/exe

DIR_INSTANCE = /usr/sap/SID/SCS00/work

# Description of the Access Points

#icm/server_port_0 = PROT=HTTP , PORT=8$ (SAPSYSTEM) 00, TIMEOUT=60 , PROCTIMEOUT=600

icm/server_port_0  = PROT=HTTP,PORT=80

icm/server_port_1  = PROT=ROUTER,PORT=443

# Description of the Resources

icm/min_threads  = 20

icm/max_threads  = 40

icm/max_conn  = 500

# Communication Buffer

mpi/total_size_MB  = 100

mpi/buffer_size  = 65536

# Parameters for the HTTPS Routing

wdisp/HTTPS/dest_logon_group  = HTTPS

wdisp/HTTPS/max_client_ip_entries   = 100000

wdisp/HTTPS/sticky_mask             = 255.255.255.0

~

former_member185954
Active Contributor
0 Kudos

Hello Chris,

The command

/usr/sap/SID/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 01 -function Start


tries to start the Webdispatcher  from the file /usr/sap/sapservices file. Can you please check if there is an entry for the same.


Regards,

Siddhesh



Former Member
0 Kudos

Hello Siddhesh,


I do have a /usr/sap/sapservices file, but how to use it?


Thx

Chris

former_member185954
Active Contributor
0 Kudos

Hello Chris,

Can you please post the contents of that file here ?

Try starting the Webdispatcher using sapcontrol program directly. Check the following link on useful command options

Please note that nr parameter specifies the instance number, so its 01 for your situation.

Regards,

Siddhesh

Former Member
0 Kudos

I am totally confused about this WebDispacher: -check command says:: no profile. the start command>> did started.

From browser: the error is:

500 Dispatching Error

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

Error: -26

Version: 7200

Component: HTTP_ROUTE

Date/Time: Thu Apr 9 10:16:35 2015 

Module: http_route_mt.c

Line: 3360

Server: hostname_SID_01

Error Tag: {0000000b}

Detail: no valid destination server available for '!ALL' rc=13

Pls advice

hostname:sidadm 61> sapwebdisp -check

Checking SAP Web Dispatcher Configuration

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

ERROR: no profile specified

hostname:sidadm 62>

hostname:SIDadm 62> ps -ef | grep SIDadm

SIDadm   10664     1  0 09:46 ?        00:00:00 /usr/sap/SID/SYS/exe/run/sapstartsrv pf=/usr/sap/SID/SYS/profile/START_X01_hostname -D -u SIDadm

SIDadm   11336     1  0 09:47 ?        00:00:00 sapstart pf=/usr/sap/SID/SYS/profile/START_X01_hostname

SIDadm   11341 11336  0 09:47 ?        00:00:00 wd.sapSID_X01 pf=/usr/sap/SID/SYS/profile/SID_X01_hostname

root     11567 32081  0 09:48 ?        00:00:00 su - SIDadm

SIDadm   11568 11567  0 09:48 ?        00:00:00 -csh

SIDadm   11671 11568  0 09:48 ?        00:00:00 ./sapwebdisp pf=/sapmnt/sapsid/profile/sapsid_W02_hostname

root     11774 11763  0 09:51 pts/13   00:00:00 su - SIDadm

SIDadm   11775 11774  0 09:51 pts/13   00:00:00 -csh

SIDadm   14373 11775  0 10:08 pts/13   00:00:00 ps -ef

SIDadm   14374 11775  0 10:08 pts/13   00:00:00 grep SIDadm

root     21970 19033  0 Apr07 pts/0    00:00:00 su - SIDadm

SIDadm   21975 21970  0 Apr07 pts/0    00:00:00 -csh

root     29262 22078  0 Apr07 pts/0    00:00:00 su - SIDadm

SIDadm   29264 29262  0 Apr07 pts/0    00:00:00 -csh

hostname:SIDadm 63>

hostname:SIDadm 77> startsap all X01

Starting Startup Agent sapstartsrv

OK

Instance Service on host hostname started

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

starting SAP Instance X01

Startup-Log is written to /home/SIDadm/startsap_X01.log

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

/usr/sap/SID/SYS/exe/run/sapcontrol -prot NI_HTTP -nr 02 -function Start

Instance on host hostname started

hostname:SIDadm 78>

former_member185954
Active Contributor
0 Kudos

Hello Chris,

I am confused now as to what the original problem was.


if your web dispatcher has started correctly now, please close this thread.

Open a new thread for your other queries.

Regards,

Siddhesh

Sriram2009
Active Contributor
0 Kudos

Hi Chris

Could you refer the SAP Notes for error messages "500 Dispatching Error" and

"Detail: no valid destination server available for '!ALL' rc=13"

1911913 - 500 Dispatching error thru web dispatcher


1605138 - No valid destination server available when using J2EE groups

BR

SS

Answers (0)