cancel
Showing results for 
Search instead for 
Did you mean: 

SUM error: libsapnwrfc.so could not be loaded

j_bayrhammer
Participant
0 Kudos

Hello,

I'm trying to update a Netweaver 7.4 System with kernel 742 patchlevel 200 from to SPS12 (SAPKB74008 to SAPKB74012 etc).

For this I want to use SUM SUM10SP14_3-20006540.SAR.

I start SUM and it works until phase PREP_IMPORT/NEWKERNLIB_CHK1.

Error in SAPup.ECO:

Could not load program tp: Dependent module libsapnwrfc.so could not be loaded.

Could not load module libsapnwrfc.so

System error: no such file or Directory.

But: this file exists in /sapmnt/SID/exe/uc/rs6000_64. And it exists in /usr/sap/SID/SUM/SUM/abap/exe.

I followed note 1739797 and extracted nwrfcsdk in abap/exe and linked library files  into abap/exe/nwrfsdk/lib/.

But still is not working.

Where SUM is looking for these libraries?

What is missing? SAP System is up and running, so problem is only with SUM.

Same Problem is with SUM10SP13-9.

Regards,

Julia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Julia,

Did exactly the same SP stack last week with SUM 1.0.14.2.

Couple of things to ask you to check.

1. You are running SUM as <sid>adm ?

2. As <sid>adm, run "which libsapnwrfc.so". Do you get the path of the libsapnwrfc.so displayed ?

eg: /usr/sap/XXX/SYS/exe/uc/rs6000_64/libsapnwrfc.so

3. Please check the permissions of the libsapnwrfc.so file.

4. Please check your environment variables and ensure that DIR_LIBRARY and LIBPATH are correctly set.

eg:

DIR_LIBRARY=/usr/sap/XXX/SYS/exe/run

LIBPATH=/usr/lib:/lib:/usr/sap/XXX/SYS/exe/run:/usr/sap/XXX/SYS/exe/uc/rs6000_64:/oracle/client/11x_64/instantclient

5. Please check that you sapcpe is properly replicating binaries.

Please let us know how you get on.

KR,

Amerjit

j_bayrhammer
Participant
0 Kudos

Hello,

content of NEWKERNLIBCHK.LOG is

4 ETQ399 Checking for library file '/usr/sap/SID/SUM/SUM/abap/exe/libsapucum.so'

4 ETQ399 File '/usr/sap/SID/SYS/exe/uc/rs6000_64/libsapucum.so' already exists - skipping copy.

4 ETQ399 Trying 'tp -V' from directory /usr/sap/SID/SUM/SUM/abap/exe without environment adaption to see if all libraries are there.

3 ETQ120 20151104133014: PID 7471218 execute '/usr/sap/SID/SUM/SUM/abap/exe/tp -V', output written to '/usr/sap/SID/SUM/SUM/abap/log/SAPup.ECO'.

3WETQ122 20151104133014: PID 7471218 exited with status 255 (time: 0.000/0.000/0.020 real/usr/sys)

1EETQ399 Last error code set is: Process /usr/sap/SID/SUM/SUM/abap/exe/tp exited with 255, see '/usr/sap/SID/SUM/SUM/abap/log/SAPup.ECO' for details

1EETQ204 Upgrade phase "NEWKERNLIB_CHK1" aborted with severe errors ("20151104133014")

So SAPup.ECO is relevant.

I run SUM as sidadm, starting in screen on server with ./STARTUP and connecting with ./DSUGui via remote system.

"which libsapnwrfc.so" gives:

sidadm> which libsapnwrfc.so

/usr/sap/SID/SYS/exe/uc/rs6000_64/libsapnwrfc.so

Permission is

lrwxrwxrwx sidadm sapsys libsapnwrfc.so

sidadm> echo $DIR_LIBRARY

/usr/sap/SID/SYS/exe/run

SIDadm> echo $LIBPATH

/usr/sap/SID/DVEBMGS00/sec/SLL:/usr/lib:/lib:/usr/sap/SID/SYS/exe/run:/usr/sap/SID/SYS/exe/uc/rs6000_64:/oracle/client/11x_64/instantclient

"sapcpe is properly replicating binaries": even if I extract kernel again in abap/exe the error still exits.

So I've got no idea what to check.

How can I check if sidadm can load this library?

Regards,

Julia

j_bayrhammer
Participant
0 Kudos

Hello,

I tried too:

sidadm> genkld | grep libsap

90000000bfcd000   8c2fa1 /usr/sap/SID/SYS/exe/run/libsapnwrfc.so

90000000b630000   99cb7a /usr/sap/SID/DVEBMGS00/exe/libsapnwrfc.so

90000003d45c000   8c30b3 /usr/sap/SID/SUM/SUM/abap/bin/libsapnwrfc.so

Former Member
0 Kudos

Hey Julia,


1. Please upload the SAPup.ECO file or the error excerpt from the file.

In the above file you will also see the environment variables that are set when the "tp -V" command is being executed.

Bear in mind your error from your initial posting "no such file or directory"

2. I see that when you've listed permissions for the libsapnwrfc.so file that it's a sym link. Where does this sym link point to and what are the permissions of the file it points to ?

3. ldd libsapnwrfc.so will show you if the file is loadable

KR,

A.

j_bayrhammer
Participant
0 Kudos

Hello,

I solved the problem with this "workaround":

On speration system I switched into root, opened a screen and in this screen I started ./STARTUP as sidadm.

Appearently profiles are not moved into screen-session if I open screen-session as sidadm.

Strange.

Regards,

Julia

Former Member
0 Kudos

Hi Julia,

Thanks for the feedback.

That's odd as I use screen for all my long running interventions.

When you switched to sidadm did you do a straight "su sidadm" or did you do a "su - sidadm" ?

KR,

Amerjit

j_bayrhammer
Participant
0 Kudos

Hello Amerjit,

I use screen for all my long running interventions too, but I can't remember such a problem in past.

I always use "su - sidadm" so this was really suprising to me, that this does not work with Screen.

Regards,

Julia

j_bayrhammer
Participant
0 Kudos

Another workaround my AIX colleagues told me:

set ENV variable in .profile so .profile will be loaded by switching into screen.

/home/sidadm/.profile -> add:

export ENV=$HOME/.profile

SAP recommends to use the SUM the new way with "./STARTUP confighostagent SID" and using SUM via HTTP / Browser.

Regards,

Julia

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Julia,

Please have a look at  NEWKERNLIBCHK.LOG it would be helpful

you will find this file in /usr/sap/SID/SUM/SUM/abap/log folder.

Regards

Chetan