Skip to Content
0
Former Member
Jan 13, 2010 at 04:05 PM

Could not connect to host localhost on port 21200.

508 Views

I am trying to install Solution Manager 7.0 EHP1 on a RH5 Linux system running on VM Ware. The system is located in our new Data Center which is protected with a firewall. I am trying to run the installation on the Linux box and using SAPInstGui on my PC which is running Windows XP.

I log into the LINUX box as root and set my environment variables:

SAPINST_JRE_HOME='/opt/IBMJava2-amd64-142/jre/bin'

export SAPINST_JRE_HOME

JAVA_HOME='/opt/IBMJava2-amd64-142'

export JAVA_HOME

CPIC_MAX_CONV=200

export CPIC_MAX_CONV

DISPLAY='nugentd.mit.edu:0.0'

export DISPLAY

LD_LIBRARY_PATH_64=/opt/IBMJava2-amd64-142/jre/bin/j9vm:/usr/sap/SM1/SYS/exe/run

export LD_LIBRARY_PATH_64

TEMP=/sapmnt/SM1/tmp

export TEMP

TMP=/sapmnt/SM1/tmp

export TMP

TMPDIR=/sapmnt/SM1/tmp

export TMPDIR

JCE_POLICY_ZIP=/opt/IBMJava2-amd64-142/jre/jce_policy-1_4_2.zip

export JCE_POLICY_ZIP

I then change default to the MASTER DVD directory for LINUX and execute the command "./sapinst -nogui".

It starts with:

[==============================] \ extracting... done!

created: jce/

inflated: jce/local_policy.jar

inflated: jce/US_export_policy.jar

inflated: jce/README.txt

inflated: jce/COPYRIGHT.html

Starting GUIServer using:

SAPinst port : 21200

GUIServer port: 21212

HTTP port : 4239

GUI autostart : off

GUI mode : normal

command : /sapmnt/SM1/tmp/sapinst_exe.739.1263397211/jre/bin/java -Xmx256M -Dsap.env.var.javahome=SAPINST_JRE_HOME -cp /sapmnt/SM1/tmp/sapinst_exe.739.1263397211/JAR/instgui.jar SDTServer rootdir=/root/.sdtgui config=jar:sdtserver.xml guiport=21212 httpport=4239 -nolock -srvarg=/SAPinstService/host=localhost -srvarg=/SAPinstService/port=21200 guistart=off

init: retrieving account information for group sapinst...

init: retrieving account information done.

Jan 13, 2010 10:40:16 AM [Info]: *************************

Jan 13, 2010 10:40:16 AM [Info]: Starting Server

Jan 13, 2010 10:40:16 AM [Info]: Reading server configuration.

load resource pool /sapcd1/SM_7.0_EHP1_master/51036441/IM_LINUX_X86_64/resourcepool.xml

Jan 13, 2010 10:40:16 AM [Info]: Reading service configuration SAPinstService.

Jan 13, 2010 10:40:16 AM [Info]: Configuring LogManager ...

Jan 13, 2010 10:40:16 AM [Info]: *************************************************

Jan 13, 2010 10:40:16 AM [Info]: Starting SL Controller listening on port 21212 ...

Jan 13, 2010 10:40:16 AM [Info]: StorageService switched off.

Jan 13, 2010 10:40:16 AM [Info]: Initializing SecurityManager ...

guiengine: No GUI server connected; waiting for a connection on host cherry, port 21200 to continue with the installation

Jan 13, 2010 10:40:17 AM [Info]: Server certificate fingerprint is 5A 60 74 D8 F2 3C 17 7F 88 9A DD 43 8A D8 4B D7

Jan 13, 2010 10:40:17 AM [Info]: Configuring HTTPManager ...

Jan 13, 2010 10:40:17 AM [Info]: Starting WebstartService ...

Jan 13, 2010 10:40:17 AM [Info]: RoleService switched off.

Jan 13, 2010 10:40:17 AM [Info]: AlertService switched off.

Jan 13, 2010 10:40:17 AM [Info]: Starting NotesService ...

Jan 13, 2010 10:40:17 AM [Info]: Starting ProcessService ...

Jan 13, 2010 10:40:17 AM [Info]: Starting MIDService ...

Jan 13, 2010 10:40:17 AM [Info]: Starting FileService ...

Jan 13, 2010 10:40:17 AM [Info]: Starting LogService ...

Jan 13, 2010 10:40:17 AM [Info]: MailService switched off.

Jan 13, 2010 10:40:17 AM [Info]: Starting services ...

Jan 13, 2010 10:40:17 AM [Info]: Starting service "SAPinstService" ...

Jan 13, 2010 10:40:17 AM [Info]: Service "SAPinstService" started

Jan 13, 2010 10:40:17 AM [Info]: Services started.

Jan 13, 2010 10:40:18 AM [Info]: Starting HTTP server listening on port 4239 ...

Jan 13, 2010 10:40:18 AM [Info]: HTTP server started.

Jan 13, 2010 10:40:18 AM [Info]: SL Controller started.

Back on my PC, I have installed the policy files and I start up the sapinstgui with the command "sapinstgui -host <FQDN of the LINUX server>".

The sapinstgui windows start. I get notification to accept the certificate from the LINUX server which I accept. I then get the window in which the logon attempt has been done and I get the 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

java.net.ConnectException: Connection refused

Please correct the error condition and restart.

I have verified that the sapinstgui is attaching to the correct LINUX server and using port 21212. I have been reading the threads already in this forum reporting similar errors. I have checked the values for my variables, verified the java version is correct (IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142ifx-20090909) and can successfuly display xclock back to my PC from the LINUX server.

The server.trc file has the error as its last statement:

Jan 13, 2010 8:23:41 AM [Error]: com.sap.sdt.sapinst.rapi.connector.SAPinstConnector [Thread[ExecuteWorker,5,main]]: Could not connect to localhost:21200. Could not connect to host localhost on port 21200.

java.net.ConnectException: Connection refused

java.net.ConnectException: Connection refused

I know I must be missing something obvious but it just is not coming to me. Anyone have any ideas what else to check / what I might be missing?

Thanks,

Deb.