cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR => IcmConnect: NiConnect to localhost:65000

Former Member
0 Kudos

Hello Team,

We are running ECC6 on HPUX and in SM21 i am getting the following error Operating system call connect failed (error no. 239 ) and in work Process traces the error is

***LOG Q0I=> NiPConnect2: connect (239: Connection refused) [nixxi.cpp 2821]

      • ERROR => NiPConnect2: SiPeekPendConn failed for hdl 4 / sock 13

(SI_ECONN_REFUSE/239; I4; ST; 142.10.2.92:65000) [nixxi.cpp 2821]

      • ERROR => IcmConnect: NiConnect to localhost:65000,-1 (rc=-10) [icxxext.c 178]

      • ERROR => ThPlgConnectToIcm: IcmConnect failed (-10) [thxxplg.c 4762]

in_ThErrHandle: 1

      • ERROR => ThStart: connect to icman (step 1, th_errno 2, action 3, level 1) [thxxhead.c 10377]

I have checked in /etc/hosts and /etc/resolv.conf files and seems the entries are is correct. The ping command is able to resolve the hostname and ip.but still we don't know the root cause of this issue..

Please suggest me what can be done to get rid of this issue..

Many thanks in advance

Kind Regards

Umesh K

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

> (SI_ECONN_REFUSE/239; I4; ST; 142.10.2.92:65000) [nixxi.cpp 2821]

> *** ERROR => IcmConnect: NiConnect to localhost:65000,-1 (rc=-10) [icxxext.c 178]

Is you "localhost" in /etc/hosts mapped to that IP?

localhost should be 127.0.0.1

Markus

Former Member
0 Kudos

Hi Markus

We found the IP 142.10.2.92 is Exchange server..Yes it is mapped..Local host 127.0.0.1 in /ect/hosts

regards

Umesh K

markus_doehr2
Active Contributor
0 Kudos

> We found the IP 142.10.2.92 is Exchange server..Yes it is mapped..Local host 127.0.0.1 in /ect/hosts

Ok.

I am wondering about a few things:

- Your exchange server tries to communicate with your SAP system. Is that a Duet installation?

- Is your system listening on port 65000? (transaction SMICM - Goto - Services)

Markus

Former Member
0 Kudos

Hi Markus,

No duet is not installed also there is no port such as 65000 in smicm. I am wondering what is happening internaly.. May be some RFC are triggering this.. Please see below work process log

A >> Shm MMADM area (addr=0xc000000900ac6210 leng=242176 end=0xc000000900b01410)

A >> Shm MMDAT area (addr=0xc000000900b02000 leng=15499264 end=0xc0000009019ca000)

A RFC rfc/signon_error_log = -1

A RFC rfc/dump_connection_info = 0

A RFC rfc/dump_client_info = 0

A RFC rfc/cp_convert/ignore_error = 1

A RFC rfc/cp_convert/conversion_char = 23

A RFC rfc/wan_compress/threshold = 251

A RFC rfc/recorder_pcs not set, use defaule value: 2

A RFC rfc/delta_trc_level not set, use default value: 0

A RFC rfc/no_uuid_check not set, use default value: 0

A RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0

A RFC Method> initialize RemObjDriver for ABAP Objects

M ThrCreateShObjects##allocated 89382 bytes at 0xc0000000072a0000

N

N =================================================

N === SSF INITIALIZATION:

N ===...SSF Security Toolkit name SAPSECULIB .

N ===...SSF trace level is 0 .

N ===...SSF library is /usr/sap/PEC/SYS/exe/run/libsapcrypto.so .

N ===...SSF hash algorithm is SHA1 .

N ===...SSF symmetric encryption algorithm is DES-CBC .

N ===...sucessfully completed.

N =================================================

N MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.

N MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.

M JrfcVmcRegisterNativesDriver o.k.

W =================================================

W === ipl_Init() called

W ipl_Init(): wp task type is 4:BTC, skip initialization

W === ipl_Init() returns 0, ITSPE_OK: OK

W =================================================

M ***LOG Q0I=> NiPConnect2: connect (239: Connection refused) [nixxi.cpp 2821]

M *** ERROR => NiPConnect2: SiPeekPendConn failed for hdl 4 / sock 14

(SI_ECONN_REFUSE/239; I4; ST; 142.10.2.92:65000) [nixxi.cpp 2821]

M *** ERROR => IcmConnect: NiConnect to localhost:65000,-1 (rc=-10) [icxxext.c 178]

M *** ERROR => ThPlgConnectToIcm: IcmConnect failed (-10) [thxxplg.c 4762]

M in_ThErrHandle: 1

M *** ERROR => ThStart: connect to icman (step 1, th_errno 2, action 3, level 1)

[thxxhead.c 10377]

M Info for wp 9

M

M stat = WP_RUN

M waiting_for = NO_WAITING

M reqtype = DP_RQ_BTCWP

M act_reqtype = DP_RQ_BTCWP

M rq_info = 384

M tid = -1

M mode = 255

M len = 24

M rq_id = 52485

M rq_source = FROM_WP_CA

M last_tid = 9

M last_mode = 0

M semaphore = 0

M act_cs_count = 0

M csTrack = 0

M csTrackRwExcl = 0

M csTrackRwShrd = 0

M mode_cleaned_counter = 0

M control_flag = 1000000

M int_checked_resource(RFC) = 0

M ext_checked_resource(RFC) = 0

M int_checked_resource(HTTP) = 0

M ext_checked_resource(HTTP) = 0

M report = > <

M action = 0

M tab_name = > <

M req.vm = no VM

M attachedVm = no VM

M PfStatDisconnect: disconnect statistics

M Entering TH_CALLHOOKS

M ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP

M TrThHookFunc: called for WP dump

M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP

M ThrSaveSPAFields: save spa fields

M Entering ThSetStatError

M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)

M Entering ThReadDetachMode

M call ThrShutDown (1)...

M ***LOG Q02=> wp_halt, WPStop (Workproc 9 10456) [dpuxtool.c 259]

Regards

Umesh K

markus_doehr2
Active Contributor
0 Kudos

Did you maybe update your kernel before and forgot to execute "./saproot.sh " in the kernel directory? What´s the output of

ls -l /usr/sap/<SID>/exe/icmbnd

Markus

Former Member
0 Kudos

Markus,

Please see below

$ ls -l icmbnd

-rwxr-xr-x 1 dxiadm sapsys 3474424 Aug 29 2006 icmbnd

markus_doehr2
Active Contributor
0 Kudos

> $ ls -l icmbnd

> -rwxr-xr-x 1 dxiadm sapsys 3474424 Aug 29 2006 icmbnd

Your icmbnd has the wrong permissions. You have two possibilities:

cd /usr/sap/<SID>/exe
./saproot.sh <SID>

or

cd /usr/sap/<SID>/exe
chown root icmbnd
chmod 4755 icmbnd

Then restart your isntance.

If your kernel is really from 2006 then I highly suggest updating it.

Markus

Former Member
0 Kudos

Markus,

Thanks for your quick response and solution. can you please let me know should the root user need to be the owner of this file? if we change this setting will it fix the issue. Please suggest me because there are other systems which has same permission to icmbnd with no error like connection refused.

Many thanks in advance

Regards

Umesh K

markus_doehr2
Active Contributor
0 Kudos

The permissions of this file are wrong because someone updated the kernel and didn´t execute the "saproot.sh" script. This is necessary to set the s-bits of various executables (saposcol, icmbnd, br*tools).

Markus

Former Member
0 Kudos

Markus,

Thank You for the lighting response. I will come back to you once we changed this according to you suggestion

Regards

Umesh K

Former Member
0 Kudos

Markus,

We are facing the same issue after changing the required settings suggested by you. any other possibiliteis for this error ?

regards

Umesh K

markus_doehr2
Active Contributor
0 Kudos

Can you check the tracefile

dev_icm

Markus

Former Member
0 Kudos

HI,

In addition check SAP Note 421359 - ICM: Binding ports < 1024 on Unix

regards,

kaushal

Former Member
0 Kudos

markus,

dev_icm has no errors as such. but i have something in dev_rfc and dev_rd

dev_rfc

        • Trace file opened at 20080701 000507 EDT SAP-REL 700,0,133 RFC-VER U 3 938779

======> CPIC-CALL: 'ThSAPCMRCV' : cmRc=19 thRc=728

Conversation ID not found

ABAP Programm: SAPMSSY1 (Transaction: )

Called function module: TRFC_QIN_ACTIVATE

User: BATCHRFC (Client: 100)

Destination: milp7801_PSC_40 (handle: 1, 04235293, {486458E7-841F-2C17-E100-00008E0A1565})

SERVER> RFC Server Session (handle: 1, 04235293, {486458E7-841F-2C17-E100-00008E0A1565})

SERVER> Caller host:

SERVER> Caller transaction code: (Caller Program: SAPLQIWK)

SERVER> Called function module: TRFC_QIN_ACTIVATE

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 3295

CPIC-CALL: 'ThSAPCMRCV' : cmRc=19 thRc=728

Conversation ID not found

Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1817

dev_rd

      • ERROR => GwErrToAll: mark comm_entry 63 (48398336) as deallocated [gwdp.c 2646]

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

*

  • LOCATION SAP-Gateway on host milp7801 / sapgw40

  • ERROR read from SAP gateway failed

*

  • TIME Mon Jun 30 19:43:04 2008

  • RELEASE 700

  • COMPONENT SAP-Gateway

  • VERSION 2

  • RC 239

  • MODULE gwdp.c

  • LINE 4103

  • DETAIL connection to gateway on host milp7401 / sapdp40 broken

  • COUNTER 28364

*

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

***LOG Q0R=> GwReadFromRemGw, GwRead ( GwRead-006) [gwdp.c 4126]

Mon Jun 30 20:20:08 2008

      • ERROR => GwErrToAll: mark comm_entry 63 (48398336) as deallocated [gwdp.c 2646]

Mon Jun 30 21:19:59 2008

      • ERROR => GwErrToAll: mark comm_entry 63 (48398336) as deallocated [gwdp.c 2646]

Mon Jun 30 23:09:11 2008

      • ERROR => GwErrToAll: mark comm_entry 63 (48398336) as deallocated [gwdp.c 2646]

Mon Jun 30 23:55:44 2008

GwIFreeDiscConn: delete conversation 04219226 (conn=112) in state DISCONNECT

GwIFreeDiscConn: delete conversation 04234292 (conn=37) in state DISCONNECT

GwIFreeDiscConn: delete conversation 04235293 (conn=67) in state DISCONNECT

GwIFreeDiscConn: delete conversation 04252362 (conn=108) in state DISCONNECT

GwIFreeDiscConn: delete conversation 04253363 (conn=17) in state DISCONNECT

regards

Umesh K

Former Member
0 Kudos

Kaushal,

We are runninng ECC6. so shud this note is valid to us?. also icmbnd has the following permission mentioned in this note

regards

Umesh K

markus_doehr2
Active Contributor
0 Kudos

This is a different error. Seems that some qRFC call to an external system failed (APO? CRM?).

I must admit, I have no idea about the ICM error and where this could come from. Apparently some internal communication takes place.

I´d open an OSS call for the ICM error.

Markus

Former Member
0 Kudos

Markus,

Dono which program is calling the ip address of exchange server mentioned in that log..We will raise an OSS for this

thanks a lot for your support

Regards

Umesh K

Former Member
0 Kudos

Hi,

note is valid for ECC 6.0

check also Note 634006 - ICM messages explanatory note

regards,

kaushal

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks