cancel
Showing results for 
Search instead for 
Did you mean: 

Operating system call gethostbyname failed (error no. 0 )

MaheshKumar
Contributor
0 Kudos

Hey all,

In my one of app server im getting this error frequently in sm21. Kindly help me how to solve this issue.

-


Details Page 2 Line 11 System Log: Local Analysis of solman 1

Time Type Nr Clt User TCode Grp N Text

13:59:02 DIA 001 900 BASIS Q0 I Operating system call gethostbyname failed (error no. 0 )

Operating system call gethostbyname failed (error no. 0 )

Details

Recording at local and central time........................ 15.07.2011 13:59:02

Task...... Process User...... Terminal Session TCode Program Cl Problem cl Package

08086 Dialog work process No. 001 BASIS 1 RSSTAT98 K SAP Web AS Problem STSK

Further details for this message type

Module nam Line Error text Caller.... Reason/cal

niuxi.c 1477 gethostbyname 0 NiPGetH gethost

Documentation for system log message Q0 I :

The specified operating system call was returned with an error.

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

are network problems.

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

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

Technical details

File Offset RecFm System log type Grp N variable message data

36 108900 m Error (Function,Module,Row) Q0 I gethostbyname 0 NiPGetHgethostniuxi.c 1477

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

If the optimizer is installated ,Pls check the Standalone gateway engine is installaed and RFC connection with the Gateway host has been maitained.

Thanks

Former Member
0 Kudos

Hi,

Do you use optimizer in your APO. Is it installed correctly ?

gethostbyname() is a system function that tries to get the IP addresse of a given hostname.

This function calls the configured DNS server to fetch the IP address of the hostname and returns an error if the DNS is not able to resolve the 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.

Since you mentioned that you are getting this error on one of your app servers, please check if your DNS server is set up properly and that the host files are maintained properly.

Also, please check and verify if the saposcol is running fine.

Regards,

Varun

MaheshKumar
Contributor
0 Kudos

Hi.. when i run this transaction it says no transaction exists.. can any one help me reg this...

Thanks all for ur valuable suggestions and help

Former Member
0 Kudos

Hi,

Please see the SAP Note..

Note 388193 - gethostbyname call operating system failed

Regards

Bhuban

RKFL

MaheshKumar
Contributor
0 Kudos

Hey thank you for reply.. i have downloaded note... will see the issue...

MaheshKumar
Contributor
0 Kudos

Hey thank you for reply.. i have downloaded note... will see the issue...

I have seen the note ... according to note solutions are

Alternative 1: Use one or several optimizers in the APO

The optimizers must be installed correctly here: Install all optimizers

using the installation guidelines and maintain the settings for the master

data (Transactions SM59 and /SAPAPO/COPT01). If necessary, overwrite any

delivered sample entries).

Alternative 2: Do not use any optimizer in the APO

In this case, you do not have to start reorganizing the optimization.

Set all optimizers in the master data table to "Inactive" (Customizing

Transaction /SAPAPO/COPT01, "Status" field) or delete all entries in this

table.

I would like to how can i execute /SAPAPO/COPT01....

Former Member
0 Kudos

Hi,

Run transaction /n/SAPAPO/COPT01

Regards

Bhuban

RKFL

MaheshKumar
Contributor
0 Kudos

Can i apply this note directly from sap ? or do i need to apply the settings manually...

Former Member
0 Kudos

Hi,

Please check the " Solution" point and do it in manually. I did it manually anyway.

Regards

Bhuban

MaheshKumar
Contributor
0 Kudos

@bhuban_2010

what are the configurationsi have to do after running this transaction. As u did it, i feel ur suggestions will make my work easy