cancel
Showing results for 
Search instead for 
Did you mean: 

GwIConnect: GwConnect to <Server> / sapgw00 failed (rc=NIEHOST_UNKNOWN)

0 Kudos

Hi,

I have completed the system copy and then when I tried to start the system after rebooting the server, it tries to connect to the source host and server0 never starts. Where do I need to change the host name so that the server gets the correct hostname? Please help. The developer trace is as follows:

-


trc file: "D:\usr\sap\AM6\DVEBMGS00\work\dev_server0", trc level: 1, release: "700"

-


node name : ID2640850

pid : 5024

system name : AM6

system nr. : 00

started at : Fri Sep 17 05:23:22 2010

arguments :

arg[00] : D:\usr\sap\AM6\DVEBMGS00\exe\jlaunch.exe

arg[01] : pf=D:\usr\sap\AM6\SYS\profile\AM6_DVEBMGS00_coeabacrm01

arg[02] : -DSAPINFO=AM6_00_server

arg[03] : pf=D:\usr\sap\AM6\SYS\profile\AM6_DVEBMGS00_coeabacrm01

arg[04] : -DSAPSTART=1

arg[05] : -DCONNECT_PORT=65000

arg[06] : -DSAPSYSTEM=00

arg[07] : -DSAPSYSTEMNAME=AM6

arg[08] : -DSAPMYNAME=coeabacrm01_AM6_00

arg[09] : -DSAPPROFILE=D:\usr\sap\AM6\SYS\profile\AM6_DVEBMGS00_coeabacrm01

arg[10] : -DFRFC_FALLBACK=ON

arg[11] : -DFRFC_FALLBACK_HOST=localhost

[Thr 4480] Fri Sep 17 05:23:22 2010

[Thr 4480] *** WARNING => INFO: Unknown property [instance.box.number=AM6DVEBMGS00coeabacrm01] [jstartxx.c 841]

[Thr 4480] *** WARNING => INFO: Unknown property [instance.en.host=coeabacrm01] [jstartxx.c 841]

[Thr 4480] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx.c 841]

[Thr 4480] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx.c 841]

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

JStartupReadInstanceProperties: read instance properties [D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties]

-> ms host : coeabacrm01

-> ms port : 3901

-> OS libs : D:\usr\sap\AM6\DVEBMGS00\j2ee\os_libs

-> Admin URL :

-> run mode : normal

-> run action : NONE

-> enabled : yes

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

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

Used property files

-> files [00] : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

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

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

Instance properties

-> ms host : coeabacrm01

-> ms port : 3901

-> os libs : D:\usr\sap\AM6\DVEBMGS00\j2ee\os_libs

-> admin URL :

-> run mode : normal

-> run action : NONE

-> enabled : yes

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

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

Bootstrap nodes

-> [00] bootstrap : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

-> [01] bootstrap_ID2640800 : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

-> [02] bootstrap_ID2640850 : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

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

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

Worker nodes

-> [00] ID2640800 : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

-> [01] ID2640850 : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\instance.properties

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

[Thr 4480] JLaunchRequestQueueInit: create named pipe for ipc

[Thr 4480] JLaunchRequestQueueInit: create pipe listener thread

[Thr 4812] WaitSyncSemThread: Thread 4812 started as semaphore monitor thread.

[Thr 5740] JLaunchRequestFunc: Thread 5740 started as listener thread for np messages.

[Thr 4480] NiInit3: NI already initialized; param 'maxHandles' ignored (1;202)

[Thr 4480] CPIC (version=700.2009.02.11)

[Thr 4480] [Node: server0] java home is set by profile parameter

Java Home: C:\j2sdk1.4.2_13-x64\

[Thr 4480] Fri Sep 17 05:23:24 2010

[Thr 4480] JStartupICheckFrameworkPackage: can't find framework package D:\usr\sap\AM6\DVEBMGS00\exe\jvmx.jar

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

JStartupIReadSection: read node properties [ID2640850]

-> node name : server0

-> node type : server

-> node execute : yes

-> jlaunch parameters :

-> java path : C:\j2sdk1.4.2_13-x64\

-> java parameters : -Djco.jarm=1 -verbose:gc -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -XX:NewSize=341m -XX:MaxNewSize=341m -XX:MaxPermSize=192m -XX:PermSize=192m -XX:DisableExplicitGC -XX:PrintGCDetails -XX:+PrintGCTimeStamps -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=90 -XX:SoftRefLRUPolicyMSPerMB=1 -verbose:gc

-> java vm version : 1.4.2_13-b06

-> java vm vendor : Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)

-> java vm type : server

-> java vm cpu : amd64

-> heap size : 2048M

-> init heap size : 2048M

-> stack size : 2M

-> root path : D:\usr\sap\AM6\DVEBMGS00\j2ee\cluster\server0

-> class path : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.

-> OS libs path : D:\usr\sap\AM6\DVEBMGS00\j2ee\os_libs

-> main class : com.sap.engine.boot.Start

-> framework class : com.sap.bc.proj.jstartup.JStartupFramework

-> registr. class : com.sap.bc.proj.jstartup.JStartupNatives

-> framework path : D:\usr\sap\AM6\DVEBMGS00\exe\jstartup.jar;D:\usr\sap\AM6\DVEBMGS00\exe\jvmx.jar

-> shutdown class : com.sap.engine.boot.Start

-> parameters :

-> debuggable : no

-> debug mode : no

-> debug port : 50021

-> shutdown timeout : 120000

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

[Thr 4480] JLaunchISetDebugMode: set debug mode [no]

[Thr 6060] JLaunchIStartFunc: Thread 6060 started as Java VM thread.

[Thr 6060] [JHVM_PrepareVMOptions] use java parameters set by profile parameter

Java Parameters: -Xss2m

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

JHVM_LoadJavaVM: VM Arguments of node [server0]

-> stack : 1048576 Bytes

-> arg[ 0]: exit

-> arg[ 1]: abort

-> arg[ 2]: vfprintf

-> arg[ 3]: -Djco.jarm=1

-> arg[ 4]: -verbose:gc

-> arg[ 5]: -Djava.awt.headless=true

-> arg[ 6]: -Dsun.io.useCanonCaches=false

-> arg[ 7]: -Djava.security.policy=./java.policy

-> arg[ 8]: -Djava.security.egd=file:/dev/urandom

-> arg[ 9]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy

-> arg[ 10]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy

-> arg[ 11]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy

-> arg[ 12]: -XX:NewSize=341m

-> arg[ 13]: -XX:MaxNewSize=341m

-> arg[ 14]: -XX:MaxPermSize=192m

-> arg[ 15]: -XX:PermSize=192m

-> arg[ 16]: -XX:+DisableExplicitGC

-> arg[ 17]: -XX:+PrintGCDetails

-> arg[ 18]: -XX:+PrintGCTimeStamps

-> arg[ 19]: -XX:SurvivorRatio=2

-> arg[ 20]: -XX:TargetSurvivorRatio=90

-> arg[ 21]: -XX:SoftRefLRUPolicyMSPerMB=1

-> arg[ 22]: -verbose:gc

-> arg[ 23]: -Dsys.global.dir=D:\usr\sap\AM6\SYS\global

-> arg[ 24]: -Dapplication.home=D:\usr\sap\AM6\DVEBMGS00\exe

-> arg[ 25]: -Djava.class.path=D:\usr\sap\AM6\DVEBMGS00\exe\jstartup.jar;D:\usr\sap\AM6\DVEBMGS00\exe\jvmx.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.

-> arg[ 26]: -Djava.library.path=C:\j2sdk1.4.2_13-x64
jre\bin\server;C:\j2sdk1.4.2_13-x64
jre\bin;C:\j2sdk1.4.2_13-x64
bin;D:\usr\sap\AM6\DVEBMGS00\j2ee\os_libs;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;D:\usr\sap\AM6\SYS\exe\uc\NTAMD64

-> arg[ 27]: -Dmemory.manager=2048M

-> arg[ 28]: -Xmx2048M

-> arg[ 29]: -Xms2048M

-> arg[ 30]: -Xss2M

-> arg[ 31]: -DLoadBalanceRestricted=no

-> arg[ 32]: -Djstartup.mode=JCONTROL

-> arg[ 33]: -Djstartup.ownProcessId=5024

-> arg[ 34]: -Djstartup.ownHardwareId=S1995887561

-> arg[ 35]: -Djstartup.whoami=server

-> arg[ 36]: -Djstartup.debuggable=no

-> arg[ 37]: -Xss2m

-> arg[ 38]: -DSAPINFO=AM6_00_server

-> arg[ 39]: -DSAPSTART=1

-> arg[ 40]: -DCONNECT_PORT=65000

-> arg[ 41]: -DSAPSYSTEM=00

-> arg[ 42]: -DSAPSYSTEMNAME=AM6

-> arg[ 43]: -DSAPMYNAME=coeabacrm01_AM6_00

-> arg[ 44]: -DSAPPROFILE=D:\usr\sap\AM6\SYS\profile\AM6_DVEBMGS00_coeabacrm01

-> arg[ 45]: -DFRFC_FALLBACK=ON

-> arg[ 46]: -DFRFC_FALLBACK_HOST=localhost

-> arg[ 47]: -DSAPSTARTUP=1

-> arg[ 48]: -DSAPSYSTEM=00

-> arg[ 49]: -DSAPSYSTEMNAME=AM6

-> arg[ 50]: -DSAPMYNAME=coeabacrm01_AM6_00

-> arg[ 51]: -DSAPDBHOST=COEBLADE11

-> arg[ 52]: -Dj2ee.dbhost=COEBLADE11

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

CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources

CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain

CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub

CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS

CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices

CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile

CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup

CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue

CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode

CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode

CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations

CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto

[Thr 6060] JHVM_LoadJavaVM: Java VM created OK.

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

JHVM_BuildArgumentList: main method arguments of node [server0]

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

[Thr 3144] Fri Sep 17 05:23:27 2010

[Thr 3144] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes

[Thr 3144] Fri Sep 17 05:23:28 2010

[Thr 3144] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework

[Thr 3144] JLaunchISetClusterId: set cluster id 2640850

[Thr 3144] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]

[Thr 3144] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]

Fri Sep 17 05:23:48 2010

24.333: [GC 24.334: [DefNew: 174592K->15859K(261888K), 0.1782475 secs] 174592K->15859K(2009856K), 0.1790297 secs]

Fri Sep 17 05:23:58 2010

34.670: [GC 34.670: [DefNew

Fri Sep 17 05:23:59 2010

: 190451K->16956K(261888K), 0.1168408 secs] 190451K->16956K(2009856K), 0.1169604 secs]

Fri Sep 17 05:24:05 2010

41.381: [GC 41.381: [DefNew: 191548K->19370K(261888K), 0.1016126 secs] 191548K->19370K(2009856K), 0.1017180 secs]

Fri Sep 17 05:24:15 2010

51.269: [GC 51.269: [DefNew: 193962K->24049K(261888K), 0.1669927 secs] 193962K->24049K(2009856K), 0.1671548 secs]

Fri Sep 17 05:24:24 2010

60.407: [GC 60.408: [DefNew: 198641K->25291K(261888K), 0.1216954 secs] 198641K->25291K(2009856K), 0.1219390 secs]

[Thr 4492] Fri Sep 17 05:24:34 2010

[Thr 4492] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver

[Thr 4492] JHVM_RegisterNatives: registering methods in com.sap.i18n.cp.ConverterJNI

[Thr 4492] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.engine.Compress

Fri Sep 17 05:24:35 2010

70.699: [GC 70.699: [DefNew: 199883K->34894K(261888K), 0.1103559 secs] 199883K->34894K(2009856K), 0.1104277 secs]

Fri Sep 17 05:24:43 2010

78.721: [GC 78.721: [DefNew: 209486K->48536K(261888K), 0.2032144 secs] 209486K->48536K(2009856K), 0.2032973 secs]

Fri Sep 17 05:24:45 2010

81.313: [GC 81.313: [DefNew: 223128K->51599K(261888K), 0.1602039 secs] 223128K->51599K(2009856K), 0.1602827 secs]

[Thr 852] Fri Sep 17 05:24:47 2010

[Thr 852] JHVM_RegisterNatives: registering methods in com.sap.security.core.server.vsi.service.jni.VirusScanInterface

[Thr 336] Fri Sep 17 05:24:51 2010

[Thr 336] ***LOG Q0I=> NiPGetHostByName2: hostname 'amsjudev1' not found: gethostbyname_r (11004: WSANO_DATA: Valid name, no data record of requested type) [ninti.c 361]

[Thr 336] *** ERROR => GwIConnect: GwConnect to amsjudev1 / sapgw00 failed (rc=NIEHOST_UNKNOWN) [gwxx.c 296]

[Thr 336] ***LOG S0T=> GwIConnect, GwConnect (-0002) [gwxx.c 297]

[Thr 336] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 299]

[Thr 336] ***LOG S0S=> GwIConnect, GwConnect (sapgw00) [gwxx.c 301]

[Thr 336] ***LOG S90=> SAP_STINIT3, GwIConnect ( 664) [r3cpic.c 2006]

[Thr 336]

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

*

[Thr 336] * LOCATION CPIC (TCP/IP) on local host with Unicode

[Thr 336] * ERROR hostname 'amsjudev1' unknown

[Thr 336] *

  • TIME Fri Sep 17 05:24:51 2010

[Thr 336] * RELEASE 700

[Thr 336] * COMPONENT NI (network interface)

[Thr 336] * VERSION 38

[Thr 336] * RC -2

[Thr 336] * MODULE ninti.c

[Thr 336] * LINE 361

[Thr 336] * DETAIL NiPGetHostByName2: hostname 'amsjudev1' not found

[Thr 336] * SYSTEM CALL gethostbyname_r

[Thr 336] * ERRNO 11004

[Thr 336] * ERRNO TEXT WSANO_DATA: Valid name, no data record of requested type

[Thr 336] * COUNTER 1

[Thr 336] *

[Thr 336] *****************************************************************************

Thanks in advance...

Regards,

Suman Sengupta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Suman,

From the trace I see that are using wrong java parameters.

XX:MaxPermSize=192m -XX:PermSize=192m.

Please go through sap note 723909 and make sure that all the parameters are setup correctly. After the making these changes via configtool please restart the engine and if you are facing the same issue

Please post the latest trace file. Also please post contents of dev_ms

Best Regards

Sajjan Kumar

Former Member
0 Kudos

Hi,

I have the same error when I trying to start system after system copy (ERP 6.0, NT x64, Oracle, system copy was completed successfully).

Profiles, configtool and offlinecfgeditor has been checked, kernel updated...

Error (current host is YYYY):

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

*

[Thr 3160] * LOCATION CPIC (TCP/IP) on local host with Unicode

[Thr 3160] * ERROR hostname 'XXXX' unknown

[Thr 3160] *

  • TIME Tue Oct 19 13:00:19 2010

[Thr 3160] * RELEASE 700

[Thr 3160] * COMPONENT NI (network interface)

[Thr 3160] * VERSION 38

[Thr 3160] * RC -2

[Thr 3160] * MODULE ninti.c

[Thr 3160] * LINE 361

[Thr 3160] * DETAIL NiPGetHostByName2: hostname 'XXXX' not found

[Thr 3160] * SYSTEM CALL gethostbyname_r

[Thr 3160] * ERRNO 11004

[Thr 3160] * ERRNO TEXT WSANO_DATA: Valid name, no data record of requested type

[Thr 3160] * COUNTER 1

[Thr 3160] *

[Thr 3160] *****************************************************************************

[Thr 7064] *** ERROR => GwIConnect: GwConnect to XXXX / sapgw01 failed (rc=NIEHOST_UNKNOWN) [gwxx.c 296]

[Thr 7064] ***LOG S0T=> GwIConnect, GwConnect (-0002) [gwxx.c 297]

[Thr 7064] ***LOG S0R=> GwIConnect, GwConnect () [gwxx.c 299]

[Thr 7064] ***LOG S0S=> GwIConnect, GwConnect (sapgw01) [gwxx.c 301]

[Thr 7064] ***LOG S90=> SAP_STINIT3, GwIConnect ( 664) [r3cpic.c 2006]

[Thr 7064]

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

Please anybody help. Thanks

Edited by: Anton Maiorov on Oct 19, 2010 12:17 PM

Edited by: Anton Maiorov on Oct 19, 2010 12:18 PM

Former Member
0 Kudos

Hi Anton,

This error means that the dispatcher can not able to connect in the host

As per note #63342 the code NIEHOST_UNKNOWN is a "Host name unknown".

This means that you can be facing some name resolution issue in your

network.

I suggest for you make sure if there is no connectivity problem between

the instance and the message server. if the issue occurs again, please,

upload in this message the message server trace file (dev_ms) and server0 trace file let me

check if there is any issue in the message server side.

Best Regards

Sajjan Kumar