cancel
Showing results for 
Search instead for 
Did you mean: 

System log - gethostbyname failed

Former Member
0 Kudos

Dear all,

When I run tcode sm21, there're many errors about "Operating system call gethostbyname failed (error no. 2 )"

The specified operating system call was returned with an error.

For communication calls (receive, send, etc) often the cause of errors

are network problems.

Documentation for system log message Q0 I :

It could also be a configuration problem at operating system level.

(file cannot be opened, no space in the file system etc.).

Additional specifications for error number 2

Name for errno number E_UNKNOWN_NO

The meaning of the value stored in 'errno' is

platform-dependent.

The value which occurred here is unknown to the SysLog system.

Either there is an incorrect error number in the SysLog message, or

the tables TSLE2 or TSLE3 are not completely maintained.

Do anybody help me to solve this problem?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I also facing the same issue, please can anyone give a solution for this.

Thanks in advance

regards,

sampath

markus_doehr2
Active Contributor
0 Kudos

gethostbyname() is a system function that tries to get the IP addresse of a given hostname. So if you do e. g. a

ping <hostname>

then this function is called and is asking the configured DNS server to get the IP addresse for <hostname>. If the DNS does not return something viable the function returns with the given error.

In modern network environments it's crucial to have a proper DNS server set up, that means the name must be able to be resolved to an IP and vice versa.

So if you see this error in SM21 then a machine connected to the system whose name is not resolvable either by local hosts file or by DNS.

Markus

Former Member
0 Kudos

Dear Tai Tran,

is there any other information associated with the error in SM21 ? For example an RFC connection,

etc. ?

Maybe you will find a corresponding error (same timestamp) in the dev_wx or dev_rfcx trace files ?

What kind of workprocess is associated with it in SM21, f.e. RD, DIA ?

Which user, client, transaction code ?

kr

andreas

Edited by: Andreas Kleinlein on Jul 14, 2009 11:39 AM

Former Member
0 Kudos

Hi,

Check the hostname at your server operating system level :

ping myserver.mydomain

it gives you the IP address

Then :

nslookup myipaddress

should give you exactly : myserver.mydomain

If not, correct the hostname or the DNS configuration or the etc/hosts file, or the ip adresses bindings.

Regards,

Olivier

Former Member
0 Kudos

Hi Olivier,

Ping and nslookup command are to use normally. I use IDES ECC6. But system logs still have errors about "Operating system call connect failed"

Regards,

Tan

vincentlim826
Employee
Employee
0 Kudos

You should check in SM21, dev_w, dev_disp, dev_ms, sderr files.

check also gateway, RFC.

Normally this is indication of network problem.

You should get NIPING (SAP Note 500235) to diagnose it.

See also SAP Note 34116.

Former Member
0 Kudos

Hi,

Did the issues resolved. If so, Could you kindly post the solution.

Even we are facing the same issue "Operating system call gethostbyname failed"

Thanks,

Prav

Former Member
0 Kudos

Please take a advice,

Tan Tran