cancel
Showing results for 
Search instead for 
Did you mean: 

GUI WSAECONNREFUSED - after hostname change

Private_Member_19084
Active Contributor
0 Kudos

Hello together,

we have done a hostname change on one of our test-servers.

Now we facing the problem, that the system (db + SAP) is up&running, however it can't be connected via SAP GUI.

The error "WSAECONNREFUSED: Connection refused" appears.

We have changed the hostname in the profiles and also DB-configuration.

SAP is starting fine on the host.

And db is also working.

I've also tried to connect from SAP-Logon via IP to the host, however it does not work.

Is there any other setting I have to change?

Or what else is necessary, that I can connect via GUI?

Kind regards

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_19084
Active Contributor
0 Kudos

Hello together,

thx a lot for help, I really appreciate it.

I've found already some reasons for the problem.
A very interesting error was found in dispatcher-log.

Which did show, that the hostname isn't allowed to be longer than 13 characters.

(This was in relation with the disp-profile).

After that I got another problem, that the dispatcher was shutting down directly after startsap.

I found, that the processes can't connect to the DB.

It seems, that in db-connection still the old name is configured.

I will search and provide a status after a while.

Kind regards

Private_Member_19084
Active Contributor
0 Kudos

I could now solve the problem.

There was one env-variable left, which I could set now via $/home/.dbenv.sh

So the root cause for this post was the hostname, which was to long and the second problem was the hostname in the dbenv.sh.

Kind regards and thank you to all persons for help!!!!

Answers (4)

Answers (4)

former_member206857
Active Participant
0 Kudos

just use IP the address in the application server field in the GUI connection.

If it works, you have a network issue...

if it doesn't, you got problems

former_member233657
Active Participant
0 Kudos

Hi,

Can you install a SAP GUI on the server and try to connect?

Is there a firewall running?

Kind regards,
Martin

former_member215961
Contributor
0 Kudos

Hi,

Can you share the output of the command. Execute thos commands with <sid>adm user:

change the number of your instance numeber : nr:

<sid>adm 54> sapcontrol -nr 0 -function GetProcessList

29.09.2016 14:57:26

GetProcessList

OK

name, description, dispstatus, textstatus, starttime, elapsedtime, pid

msg_server, MessageServer, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13745

disp+work, Dispatcher, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13746

igswd_mt, IGS Watchdog, GREEN, Running, 2016 05 18 09:59:28, 3220:57:58, 13747

gwrd, Gateway, GREEN, Running, 2016 05 18 09:59:46, 3220:57:40, 13786

icman, ICM, GREEN, Running, 2016 05 18 09:59:46, 3220:57:40, 13787

sapsed02:sedadm 55>

And also this command:

<sid>adm  sapcontrol -nr 0 -function GetAccessPointList

29.09.2016 15:03:13

GetAccessPointList

OK

address, port, protocol, processname, activ

127.0.0.1, 8000, HTTP, icm, Yes

172.16.50.XX, 8000, HTTP, icm, Yes

127.0.0.1, 0, SMTP, icm, Yes

172.16.50.XX, 0, SMTP, icm, Yes

127.0.0.1, 50013, HTTP, sapstartsrv, Yes

172.16.50.XX, 50013, HTTP, sapstartsrv, Yes

127.0.0.1, 50014, HTTPS, sapstartsrv, Yes

172.16.50.XX, 50014, HTTPS, sapstartsrv, Yes

127.0.0.1, 3300, RFC, gwrd, Yes

172.16.50.XX, 3300, RFC, gwrd, Yes

127.0.0.1, 3200, DPTM, disp+work, Yes

172.16.50.XX, 3200, DPTM, disp+work, Yes

127.0.0.1, 3900, MS, msg_server, Yes

172.16.50.XX, 3900, MS, msg_server, Yes

127.0.0.1, 3600, MS, msg_server, Yes

172.16.50.XX, 3600, MS, msg_server, Yes

127.0.0.1, 8100, HTTP, msg_server, Yes

172.16.50.XX, 8100, HTTP, msg_server, Yes

127.0.0.1, 40000, IGS, igsmux, Yes

172.16.50.XX, 40000, IGS, igsmux, Yes

127.0.0.1, 40080, HTTP, igsmux, Yes

172.16.50.XX, 40080, HTTP, igsmux, Yes

127.0.0.1, 40001, IGS, igspw, Yes

172.16.50.XX, 40001, IGS, igspw, Yes

127.0.0.1, 40002, IGS, igspw, Yes

172.16.50.XX, 40002, IGS, igspw, Yes

Did you change the instance number ?

Cheers

former_member182967
Active Contributor
0 Kudos

Hi Anon,

What is the latest errors under usr\sap\<SID>\<instance>\work.

Regards,

Ning

Private_Member_19084
Active Contributor
0 Kudos

I have errors like

"partner "<new hostname>:sapgw<sid>" not reached

connection refused

former_member215961
Contributor
0 Kudos

Hi Anon123,

Can you see if you can reach the hostname from your client PC?

just open a console and execute the command: "ping hostname".

In positive answer

execute the follow command: "telnet hostname sapgw<number>

in negative answer please check the definition of sapgw<number> in C:\WINDOWS\System32\drivers\etc\services

Cheers