cancel
Showing results for 
Search instead for 
Did you mean: 

JSPM error on iSeries - "Cannot determine OS version from command uname"

Former Member
0 Kudos

Hi there,

We have installed SAP PI 7.1 on an iSeries 6.1 server and we are now getting an error with the JSPM.

It seems the codepage is wrong and it is causing certain characters in

the running scripts to change and thereby making the scripts fail.

We presume that because of the CCSID code some SAP applications

are not able to determine the OS types and this is causing the scripts

to fail.We determine this from the error message in the log:

The execution ended in error.

Cannot initialize application data.

Could not detect operating system.

Cannot determine OS version from command uname.

Here is the log:

JSPM_MAIN_1_08.LOG 

<!LOGHEADER[START]/>

<!HELP[Manual modification of the header may cause parsing problem!]/>

<!LOGGINGVERSION[1.5.7.1006]/>

<!NAME[/usr/sap/PIP/DVEBMGS00/j2ee/JSPM/log/log_2009_02_19_14_33_16/JSPM_MAIN_1_08.LOG]/>

<!PATTERN[JSPM_MAIN_1_08.LOG]/>

<!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %m)]/>

<!ENCODING[UTF8]/>

<!LOGHEADER[END]/>

Feb 25, 2009 7:34:03 PM [Info]: JSPM version is 7.10.4.0.2.4.9.

Feb 25, 2009 7:34:03 PM [Info]: Phase JSPM/JSPMPhases/JSPM_MAIN has been started.

Feb 25, 2009 7:34:03 PM [Info]: Phase type is com.sap.sdt.jspm.phases.PhaseTypeJSPM.

Feb 25, 2009 7:34:03 PM [Info]: Starting Initialize dialog...

Feb 25, 2009 7:34:04 PM [Info]: Detecting system parameters...

Feb 25, 2009 7:34:04 PM [Info]: You can find additional information in log file /usr/sap/PIP/DVEBMGS00/j2ee/JSPM/log/log_2009_02_19_14_33_16/DETECT_SYSTEM_PARAMETERS_07.LOG.

Feb 25, 2009 7:34:04 PM [Error]: Exception has occurred during the execution of the phase.

Feb 25, 2009 7:34:04 PM [Error]: Cannot determine OS version from command uname.

Feb 25, 2009 7:34:04 PM [Error]: Could not detect operating system.

Feb 25, 2009 7:34:04 PM [Error]: Cannot initialize application data.

Feb 25, 2009 7:34:04 PM [Info]: Phase JSPM/JSPMPhases/JSPM_MAIN has been completed.

Feb 25, 2009 7:34:04 PM [Info]: Start time: 2009/02/25 19:34:03.

Feb 25, 2009 7:34:04 PM [Info]: End time: 2009/02/25 19:34:04.

Feb 25, 2009 7:34:04 PM [Info]: Duration: 0:00:01.014.

Feb 25, 2009 7:34:04 PM [Info]: Phase status is error.

Does anyone have any idea how this can be solved? I have already written a customer message to SAP but am still waiting for feedback. I have also followed a good handful of SAP notes but no luck yet.....

Any help would be greatly appreciated

Regards

Lynton

Accepted Solutions (0)

Answers (1)

Answers (1)

JPReyes
Active Contributor
0 Kudos

Uname should gave the OS info to JSPM... if you do a uname -o at OS level what happen?

Also can you check DETECT_SYSTEM_PARAMETERS_07.LOG an let us know whats the error?

Regards

Juan

Former Member
0 Kudos

Hi there,

If we run "uname" at the OS level it works 100%.

From my understanding the CCSID is 500 for the install. That is done by following the SAP PI 7.1 install manual and running a command like follows:

CRTUSRPRF USRPRF(SAPIUSR) PASSWORD(SAP) USRCLS(SECOFR) TEXT('Test User for SAP Installation') SPCAUT(USRCLS) LANGID(ENU) CNTRYID(US) CCSID(500)

What is interesting is that even if we change the code page of the user to 37 it seems the JSPM task that runs goes back to code page 500 and that is causing the scripts to fail.

Here is the LOG you asked for......and I have put some more logs below that....

Thanks for the help on this, much appreciated

Lynton

Here is the DETECT_SYSTEM_PARAMETERS log file....(DETECT_SYSTEM_PARAMETERS_01.LOG)

<!LOGHEADER[START]/>

<!HELP[Manual modification of the header may cause parsing problem!]/>

<!LOGGINGVERSION[1.5.7.1006]/>

<!NAME[/usr/sap/PIP/DVEBMGS00/j2ee/JSPM/log/log_2009_02_26_13_47_26/DETECT_SYSTEM_PARAMETERS_01.LOG]/>

<!PATTERN[DETECT_SYSTEM_PARAMETERS_01.LOG]/>

<!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %m)]/>

<!ENCODING[UTF8]/>

<!LOGHEADER[END]/>

Feb 26, 2009 1:57:04 PM [Info]: Initializing JSPM data model...

Feb 26, 2009 1:57:04 PM [Info]: Parameter /J2EE/StandardSystem/DefaultProfilePath has been detected. Parameter value is /usr/sap/PIP/SYS/profile/DEFAULT.PFL.

Feb 26, 2009 1:57:04 PM [Info]: Instance SCS01 with profile /usr/sap/PIP/SYS/profile/PIP_SCS01_SAPQA, start profile <null>, and host SAPQA has been detected.

Feb 26, 2009 1:57:04 PM [Info]: Instance DVEBMGS00 with profile /usr/sap/PIP/SYS/profile/PIP_DVEBMGS00_SAPQA, start profile <null>, and host SAPQA has been detected.

Feb 26, 2009 1:57:05 PM [Info]: Found local instance 00 on host SAPQA.

Here is the JSPM log file....(JSPM_MAIN_1_01.LOG)

<!LOGHEADER[START]/>

<!HELP[Manual modification of the header may cause parsing problem!]/>

<!LOGGINGVERSION[1.5.7.1006]/>

<!NAME[/usr/sap/PIP/DVEBMGS00/j2ee/JSPM/log/log_2009_02_26_13_47_26/JSPM_MAIN_1_01.LOG]/>

<!PATTERN[JSPM_MAIN_1_01.LOG]/>

<!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %m)]/>

<!ENCODING[UTF8]/>

<!LOGHEADER[END]/>

Feb 26, 2009 1:57:04 PM [Info]: JSPM version is 7.10.4.0.2.4.9.

Feb 26, 2009 1:57:04 PM [Info]: Phase JSPM/JSPMPhases/JSPM_MAIN has been started.

Feb 26, 2009 1:57:04 PM [Info]: Phase type is com.sap.sdt.jspm.phases.PhaseTypeJSPM.

Feb 26, 2009 1:57:04 PM [Info]: Starting Initialize dialog...

Feb 26, 2009 1:57:04 PM [Info]: Detecting system parameters...

Feb 26, 2009 1:57:04 PM [Info]: You can find additional information in log file /usr/sap/PIP/DVEBMGS00/j2ee/JSPM/log/log_2009_02_26_13_47_26/DETECT_SYSTEM_PARAMETERS_01.LOG.

Feb 26, 2009 1:57:05 PM [Error]: Exception has occurred during the execution of the phase.

Feb 26, 2009 1:57:05 PM [Error]: Cannot determine OS version from command uname.

Feb 26, 2009 1:57:05 PM [Error]: Could not detect operating system.

Feb 26, 2009 1:57:05 PM [Error]: Cannot initialize application data.

Feb 26, 2009 1:57:05 PM [Info]: Phase JSPM/JSPMPhases/JSPM_MAIN has been completed.

Feb 26, 2009 1:57:05 PM [Info]: Start time: 2009/02/26 13:57:04.

Feb 26, 2009 1:57:05 PM [Info]: End time: 2009/02/26 13:57:05.

Feb 26, 2009 1:57:05 PM [Info]: Duration: 0:00:00.870.

Feb 26, 2009 1:57:05 PM [Info]: Phase status is error.

Former Member
0 Kudos

Hi there,

JSPM is working again......

If the user receives the error: "Cannot determine OS version from

command uname" the problem is because they are using the wrong "shell"

when running the GO script.

The installation guide for SAP PI 7.1 on iSeries is also a little

confusing. There is alot of reference to "QShell" and even a section

on "Installing the QShell" so most people (like us) would assume we

should use "QShell" to run the GO script.

BUT what we should actually be using is "Qp2Term" instead of "QShell"

to run the GO script. This solves the problem and lets the JSPM run

happily.

Lynton