cancel
Showing results for 
Search instead for 
Did you mean: 

SAP on Ubuntu > Correct settings for etc/hosts?

Former Member
0 Kudos

Hi,

I installed the SAP test drive version on Ubuntu (VirtualBox). After starting the SAP GUI (

/home/minisap/SAPClients/SAPGUI7.20rev5/bin/guistart /H/ubuntu64/S/3242

) I get the following error:

Error: partner 'ubuntu64:3242' not reached
Sun Feb  5 14:07:26 2012
Release 720
Component NI (network interface), version 40
rc = -10, module nixxi.cpp, line 3286
Detail NiPConnect2: 127.0.0.1:3242
System Call connect
Error No 111
'Connection refused'

I guess that the settings of the file etc/hosts are not correct. After the installation of ubuntu the file contains

10.0.2.15    ubuntu64    # Added by NetworkManager
127.0.0.1    localhost.localdomain    localhost
::1    ubuntu64    localhost6.localdomain6    localhost6
127.0.1.1    ubuntu64
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

According to the test drive readme file I have to ensure that etc/hosts contain at least the following lines:

127.0.0.1 	localhost 	
n.n.n.n 	<HOSTNAME>.<DOMAINNAME> 	<HOSTNAME>
n.n.n.n 	nplhost 	
where "n.n.n.n" is a valid IP-adress.

I tried different settings but the above mentioned error still occurs... Does anyone know the correct settings of etc/hosts or know what the problem could be?

Thanks and regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Make sure sap processes are running. Could you please show result of "ps -ef|grep sap"

and from the same host( ubuntu64) do "telnet ubuntu64 3242"

post these two result then we can analyze further

Former Member
0 Kudos

OK, I logged on as user nnpladm and typed

startsap nplhost

ps -ef|grep sap

ps -ef|grep sap
sdb       3424     1  0 16:15 pts/1    00:00:00 /sapdb/NPL/db/pgm/vserver -sdbstarter 1002 1003 A -S 7200 -Y
sdb       3425  3424  0 16:15 pts/1    00:00:00 /sapdb/NPL/db/pgm/vserver -sdbstarter 1002 1003 A -S 7200 -Y
sdb       3428     1  0 16:15 pts/1    00:00:00 /sapdb/programs/pgm/niserver
sdb       3448     1  0 16:15 ?        00:00:00 /sapdb/NPL/db/pgm/kernel NPL -diagpipe 16
sdb       3451  3448  0 16:15 ?        00:00:02 /sapdb/NPL/db/pgm/kernel NPL -diagpipe 16
npladm    4903     1  0 16:16 ?        00:00:00 /usr/sap/NPL/SCS00/exe/sapstartsrv pf=/usr/sap/NPL/SYS/profile/START_SCS00_nplhost -D
npladm    5187     1  0 16:16 ?        00:00:00 sapstart pf=/usr/sap/NPL/SYS/profile/START_SCS00_nplhost
npladm    5209  5187  0 16:16 ?        00:00:00 ms.sapNPL_SCS00 pf=/usr/sap/NPL/SYS/profile/NPL_SCS00_nplhost
npladm    5210  5187  0 16:16 ?        00:00:00 en.sapNPL_SCS00 pf=/usr/sap/NPL/SYS/profile/NPL_SCS00_nplhost
npladm    6414     1  0 16:16 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/sapstartsrv pf=/usr/sap/NPL/SYS/profile/START_DVEBMGS42_nplhost -D
npladm    6700     1  0 16:17 ?        00:00:00 sapstart pf=/usr/sap/NPL/SYS/profile/START_DVEBMGS42_nplhost
npladm    6740  6700  0 16:17 ?        00:00:00 ms.sapNPL_DVEBMGS42 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
npladm    6742  6700  0 16:17 ?        00:00:00 ig.sapNPL_DVEBMGS42 -mode=profile pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
npladm    6755  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igsmux_mt -mode=profile -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
npladm    6756  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igspw_mt -mode=profile -no=0 -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
npladm    6757  6742  0 16:17 ?        00:00:00 /usr/sap/NPL/DVEBMGS42/exe/igspw_mt -mode=profile -no=1 -restartcount=0 -wdpid=6742 pf=/usr/sap/NPL/SYS/profile/NPL_DVEBMGS42_nplhost
npladm    7930  1544  0 16:47 pts/1    00:00:00 grep sap

telnet ubuntu64 3242

Trying ::1...
Trying 127.0.1.1...
Trying 10.0.2.15...
telnet: Unable to connect to remote host: Connection refused

Former Member
0 Kudos

I don't see any dispatcher process running on this host. It starts with "dw.sapNPL"

Check the dev_disp and paste the error log here.

Thanks

Srikanth M

Former Member
0 Kudos

well, I didn't want to paste the entire log, so I just searched for "error":

Thu Feb  9 16:17:11 2012
*** ERROR => NiHLGetNodeAddr: NiPGetHostByName failed (rc=-1) [nixxhl.cpp   279]
Thu Feb  9 16:17:17 2012
ES initialized.
mm.dump: set maximum dump mem to 96 MB
DpVmcSetActive: set vmc state DP_VMC_NOT_ACTIVE
MPI: dynamic quotas disabled.
MPI init: pipes=4000 buffers=1279 reserved=383 quota=10% 
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 3.4 3.4 4.1) [dpxxdisp.c   1654]
***LOG Q0K=> DpMsAttach, mscon ( nplhost) [dpxxdisp.c   12261]
use SAPLOCALHOST=<nplhost> as internal hostname
*** ERROR => SAPLOCALHOST=<nplhost> [dpxxdisp.c   12317]
*** DP_FATAL_ERROR => DpMsAttach: incorrect value for SAPLOCALHOST
*** DISPATCHER EMERGENCY SHUTDOWN ***

Former Member
0 Kudos

Extract from Note: https://service.sap.com/sap/support/notes/1496410

Hostname

Ensure that the system hostname is set to the short name as described above, i.e. both commands "hostname" and "hostname -s" must return the hostname without domain, "hostname -f" must return the fully qualified hostname and domain:

  1. hostname

sapserver1

  1. hostname -s

sapserver1

  1. hostname -f

sapserver1.example.com

To do that, check that HOSTNAME is set to the short name without domain in /etc/sysconfig/network:

  1. cat /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=sapserver1

...

Also set up /etc/hosts so that it is configured similar to the following example:

  1. cat /etc/hosts

127.0.0.1 localhost.localdomain localhost

192.168.0.1 sapserver1.example.com sapserver1

(any additional hosts should be added after these two lines)

It is important that the fully qualified domain name is in the second column, followed by any alias names and that the hostname of the machine is not associated with the IP address 127.0.0.1.

If you entered the fully qualified hostname during installation you can run the command 'hostname <shorthostname>' to set the short hostname without having to reboot the system.

Let me know after you perform the above steps.

Former Member
0 Kudos

Hi Srikanth, thanks so far, but unfortunately there was no change:

1st attempt: (refers to my first post)

I mixed up the original Ubuntu hosts file with the instructions in the readme file:

10.0.2.15	ubuntu64	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	ubuntu64	localhost6.localdomain6	localhost6
127.0.0.1	ubuntu64
127.0.1.1	ubuntu64.localdomain	ubuntu64
127.1.1.1	nplhost
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Then I started the test drive. Result:

ubuntu64:npladm 1> startsap db nplhost
Checking ADA Database
Database is not available via R3trans
-------------------------------------------
Trying to start database ...
Log file: /home/npladm/startdb.log
NPL database started

While starting the GUI => error occurred as described in my first post.

2nd attempt

- First I added the two lines to /etc/network/interfaces (path is different under ubuntu)

- Then I changed the hosts file according to your last post (I kept the nplhost entry):

10.0.2.15	ubuntu64	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
192.168.0.1	ubuntu64.example.com	ubuntu64
::1	ubuntu64	localhost6.localdomain6	localhost6
127.1.1.1	nplhost
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

- The output of "hostname", "hostname -s" and "hostname -f" shows "ubuntu64" in each case.

=> Finally the result was the same as above...

Former Member
0 Kudos

Hello Hans,

Did you ever get your question answered ( correct settings in /etc/hosts file for Java TestDrive)?  If so what is the answer.  Thank you.