cancel
Showing results for 
Search instead for 
Did you mean: 

Operating system call getaddrinfo failed

Former Member
0 Kudos

Hello!

I'v got an error Operating system call getaddrinfo failed (error no. 0 ) in SM21.

How can I fixed it ? Thanks for answers !

It is SAP SCM system on RHEL/oracle.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you provide main screen from SM21 with this messages?

Former Member
0 Kudos
Former Member
0 Kudos

Can you check/attach dev_w5 log file?

Former Member
0 Kudos

A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1730

CPIC-CALL: 'ThSAPOCMINIT' : cmRc=19 thRc=497

Адрес хоста определить не удалось (NiHostToAddr не удался).

DEST =OPTSERVER_DPS01

HOST =o10n

PROG =c:\apoopt\dps\bin\dsoptsvr.exe

GWHOST =o10n

GWSERV =sapgw00

[abrfcio.c    9213]

A  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

M  *** ERROR => ThCPIC: NiHostToAddr failed [thxxcpic.c   1981]

M  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

A  RFC 1714  CONVID

A   * CMRC=19 DATA=0 STATUS=0 SAPRC=497 ThSAPOCMINIT

A  RFC> ABAP Programm: CL_RCC_CCMS===================CP (Transaction: )

A  RFC> User: SAPSYS (Client: 000)

A  RFC> Destination: OPTSERVER_MMP01 (handle: 4, DtConId: 530B734A338518F6E1000000AC000055, DtConCnt: 0, ConvId: ,)

A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPOCMINIT' : cmRc=19 thRc=497

Адрес хоста определить не удалось (NiHostToAddr не удался).

[abrfcio.c    9213]

A  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1730

CPIC-CALL: 'ThSAPOCMINIT' : cmRc=19 thRc=497

Адрес хоста определить не удалось (NiHostToAddr не удался).

DEST =OPTSERVER_MMP01

HOST =o10n

PROG =c:\apoopt\mmp\bin\mmpopsvr.exe

GWHOST =o10n

GWSERV =sapgw00

[abrfcio.c    9213]

A  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

M  *** ERROR => ThCPIC: NiHostToAddr failed [thxxcpic.c   1981]

M  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

A  RFC 1714  CONVID

A   * CMRC=19 DATA=0 STATUS=0 SAPRC=497 ThSAPOCMINIT

A  RFC> ABAP Programm: CL_RCC_CCMS===================CP (Transaction: )

A  RFC> User: SAPSYS (Client: 000)

A  RFC> Destination: OPTSERVER_SEQ01 (handle: 5, DtConId: 530B734B338518F6E1000000AC000055, DtConCnt: 0, ConvId: ,)

A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPOCMINIT' : cmRc=19 thRc=497

Адрес хоста определить не удалось (NiHostToAddr не удался).

[abrfcio.c    9213]

A  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1730

CPIC-CALL: 'ThSAPOCMINIT' : cmRc=19 thRc=497

Адрес хоста определить не удалось (NiHostToAddr не удался).

DEST =OPTSERVER_SEQ01

HOST =o10n

PROG =c:\apoopt\seq\bin\seqopsvr.exe

GWHOST =o10n

GWSERV =sapgw00

[abrfcio.c    9213]

A  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

M  *** ERROR => ThCPIC: NiHostToAddr failed [thxxcpic.c   1981]

M  {root-id=005056B53D331EE3A7A96E22529B0E37}_{conn-id=00000000000000000000000000000000}_0

Former Member
Former Member
0 Kudos

Can you attach full log file? According to snippet you have provided the system can't resolve o10n host. Make sure that you can resolve it through DNS or hosts file.

Former Member
0 Kudos

Hi Roman,

Thank you for thought about dev_ file. I fixed my problem! The problem was in SAP APO where was wrong rfc destinations. I disabled an optimizations in  /n/SAPAPO/COPT01 because we don't use it.

Answers (11)

Answers (11)

0 Kudos

you can check the note : 2465666.

former_member182657
Active Contributor
0 Kudos

Hi Igor,

Please share the output of command niping -v -S sapms<SID> on IP 192.0.0.86,logs which you posted earlier.

Other which i want to confirm from you about the kernel release on all your landscape servers.Have you tried with kernel upgrade(Please do kernel upgrade on one of your test server).

I suggest you to kindly share this issue with your network team as well as raise a support ticket with Redhat OS.(it seems missing of some packages or need update of glibc package)

Thanks,

Gaurav

former_member187565
Active Contributor
0 Kudos

Hi Igor,

It seems your OS was unable to perform DNS related action in your environment. Please raise a issue with your DNS, Network team to resolve this issue.

Regards,

Rafikul

former_member182657
Active Contributor
0 Kudos

Hi Igor,

Thanks for the info.As per output of command niping -v -S sapms<SID> provided by you i analyzed host IP is not matching with the IP which we've under /etc/hosts file.

In /etc/hosts your system IP is 192.0.0.86 ewm-qas   but with output of

niping -v -S sapms<SID>  IP is showing 192.0.0.85 ewm-qas.

So here we get one finding regarding the issue.I suggest you to please get info or set only one IP for your hostname to resolve it proper also with niping -v -S sapms<SID> command.

Hope you can understand my point.

Please correct if 'm wrong here.

Thanks

Former Member
0 Kudos

Hi Gaurav,

No, it's my fault. This problem is on whole landscape, so I paste an information from other server where this error exists too.

Former Member
0 Kudos

can you please attach the logs from the respective work process (for ex dev_w0)...

former_member182657
Active Contributor
0 Kudos

Hi Igor,

From when you're facing this issue,any recent changes at OS level or any kernel version upgrade etc.

Please share your SAP kernel release & I also recommend you to first update kernel with the latest available as per your SAP release & share further details with us.

Thanks,

Gaurav

Former Member
0 Kudos

There was no kernel upgrade

former_member182657
Active Contributor
0 Kudos

Hi Igor,

Provide the output for command

niping -v -S sapms<SID>

Thanks



Former Member
0 Kudos

ewm-qas:ew2adm 51> niping -v -S sapmsEW2

Hostname/Nodeaddr verification:

===============================

Hostname of local computer: ewm-qas                      (NiMyHostName)

Lookup of hostname: ewm-qas                              (NiHostToAddr)

    --> IP-Addr.: 192.0.0.85

Lookup of IP-Addr.: 192.0.0.85                               (NiAddrToHost)

    --> Hostname: ewm-qas

Lookup of hostname: localhost                                (NiHostToAddr)

    --> IP-Addr.: 127.0.0.1

Lookup of IP-Addr.: 127.0.0.1                                (NiAddrToHost)

    --> Hostname: localhost

Servicename/Serviceport verification:

=======================================

Lookup of service: sapmsEW2                                  (NiServToNo)

    --> Number: 3600

Lookup of service no: 3600                                   (NiNoToServ)

    --> Service name: trap-daemon

former_member182657
Active Contributor
0 Kudos

Hi Igor,

Kindly refer SAP Note  1249472 - RCCF: High number of trace files or GetHostByName errors

896973 - Service 'xyz' unknown; error in getservbyname/getaddrinfo

Please share entries from /etc/services also.

From note 896973 i found

1) Unix

You can configure the operating system to check whether the lookup for a service name is performed locally and/or using a global service. Some platforms use the configuration file '/etc/nsswitch.conf' for this. Information is also available on 'man services'.
You can locally save service names in the file '/etc/services' with the following format:
<service name>   <service number>/<protocol>   [<service aliases> ...]
For the SAP service names, one entry for the TCP protocol is sufficient. Example if the 'sapmsOss' service name corresponds to port number 3616:
sapmsOSS       3616/tcp
You can use the following command to check whether a service name is stored in the NIS:

:/> ypcat services | grep <service name>

Thanks

former_member182657
Active Contributor
0 Kudos

Hi Igor,

If possible share entry details under files

/etc/hosts,

/etc/nsswitch.conf

/etc/resolv.conf

Please confirm entry 127.0.0.1   localhost.localdomain  localhost  in your host file.It should be like as below:


127.0.0.1   localhost localhost.localdomain localhost

192.168.x.x <hostname>


Thanks

Former Member
0 Kudos

resolv:

  GNU nano 2.0.9                                 File: /etc/resolv.conf                                                                         

# Generated by NetworkManager

search domain.local

nameserver 192.0.0.103

nameserver 192.0.0.102


hosts:

  GNU nano 2.0.9                                   File: /etc/hosts                                                                             

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.0.0.86 host-ewm host-ewm.domain.ru host-ewm.domain.local

nsswitch:

passwd:     files

shadow:     files

group:      files

#hosts:     db files nisplus nis dns

hosts:      files dns

# Example - obey only what nisplus tells us...

#services:   nisplus [NOTFOUND=return] files

#networks:   nisplus [NOTFOUND=return] files

#protocols:  nisplus [NOTFOUND=return] files

#rpc:        nisplus [NOTFOUND=return] files

#ethers:     nisplus [NOTFOUND=return] files

#netmasks:   nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers:     files

netmasks:   files

networks:   files

protocols:  files

rpc:        files

services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus

aliases:    files nisplus

former_member182657
Active Contributor
0 Kudos

Hi,

Thanks for the info.Please do the following.

1.Stop your sap instance .

2.Copy or backup of file hosts,resolv.conf from /etc to somewhere.

3.Change entries under /etc/hosts like

127.0.0.1 localhost.localdomain  localhost

192.0.0.86  <hostname> <fdqnname>

:wq!

4.Comment both DNS entries under /etc/resolv.conf & save.

5..Share rpm info of glibc by command rpm -qa glibc,if possible do command yum update glibc for updating glibc pacakage.

Regards,

Gaurav




Former Member
0 Kudos

Hi Gaurav,

I did this steps, but the error doesn't disappear.

Former Member
0 Kudos

glibc-2.12-1.132.el6.i686

glibc-2.12-1.132.el6.x86_64

Sriram2009
Active Contributor
0 Kudos

Hi

Kindly refer the SAP Note 1537366 - Universe Connections Message Server


Regards

Ram

former_member182657
Active Contributor
0 Kudos

Hi,

Please re ensure correct IP address with hostname mentioned under /etc/hosts file for resolving ip with hostname.

Are you able to resolve ip with hostname.

Second kindly confirm about " saposcol " is running at OS or not.

Thanks

Former Member
0 Kudos

Hi, Gaurav!

Yes I had two records when I run nslookup (by IP address). I deleted wrong record, but this error doesn't disappear. Maybe I should restart the system ?

former_member182657
Active Contributor
0 Kudos

Hi Igor,

Yes .Please do a system restart and revert if you face this issue again.One thing more which i want to point from your screenshot that documentation showing No space left on file system.Please share free space details.

Thanks

Former Member
0 Kudos

/dev/sda1                      23G  632M   21G   3% /

/dev/sdb1                     493G  176G  292G  38% /SAP

/dev/sda5                     7.7G  146M  7.2G   2% /tmp

/dev/sda3                      20G  2.2G   17G  13% /usr

/dev/sda6                     7.7G  478M  6.9G   7% /var

former_member188883
Active Contributor
0 Kudos

Hi Igor,

Could you check SAP Note 388193 - gethostbyname call operating system failed

Hope this helps.

Regards,

Deepak Kori