cancel
Showing results for 
Search instead for 
Did you mean: 

SAPinst Error

Former Member
0 Kudos

Hi

I am trying to insatll SAPinst on linux and i amgetting error.

Error while connecting to communication partner-see preceeding messages.

Could not connect to host localhost on port 21212.

Java.net.ConnectException: Connection refused.

Java.net.ConnectException: Connection refused.

What is think either the port is not open or the port is being used by another binay.

CAn you please sugeest hoe to fix this isse.

Regards

Preeti Khurana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

Maybe you launched another sapinst on another terminal? Take care of this.

Just locate the offending process witn netstat command. See an example for finding port 53 and its related program:

  1. netstat -ltpn | grep 53

tcp 0 0 172.12.85.10:53 0.0.0.0:* LISTEN 12379/named

If a program is using that port, your sapinst won't be able to open it as it is already used (bind() will fail).

In this case I think that it is likely no program is listening on that port. Make sure sapinst is starting correctly by having a look to the logs.

Regards,

Antonio Huete

Former Member
0 Kudos

Well now i am planninf to find out the free port and will point my sapinst on that port.

CAn you please suggest how can find the ports which are free.

Former Member
0 Kudos

If you go through the installation document then you would have resolved the issue yourself. below content from installation guide.

During the installation, the default ports 21200 and 21212 are used for communication between

SAPinst, GUI server, and SAPinst GUI. SAPinst uses port 21200 to communicate with the GUI

server.

The GUI server uses port 21212 to communicate with SAPinst GUI. You get an error message if

one of these ports is already in use by another service. In this case, you must execute SAPinst using the parameter:

SAPINST_DIALOG_PORT=<free_port_number_sapinst_gui_to_gui_server> \

GUISERVER_DIALOG_PORT=<free_port_number_gui_server_to_sapinst_gui.

Note

For a list of all available SAPinst properties, enter the following command: sapinst u2014p.

Cheers,

-Sunil

Former Member
0 Kudos

>Could not connect to host localhost on port 21212.

looks like port 21212 is blocked or have you started server on Linux server? follow installation guide.

cheers,

-Sunil

Former Member
0 Kudos

Please suggest how to check if the port is blocked.

Former Member
0 Kudos

hello Preeti,

I had the same problem,

try to install system on different computer

regards

black4210

markus_doehr2
Active Contributor
0 Kudos

> Please suggest how to check if the port is blocked.

Use

netstat -an | grep LISTEN

and check if the port is used already.

Markus

markus_doehr2
Active Contributor
0 Kudos

> I had the same problem,

> try to install system on different computer

lol - interesting approach to solve problems

There is certainly a reason why this port is used and there are ways to find out what program is binding the port.

Markus

Former Member
0 Kudos

hello Marcus

certainlly you have right

but when i changed the customization settings (ip server etc.) problem with port is not exist but installation couldn't finish succesfully.

When I used the same settings on the another computer this problem gone (now i try solve another error which you can read in a separate thread).

Regards

black4210