Skip to Content
avatar image
Former Member

Can't start Shadowinstance during EHP Upgrade

Hello SCN,

i'm trying to Upgrade ERP6.0 EHP5 to EHP6 on Windows 2008 and MaxDB 7.9.08.08.

In Phase MAIN_SHDPREPUT/START_SHDI_PREPUT i get Severe Error becuase the shadow instance won't get up.


Error

Severe error(s) occurred in phase MAIN_SHDPREPUT/START_SHDI_PREPUT!

Last error code set: Shadow instance couldn't be started, check 'STARTSSC.LOG' and 'DEVTRACE.LOG': RFC login to system EMT ashost SAPTEST01 nr 02 gwhost SAPTEST01 gwservice sapgw02 failed with code 1 key

RFC_COMMUNICATION_FAILURE: <br/> LOCATION CPIC (TCP/IP) on local host with Unicode<br/> ERROR partner '192.168.97.2:3302' not reached<br/> TIME Wed Nov 27 15:05:01 2013<br/> RELEASE 721<br/> COMPONENT NI (network interface)<br/> VERSION 40<br/> RC -10<br/> MODULE nixxi.cpp<br/> LINE 3285<br/> DETAIL NiPConnect2: 192.168.97.2:3302<br/> SYSTEM CALL connect<br/> ERRNO 10061<br/> ERRNO TEXT WSAECONNREFUSED: Connection refused<br/> COUNTER 66<br/>


dev_w0 of shadow instance says:

"

C  *** ERROR => Connect to database failed, rc = -10757 (XUSER error (the USERKEY is unknown))

[dbsdbsql.cpp 115]

C  Try to connect (SQLOPT) on connection 0 ...

C  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Authentication failed (Cannot eval connect packet.).))

[dbsdbsql.cpp 139]

B  ***LOG BV3=> severe db error -10709    ; work process is stopped [dbsh        1241]

B  ***LOG BY2=> sql error -10709 performing CON [dblink      544]

B  ***LOG BY0=> Connection failed (RTE:Authentication failed (Cannot eval connect packet.).) [dblink      544]

M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c  1497]

M  in_ThErrHandle: 1

M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c  11348]

M  "

i did some research and found SAP Note 1444798:

Note 1444798

I) Creating the XUSER key "UPGSHD" on the remote shadow instance

For SAP upgrades or Enhancement Package installations with SAP kernel 7.20 or higher (that is, NetWeaver 7.0 or higher, Enhancement Package 2 as well as BS 7i2010e or higher), you must create the XUSER key UPGSHD in the remote shadow instance. This should occur immediately after the PREPARE.

To do so, execute the following command as the SAP system administrator sidadm on the host of the remote shadow instance:

  xuser -U UPGSHD -u SAP<SID>SHD,<password> -d <DBSID>

  -n <DBHostname> -S SAPR3 -t 0 -I 0 set

For Windows, you must also execute the following command:

  xuser -c SAPService<SID> -U UPGSHD -u SAP<SID>SHD,<password>

  -d <DBSID> -n <DBHostname> -S SAPR3 -t 0 -I 0 set

The password is the password specified in the phase INITSHD.

Check the existence of the XUSER key after its creation using:

  xuser -U UPGSHD list

For Windows, use the following also:

  xuser -c SAPService<SID> -U UPGSHD list

If the XUSER key does not exist,

starting the shadow instance leads to the following error (log file of

work processes):

  *** ERROR => Connect to database failed,

  rc = -10757 (XUSER error (the USERKEY is unknown))

After completing the SAP upgrade or the Enhancement Package installation, you must delete the XUSER key:

  xuser -U UPGSHD clear

For Windows, also:

  xuser -c SAPService<SID> -U UPGSHD clear

I tryed this Solution and added the Xuser Keys for UPGSHD

When i try to test connection i get this Error:

dbmcli -d EMT -U UPGSHD

Error! Connection failed to node SAPTEST01 for database EMT:

-24950, ERR_USRFAIL: User authorization failed.

do you have any ideas?

best regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 03, 2013 at 12:09 PM

    Hi Michael,

    Please check the logs in the work directory like disp+work to know the reason for the issue.

    And also please try if you are able to start the system manually.

    Kindly refer the Logs noted in SAPEhpi.log files of the upgrade tool directory.

    And let me know the output for the same.

    Many Thanks

    Ajitabh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Michael,

      1. As per your dev_w0 logs Maybe your MaxDB software directory is not accessible. Can you make the permission as 777 and try again.Also try to keep the DVD path smaller.

      2. Suggest you to put the new kernel in the path  /usr/sap/SID/SUM-ehp/abap/exenew and /usr/sap/SID/SUM-ehp/abap/exe and after that restart the SUM tool.


      3.Can you please check and attach the dev_disp trace file in the work directory of the shadow instance if there is some issue in starting the dispatcher

      Also check shadow instance profiles and make sure that there are no duplicate profiles in the profile

      directory. From the SAPup.ECO file, u can find the commands used by the upgrade to start the shadow instance may be u can try to start the shadow instance manually.


      4.Check the SAP Note 525677:Problems when starting Shadow Instance.


      5.Note 39439 might be helpful to recreate the XUSER entries.


      6.Try with the DEFAULT connection for your User YourDomain\SAPServiceSID

      Hope this will work i.e.

      On Windows, the XUSER entries are stored in the registry. For the operating system users <sid>adm and SAPService<SID>, create the XUSER entries mentioned below. As of MaxDB Version 7.5 and above, an operating  system user that has administrator rights can store the XUSER entries  for SAPService<SID>. To do this, use the XUSER option '-c'; for example:

      xuser -c <domain>\SAPService<SID> ...


      Kindly let me know if any of the above Points worked for you.If it worked then please provide the Points for this.

      Many Thanks

      Ajitabh

  • Dec 03, 2013 at 12:19 PM

    Hello Michael,

    what are the test results as per 1444798?

    Check the existence of the XUSER key after its creation using:

      xuser -U UPGSHD list

    For Windows, use the following also:

      xuser -c SAPService<SID> -U UPGSHD list

    Is this check successful? If you try to bring the shadow instance up you got same error about XUSER in dev_w* ?

    I found http://scn.sap.com/docs/DOC-40842 but your error is different:

    "Cannot eval connect packet."

    Is not there any communication problem on your Windows server? Check file for services or perhaps if port is not being used.

    Regards,

    Matus

    Add comment
    10|10000 characters needed characters exceeded

    • Michael, but according to dev_w1.log you are still with client 7.7.7. Did you check note 1357452? You didn't answer if there was recent DB upgrade - maybe you should review all steps cause something is missing here.

      Also:

      C  Try to connect (DEFAULT) on connection 0 ...

      C  *** ERROR => Connect to database failed, rc = -10709 (Connection failed (RTE:Database name is missing))

      [dbsdbsql.cpp 139]

      Check note 39439 and try to create DEFAULT connection in same way.

      Regards,

      Matus