cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Webdispatcher - Boostrap Error -1

Private_Member_19084
Active Contributor
0 Kudos

Hi experts,

I already searched in google without success

I did install a new web dispatcher (nw 7.41)

After the installation the dispatcher did start automatically.

Now I would like to start again with bootstrap, to get automatically the profiles generated.

I did stop the webdispatcher instance via MMC and also the service sapwebdisp....

After this I did start the cmd and entered sapwebdisp -bootstrap.

After entering the requested data, I get the info that the icmauth.txt and sapwebdisp.pfl was generated successfully.

But last line is:

"Could not start "sapwebdisp.exe pf=sapwebdisp.pfl" error -1.

Does anybody know whats the problem?
Also the 2 file are not genereated.

After executing the command again, I only get again the startup error, because the system means that the files already existing.

If I check the service, it starts with the profile "<SID>_W<SID Number>_<hostname>".

Kind regards

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_19084
Active Contributor
0 Kudos

I've done the following now, do you think this is ok?

I did see now, that the files generated.

I did go to SYS/profile (because there is the current profile file "<SID>_W<SID Number>_<hostname>".

There I did execute bootstrap command.


After this I did rename the new file to "<SID>_W<SID Number>_<hostname>".

Kind regards

divyanshu_srivastava3
Active Contributor
0 Kudos

Why rename this file ?

Have a look at this thread at point 7

Divyanshu

Answers (6)

Answers (6)

Private_Member_19084
Active Contributor
0 Kudos

ok....I think there was a big missunderstanding form my side.

The service which was created automatically goes not to sapwebdisp.exe, it goes to sapstartsrv.

And I think there the generated profile <SID>_W<SID Number>_<hostname> is ok.

But my question is now, how do I normally start the webdispatcher?
In command line i can use sapwebdisp.exe pf=profile

But can I also start it with the SAP MMC so, that it also uses the sapwebdisp.pfl?

I also tried to create the startup service as written in our link (see below), but in Windows 2012 R2 it seems to be different.

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Christain,

If you want to start and stop any application from a service then you can use sc.exe in windows.

Divyanshu

divyanshu_srivastava3
Active Contributor
0 Kudos

This is the syntax;

sc.exe create SAPWebDisp binPath= "C:<DIR of sapwebdisp.exe >\sapwebdisp.exe pf=C:<DIR of Profile>\sapwebdisp.pfl"

Where, I have assumed C: drive the drive on which we have directories for sapwebdisp.exe and it's profile.

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

Ok, thx, I will create it with the service, so this is the way instead of ntscmgr, right?

But what about the SAP MMC?
Should it not be used for WebDispatcher?

Or how can I start with the MMC and also using the correct profile?

divyanshu_srivastava3
Active Contributor
0 Kudos

Hi Christian,

I think from MMC things should be working.

If not, then you can use sapstartsrv for adding this in MMC.

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

But which profile will be used by SAP MMC?

It seems, as it is not the profile which is genereated by bootstrap.

Can't be, because the WDP-Instance was already running after the installation and the .PFL file wasn't existing.

So may it be, that the current profile file which is used by SAP MMC is in another directory?

Kind regards

Private_Member_19084
Active Contributor
0 Kudos

Ok I found it now, the logs of startup of MMC is in work directory, logs of startup directly wich command line are near to sapwebdisp.exe

SAP MMC is using only the "<SID>_W<SID Number>_<hostname>" profile, so only the instance profile.

I will try again to implement the parameters of generated file out of bootstrap.

Maybe this time I can make it 😮

divyanshu_srivastava3
Active Contributor
0 Kudos

Perfect, that's why I asked you to compare two profiles

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

I already compared it and I already did adjust the parameter, but it didn't work with the login to the web-page.

Startup was no problem, but I couldn't enter the web-administration.

divyanshu_srivastava3
Active Contributor
0 Kudos

What is the issue with web-admin now? What are you getting in error ?

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

No error, only the password does not get accepted.

If I use the bootstrap-generated pfl file directly it works, but not with the original one.

I already did overtake all parameters which I thought that are necessary.

It seems, as it is not finding the auth-file.

Private_Member_19084
Active Contributor
0 Kudos

so fixed, no it was really the auth.file, it wasn't found.

I have adapted the parameter:

m/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=$(DIR_PROFILE)\icmauth.txt

(because I had copied the file to profile dir).

I don't know what would be the correct if there is no dir, because it was only AUTHFILE=icmauth.txt

And it was in exe and profile dir and didn't work.

But now it works


Thx again for great support

Private_Member_19084
Active Contributor
0 Kudos

The only thing I can't follow till now is, what is now the correct profile.file?

In the service I still have the "<SID>_W<SID Number>_<hostname>".

(btw, the service was created automatically by installation I think)

Should I now change the service to use the new .pfl File?
Otherwise after a restart of the service I have again the old profile file, right?

Kind regards

divyanshu_srivastava3
Active Contributor
0 Kudos

I am not sure of this.

Best would be to open and check the contents of both files.

If this file has same contents to the generated profile(which I don't think),

then you can replace it.

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

no they don't have....because with .pfl file it is not starting.

I will check the different and give response,

hey, a great thanks for your help

Private_Member_19084
Active Contributor
0 Kudos

So problem solved now:

Thats the problem, you need to change sapwebdisp.exe to be executed as Administrator.

sapwebdisp.exe->properties->Compatibility->Run this program as an administrator

After that I did execute the bootstrap again and now it works fine

Thank you

Private_Member_19084
Active Contributor
0 Kudos

I renamed the files now.

Where should the icmauth.txt be?

I have it in SYS/profile.

But I can't get access to web admin, as the access is always denied.

But I enter the password, which is given by bootstrap.

Kind regards

divyanshu_srivastava3
Active Contributor
0 Kudos

Ok, then the files which were created, icmauth.txt and sapwebdisp.pfl, rename them and re-exeute the command.

divyanshu_srivastava3
Active Contributor
0 Kudos

Login with SIDADM

Goto; /usr/sap/SID

sapwebdisp -bootstrap


Divyanshu

divyanshu_srivastava3
Active Contributor
0 Kudos

Also,

Refer:

https://help.sap.com/saphelp_nw74/helpdata/en/48/99d45dee2b73e7e10000000a42189b/content.htm?frameset...

This is for NW7.4 and requirements to do a bootstrap

Divyanshu

Private_Member_19084
Active Contributor
0 Kudos

same result

Private_Member_19084
Active Contributor
0 Kudos

I already know this

Private_Member_19084
Active Contributor
0 Kudos

I also tried this