cancel
Showing results for 
Search instead for 
Did you mean: 

SAPinst - error connecting to communication partner

Former Member
0 Kudos

Hi All

I've downloaded all the software packages for SAP Netweaver PI 7.11 EHP1 and completed all the preparation according to the installation guide. I'm trying to install on a brand new 64-bit Windows Server 2008 HP server via Remote Desktop. When I run SAPinst, it gives an error in the GUI window:

Error while connecting to communication partner - see preceeding messages. Could not connect to host localhost on port 21212. java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect

There is no log file. No sapinst_instdir folder in Program Files, nor in the Temp folder as stated in the installation guide. I get the same error even if I follow the instructions of the installation guide for specifiying different ports. It seems that SAPinst is ignoring the command line settings for the different ports anyway, because the error message still mentions port 21212. Besides, none of the ports mentioned in the installation guide is in use according to netstat.

What to do?

Regards,

Johan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Johan,

You need to prepare your (remote)system for SAPinst. This includes the installation of a Java Runtime Environment (JRE), which is required for SAPinst. SAPinst checks environment variable SAPINST_JRE_HOME for a valid Java runtime environment.

If SAPINST_JRE_HOME is not found, SAPinst also checks JAVA_HOME.

SAP Note 1170809.

SAP Note 1238121.

Thanks

Vamsi Atluri

Former Member
0 Kudos

I wouldn't be seeing a GUI window with an error message if I did not prepare my system as you suggested...

Former Member
0 Kudos

Check in the system tray (remote desktop) if there's already a GUI Pad running, Close and re-run the SAPInst in remote desktop. Hope that helps.

Former Member
0 Kudos

No, there is nothing else running in the system tray.

By the way, here's the contents of the Program Output Window:

"Program is starting... Please wait!

Path: C:\Users\ADMINI~1\AppData\Local\Temp\2\sapinst_exe.6408.1250603465
jre\bin\java.exe

created: jce/

inflated: jce/COPYRIGHT.html

inflated: jce/README.txt

inflated: jce/US_export_policy.jar

inflated: jce/local_policy.jar

C:\Users\ADMINI~1\AppData\Local\Temp\2\sapinst_exe.6408.1250603465
jre\jce\COPYRIGHT.html

C:\Users\ADMINI~1\AppData\Local\Temp\2\sapinst_exe.6408.1250603465
jre\jce\local_policy.jar

C:\Users\ADMINI~1\AppData\Local\Temp\2\sapinst_exe.6408.1250603465
jre\jce\README.txt

C:\Users\ADMINI~1\AppData\Local\Temp\2\sapinst_exe.6408.1250603465
jre\jce\US_export_policy.jar

4 file(s) copied.

Start mode: gui (Gui only)

Connection parameters:

GuiServer host: localhost

GuiServer port: 21212

GUI mode : normal

Starting...

<<< frog.jar: version 7.20.12 06/06/08 sap.theme: null >>>

"

Regards,

Johan

Former Member
0 Kudos

Please check your contents of hosts file for the IP address and hostname. Are you installing this with loopback adapter or network?

Former Member
0 Kudos

Since I am installing remotely, what do you think?

Former Member
0 Kudos

Download the JCE policy zip file from SAP as described in SAP Note 1240081, 1238121.

Set the environment variable JCE_POLICY_ZIP using command:

set JCE_POLICY_ZIP=<policy zip archive>

During the installation, the default ports 21200, 21212, and 4239 are used for communication between SAPinst, GUI server, SAPinst GUI, and HTTP server, as follows:

1. SAPinst uses port 21200 to communicate with the GUI server.

2. The GUI server uses port 21212 to communicate with SAPinst GUI.

3. 4239 is the port of the HTTP server, which is part of the GUI server.

You see an error message if one of these ports is already in use by another service. So in that case

Open a command prompt and change to the required directory as follows:

cd <DVD drive>:\IM_WINDOWS_<platform>.

Enter the following command in a single line:

sapinst.exe SAPINST_DIALOG_PORT=<free_port_number_sapinst_to_gui_server>

GUISERVER_DIALOG_PORT=<free_port_number_gui_server_to_sapinst_gui>

GUISERVER_HTTP_PORT=<free_port_number_http_server>

To view a list of all available SAPinst properties, enter the following command:

sapinst.exe -p

If you want to use a virtual host name, start SAPinst as follows:

sapinst.exe SAPINST_USE_HOSTNAME=<virtual host name>

Optionally you can start sapinstgui.exe with the following parameters:

host=<host name>, where <host name> is the host name of the installation host

port=<nr>, where <nr> is the port number for the connection to the GUI server

-accessible enables accessibility mode

Example: sapinstgui host=lsi1209 port=3000 -accessible

-h displays a list of all available parameters

Let me know if that helped!!

Thanks

Vamsi Atluri

Former Member
0 Kudos

Hi Vamsi

Thanks for the suggestion. However, I found out that I was running the wrong sapinstgui instance. The installation guide tend to be biased towards installation from dvd, whereas I'm trying to install from downloaded modules. Once I located the correct sapinst instance, I got the installation going. If I get stuck along the way again, I'll be sure to post again.

Regards,

Johan

Answers (0)