cancel
Showing results for 
Search instead for 
Did you mean: 

Can't startsap n4shost - Could not found virtuell host in ifconfig list

Former Member
0 Kudos

Hi,

I try to install SAP NetWeaver 7.0 (2004s) - Trial Version on Linux however without success.

OS: opens suse 10.3

I face the following issues:

1. when I install the system I can startsap n4shost without issues however after reboot I get the below listed message (I copied as well all relevant files into this tread)

2. the license key I received is too long (the system asks for 24 characters I received from sap in a text file a >100 characters license key

What do I wrong? I found some similar issues in the forum however non of the solutions fixed my issues....

Thank you for your help.

Regards

Sebastian

Attachements:

-


n4shost:n4sadm 3> startsap n4shost

Warning: Could not found virtuell host in ifconfig list

Checking ADA db Database

-


ABAP Database is not available via R3trans

Starting SAP-Collector Daemon

-


21:45:32 17.11.2008 LOG: Effective User Id is root

***********************************************************************

  • This is Saposcol Version COLL 20.89 700 - AMD/Intel x86_64 with Linux, PL:52, Mar 31 2006

  • Usage: saposcol -l: Start OS Collector

  • saposcol -k: Stop OS Collector

  • saposcol -d: OS Collector Dialog Mode

  • saposcol -s: OS Collector Status

  • The OS Collector (PID 5867) is already running .....

************************************************************************

saposcol already running

Running /usr/sap/N4S/SYS/exe/run/startdb

Trying to start database ...

Log file: /home/n4sadm/startdb.log

Database start failed

DB startup failed

-


-


/etc/hosts

-


#

  1. hosts This file describes a number of hostname-to-address

  1. mappings for the TCP/IP subsystem. It is mostly

  1. used at boot time, when no name servers are running.

  1. On small systems, this file can be used instead of a

  1. "named" name server.

  1. Syntax:

#

  1. IP-Address Full-Qualified-Hostname Short-Hostname

#

127.0.0.1 localhost

  1. special IPv6 addresses

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix

ff02::1 ipv6-allnodes

ff02::2 ipv6-allrouters

ff02::3 ipv6-allhosts

127.0.0.2 linux.site linux

192.168.1.2 HP6735B HP6735B

-


-


/etc/sysconfig/network/ifcfg-eth0

-


BOOTPROTO='static'

BROADCAST='192.168.1.255'

ETHTOOL_OPTIONS=''

IFPLUGD_PRIORITY='20'

IPADDR='192.168.1.2'

MTU='1500'

NAME='Hewlett-Packard Company NetLink BCM5787M Gigabit Ethernet PCI Express'

NETMASK=''

NETWORK=''

REMOTE_IPADDR=''

STARTMODE='ifplugd'

USERCONTROL='no'

IPADDR_0='192.168.155.1'

NETMASK_0='255.255.255.0'

LABEL_0='0'

PREFIXLEN=''

PREFIXLEN_0=''

-


-


/home/n4sadm/startdb.log

-


-


Mon Nov 17 21:45:32 CET 2008

LOGFILE FOR STARTING DATABASE

Trying to start database ...

-


Mon Nov 17 21:45:32 CET 2008

Checking required environment variables

SAPSYSTEMNAME is >N4S<

Start database with xuserkey >c<

-


Mon Nov 17 21:45:32 CET 2008

Connect to the database to check the database state

dbmcli: connect check finished with return code: 0

Database not available

-


Mon Nov 17 21:48:42 CET 2008

Starting XServer

12916 XSERVER Found other running x_server with version 'X64/LINUX 7.6.00 Build 018-123-119-055'

12902 XSERVER started, 'already...'

-


Mon Nov 17 21:48:42 CET 2008

Starting database

Starting Database Instance...

Error! Connection failed to node n4shost for database N4S: cannot connect to server socket

Opening Database...

Error! Connection failed to node n4shost for database N4S: cannot connect to server socket

-


Mon Nov 17 21:53:25 CET 2008

Connect to the database to verify the database is now open

dbmcli check finished with return code: 0

Database start failed

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi RK, hi Marcos,

thank you for your reply.

Sorry, when I copied the host file the last line got lost. There is an entry in the file /etc/host for n4shost.

127.0.0.1 localhost

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix

ff02::1 ipv6-allnodes

ff02::2 ipv6-allrouters

ff02::3 ipv6-allhosts

127.0.0.2 linux.site linux

192.168.1.2 HP6735B HP6735B

192.168.155.1 n4shost n4shost

-


That's what I get --> HP6735B:/etc # ifconfig -a

-


eth0 Link encap:Ethernet HWaddr 00:22:64:49:33:64

inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:2436 errors:0 dropped:0 overruns:0 frame:0

TX packets:1056 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:728152 (711.0 Kb) TX bytes:380288 (371.3 Kb)

Interrupt:16

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:6 errors:0 dropped:0 overruns:0 frame:0

TX packets:6 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)

As well I have a fix IP address...

BOOTPROTO='static'

Do you have any ohter idea what could be wrong?

BR

Sebastian

Former Member
0 Kudos

Looks like the network interface for n4shost is not there. ifconfig -a output does not show IP 192.168.155.1. That explains the warning

n4shost:n4sadm 3> startsap n4shost

Warning: Could not found virtuell host in ifconfig list

Can you configure the interface and try it again? Can you post the startdb.log & trans.log as well?

-Regards

prego
Explorer
0 Kudos

Hi Sebastian,

I guess 192.168.155.1 is not a valid IP-address... in this case for a first test is enough to change your /etc/hosts like below:

127.0.0.1 localhost

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix

ff02::1 ipv6-allnodes

ff02::2 ipv6-allrouters

ff02::3 ipv6-allhosts

127.0.0.2 linux.site linux

192.168.1.2 HP6735B HP6735B n4shost

Do you have DHCP configured in this server?

cheers,

Marcos

hannes_kuehnemund
Active Contributor
0 Kudos

Hi,

192.168.155.1 is of course a valid IP address. Just execute


ifconfig eth0:0 192.168.155.1 netmask 255.255.255.0 up

and you have a valid interface

Thanks,

Hannes

prego
Explorer
0 Kudos

Hi Hannes,

Sure 192.168.155.1 is a valid IP address, but since the netmask is 255.255.255.0 no other PC in the segment 192.168.1.x will be able to reach the SAP server! So I think is not that useful to define the interface as you proposed. But, of course, depends of the Network layout and many other things.

Marcos

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have changed the file /etc/hosts -now it works:

127.0.0.1 localhost

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix

ff02::1 ipv6-allnodes

ff02::2 ipv6-allrouters

ff02::3 ipv6-allhosts

127.0.0.2 linux.site linux

192.168.1.2 HP6735B HP6735B n4shost

Thank you for your help.

BR

Sebastian

Former Member
0 Kudos

Hi Sebastian,

When you installed the did the /etc/host file contain an entry for n4shost? It does not exist in the host file you listed above. Also, there doesn't seem to a network interface configured for n4shost. I am not all that familiar with linux, but you can check with ifconfig -a <ipadress of n4shost>.

-Regards

prego
Explorer
0 Kudos

I had similar problems because DHCP was configured and the /etc/hosts was always wrong! Since I changed to a fix IP address everything works fine.

The new long license you should apply in the SAP with transaction SLICENSE. The old "saplicense -install" works only with a short key, which is not delivered any more.

cheers,

Marcos