cancel
Showing results for 
Search instead for 
Did you mean: 

Error when installing SAPgui Part 3

Former Member
0 Kudos

Hi,

Following directions of 1238121 note, SAPgui installation does establish a connection to SL controller but it fails to connect to SAPinst.(please see attached print screen)

Error says:

Connection to SAPinst refused with the following message:

Connection to SAPinst could not be established, see following messages.

Could not connect to host localhost on port 21200.

java.net.ConnectException: Connection refused: connect

java.net.ConnectException: Connection refused: connect

Thanks

Stanislas


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Stanislas,

- Have you set the JAVA_HOME parameter correctly?
- Do you have write permissions to the directories where the
  installation files are located?
- Are you installing the software locally or remotely?
- Is the port 21200 in use?

Please try this...
If SAPinst and the GUI server runs on a different host than SAPinst
GUI (remote installation), enter the following command with
additional parameters:

- startinstgui.sh -host <host_name> (startinstgui.bat for windows)
<host_name> is the host name of the installation host.

The correct starting options would be:
1. on the Unix
Installationsserver ./sapinst SAPINST_NO_GUISTART=true

Please check if you have the latest version of sapinst
(see SAP-Note #722890)!

Please refer to the following SAP-Notes as well:

#723909 - Java VM settings for J2EE 6.30/6.40/7.0

Thank You.

Regards,

Deepika

Former Member
0 Kudos

Hi Deepika,

- Have you set the JAVA_HOME parameter correctly?

I am not sure how to that... not explained in SAP installation howto

- Do you have write permissions to the directories where the

  installation files are located?

yes, it is a folder local drive

- Are you installing the software locally or remotely?

software is installed locally. A DHCP llopback has been created even if I don't know what to do with it.

- Is the port 21200 in use?

no it is not according to netstat

Thanks

Stanislas

0 Kudos

Hi Stanislas,

Could you please double check the environment variables for users
administrator and <SID>adm?

You should set JAVA_HOME pointing to the correct path and also insert
the "<java directory>\bin" parameter in the variables path too.

Please refer to the following SAP-Notes as well:

#723909 - Java VM settings for J2EE 6.30/6.40/7.0
710146    How to change J2EE Engine JVM Settings

Please  reboot the server and try to start sapinst.

Thank You.

Regards,

Deepika

Former Member
0 Kudos

Hi Deepika,

The only variable set so far is JCE_POLICY_ZIP. Could you please tell wich path exactly the JAVA_HOME variable must contain?  Both notes do not talk about it.

Thanks

Stanislas

former_member189725
Active Contributor
0 Kudos

Start sapinst with following options .

# ./sapinst SAPINST_DIALOG_PORT=50777  GUISERVER_DIALOG_PORT=60777

and check if that works.

Regards

Ratnajit

Former Member
0 Kudos

Hi Ratnajit,

Launched first ./sapinst SAPINST_DIALOG_PORT=50777  GUISERVER_DIALOG_PORT=60777

Launched then ./sapinstgui -host localhost -port 60678

did not help still 'connection refused'

thanks

Stanislas

former_member189725
Active Contributor
0 Kudos

./sapinstgui -host localhost -port 60777

check the port.

Regards

Ratnajit

Former Member
0 Kudos

port unused according to netstat

former_member189797
Active Contributor
0 Kudos

Hello,

Setting the PATH and JAVA_HOME Variable

Use

The PATH variable is a list of directories where the system looks for commands when trying to execute them. To make use of the tools provided by JDK, the directory containing Java executables has to be added to the system PATH variable. This is essential for launching the installation procedure.

Procedure

The PATH variable has to be set through the system environment variable. To set the PATH variable:

- Choose Start ® Settings ® Control Panel.

- Choose System ® Advanced ® Environment Variables (on Windows 2000) or System ® Environment (on Windows NT)

- Add the System variable JAVA_HOME with the value <jdk_dir> (<jdk_dir> is the directory that contains the JDK).

- Select the System variable PATH and add %JAVA_HOME%\bin to the PATH variable separated from the previous path by a semicolon.

http://help.sap.com/saphelp_crm40/helpdata/en/d1/81763c9220114be10000000a11402f/content.htm

Hope this helps.

Regards,

Gaurav


Former Member
0 Kudos

Hello Gaurav,

Thanks for the helpful reply. JDK is installed now. JAVA_HOME is set and Path is updated.

Still it does not work "connection refused"

Thanks for support

Stanislas


Former Member
0 Kudos

Hello ,

Plz also check that ./sapinst path may be longer. Sometimes it does not take too much characters. Copy ur installation folder to another shorter path location..

Kindly check and confirm.. Also paste the errror logs..

Thanks,

Pankaj

Former Member
0 Kudos

Hello Pankaj,

Thanks for the advise still the same...  Please let me sum up :

***variables***

JAVA_HOME : D:\Program Files\Java\jdk1.6.0_32

Path : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Program Files\Java\jdk1.6.0_32\bin

JCE_POLICY_ZIPD:\sapdb\JCE\jce_policy-6.zip

*****************

JDK 6 installed

*****************

Following commands are run:

sapinst SAPINST_DIALOG_PORT=50777  GUISERVER_DIALOG_PORT=60777

sapinstgui -host localhost -port 60677

******************

Error log is the following

Error while connecting to communication partner - see preceeding messages.

Could not connect to host localhost on port 60677.

java.net.ConnectException: Connection refused: connect

java.net.ConnectException: Connection refused: connect

*******************

Thanks

Stanislas

Former Member
0 Kudos

Hi Stanislas,

As per SAP Note 1238121 You have to enter the commands as follow:

1. Download the JCE policy file from SAP (see note 1240081) or SUN on both the local and the remote host.

2.UNIX: Execute the following command: chmod +x <jce policy zip file>

3. Specify the location of the policy zip file by setting the user environment variable JCE_POLICY_ZIP=<jce policy zip file> on both the local and the remote host.

Note: On Windows when setting the environment variable JCE_POLICY_ZIP in a command line window, please make sure to start it as administrator, otherwise the setting will not be taken into account.

4. Start SAPinst on the remote host: sapinst -nogui

5. Start SAPinst GUI on the local host: sapinstgui -host <remote host name>,

Have you tried this? Command you entered is different than mentioned in sap note.

Kindly check and confirm

Thanks,

Pankaj

Former Member
0 Kudos

Hi Pankaj,

Yes, it was tested as well. Please let still sum up:

***variables***

JAVA_HOME : D:\Program Files\Java\jdk1.6.0_32

Path : %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\Program Files\Java\jdk1.6.0_32\bin

JCE_POLICY_ZIPD:\sapdb\JCE\jce_policy-6.zip

*****************

JDK 6 installed

*****************

Following commands are run:

sapinstgui -server -nogui

sapinstgui -host localhost -port 21212

******************

Propose to accept Certificate from SLcontroller

Answer : Yes

Then an other windows open with following error message

Connection to SAPinst refused with the following message: 

Connection to SAPinst could not be established, see following messages.

Could not connect to host localhost on port 21200.

java.net.ConnectException: Connection refused: connect

java.net.ConnectException: Connection refused: connect

  Please correct the error condition and restart.

*******************

Thanks

Stanislas

Former Member
0 Kudos

HI Stanislas,

Is your installation on remote server is still running or not?

If not den delete all logs which are create inside installation directory and then start again by entering the command mentioned in sap note.

Also i saw that on local server you are entering sapinstgui -host localhost -port 21212.

but in sap note it is saying sapinstgui -host <remote host> in this you have to provide remote host name where gui server is running.

Also on gui server u are entering sapinstgui -server -nogui instead of sapinst -nogui .

Kindly check the sequence in sap note 1238121 again.

Thanks,

Pankaj

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The port 21200 seems to be busy. Can you check what process is running on this port and possibly terminate it.

Alternatively ,can you try opening the sapinst with this command:

./sapinst GUISERVER_DIALOG_PORT=<xxxxxx>

give a port number other than 21200

Regards,

Sonia