on 09-14-2010 10:48 AM
Hello,
While monitoring our SM21 error, we encounter the following error.
Operating system call gethostbyname failed (error no. 2 )
Communication error, CPIC return code 020, SAP return code 497
> CPI-C function: CMINIT(SAP)
This happens in only in my application servers and not in the CI.
This comes for only one communnication user.
We have 2 clients in the system and this error is noticed in only one of the clients.
Can you pls help, in finding the solution.
Regards
siddhartha
gethostbyname() is an operating system function that tries to resolve a name to an IP addresse. The affected machine is either not in the DNS or hosts file or the DNS configuration is wrong.
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> I just now checked the /etc/resolv.conf and did not find any host name.
There are not hostnames in /etc/resolv.conf, this is the machines resolver configuration, not a hosts list, enter "man resolv.conf" and read what the file content means.
> There are only IP address'es mentioned there which are valid.
The SAP system can't find an addresse for a hostname, that's why you get this error message in the syslog. The reason for this must be found locally on the machine in either the DNS/resolver configuration or in the machines /etc/hosts file, depending on which mechanisms you use.
Markus
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.