Blogs

Upgrade SAP CE 7.2 on AWS Cloud to SP03
Frank Schuler Active Contributor Bronze: 250-499 points
Business Card
Company: Comprise Limited
Posted on Sep. 06, 2010 07:41 AM in Composition Environment (CE)

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share

If you been installing an SAP CE 7.2 system on an 32-Bit Windows Server on a Amazon Web Service cloud system but failed upgrading it to SP03 then this blog is for you. The reason the upgrade initially fails is, because the kernel upgrade fails upgrading certain dlls and you will se the following error message:

Upgrading certain dlls fails 

However, if you were able to solve this, you would run into another problem that is caused by insufficient Java heap memory due to a formula to calculate this type of memroy that is unsuited for a 32-Bit Windows Server Amazon Web Service cloud installation and you will see the following error message:

The J2EE server crashed during the upgrade 

Having a look into the developer trace of the J2EE server process would reveal that in fact it ran out of memory:

The developer trace of the J2EE server process shows the problem

So lets change this and two other parameters that could prevent the upgrade from beeing successfull and start the installation all over again. Start the Config Tool:

Start the Config Tool

In the Config Tool navigate to cluster-data -> template -> instance and chose the tab for the VM Parameters. There you see the unsuited calculation. To change this enter 1024 as the Custom Value for the maxHeapSize parameter:

Extend the maximal allowed heap size

Then navigate to cluster-data -> template -> services -> classpath_resolver and set 256 as the value for javac.Xmx, which is the heap size for the Java compiler:

Set the heap size for the java compiler

Save your change and restart the cluster as the Config Tool tells us to do.

Next we have to adjust the cache size of the MaxDB database. For this launch the Database Manager, navigate to Configuration -> Parameters and change the CacheMemorySize parameter to 8192:

Reduce the database cache 

Now we can (re-) start the upgrade. To do so start the SAP Java Support Package Manager (JSPM):

Start JSP via go.bat

Login as administrator or user <SID>adm. (Your SAP CE 7.2 J2EE server has to be up and running for this.) If you loged in as administrator JSPM would complain that you should login as user <SID>adm but in fact it makes no difference for the upgrade:

Login to JSPM as administrator 

Select "Support and Enhancement Package Stack" as the package type you want to apply:

Select package type 

Slect "Service market place" as the source for the archives to apply. That way JSPM will download the required support package stack automatically:

Select the source for the support package stack

To enable JSPM to download the support package stack you have to provide your SAP service market place user and password and if required your proxy information:

Provide your SAP service market place credentials

Next you tell JSPM to search for the latest patches:

Let JSPM check for the latest patches

First thing JSPM checks whether it is up-to-dateStart JSPM via go.bat and if not upates itself:

JSPM updates itself if necessary

For this JSPM generates an import queue as usual, which you have to confirm:

 JSPM import queue

It won't be long until JSPM deployed the new version of itself and required to be restarted:

Restart JSPM

You wouldn't have to restart it manually but it restarts automatically. This takes a minute, so just be patient. Finally you will have to login as before, select the same package type and specify the SAP service market place as the source for the support package stack again. JSPM remembered your SAP service market place user, but you have to enter your password again. Also you have to tell JSPM again to search for the latest patches. After a while JSPM comes up with a huge list of upates, including kernel updates:

Confirm the support package stackConfirm the support package stack

Next JSPM downloads all the software archives which can be a while:

JSPM downloads the software archives that comprise the support package stack

However, eventually JSPM comes up with the queue for deploying the full support package stack which you need to confirm again:

Confirm the suport package stack queue

Next JSPM shuts down the J2EE engine to upgrade the SAP kernel. Unfortunately, as mentioned earlier, this will not succeed but result in an error:

Error since the kernel cannot be replaced 

Fortunately we are talking SAP software so we just follow the link to the Log Analyzer. That tell us to look into a log at Logfile location: \jspmlogs\JSPM_MAIN_1_01.LOG. There we find the following:

JSPM log 

That means copying some files from a shadow kernel directory (D:\usr\sap\<SID>\J00\j2ee\JSPM\tmp\newKernel_01\kernel) to the actual kernel directory (D:\usr\sap\CE1\<SID>\exe\uc\NTI386) did not work. While not knowing the reason for this problem, we don't bother but just copy the new kernel manually. When being asked whether to replace an existing file we do so and also for all other occasions:

 Replace all files with their upgrades versions

During the copying we run into the same problems as JSPM:

Blocked files

We cancel the copying, rename the original file, in this case icudt34.dll to icudt34.dll.del:

Rename all blocked files and copy again 

and start the copying again. We repeat this until the kernel is fully upgraded. We then proceed with JSPM and after a couple of hours and some automatic restarts of the SAP J2EE server the upgrade fineshed successfully:

JSPM completed the upgrade

With this we got an mostly up-to-date SAP CE 7.2 system in the cloud. However be aware that there are already quite a few patches available for CE 7.2 SP03. Therefore, if you run into a strange problem with CE 7.2 SP03, check for those patches.

Frank Schuler  Active Contributor Bronze: 250-499 points is a director for architecture consulting with www.compriseit.com specialized in composite applications.


Comment on this article
Comment on this weblog
Showing messages 1 through 2 of 2.

Titles Only Main Topics Oldest First

  • Impact of Microsoft patch KB2345886 on SAP CE 7.2 SP03 systems
    2010-12-23 11:22:24 Frank Schuler Business Card [Reply]

    Reproducably the Microsoft patch KB2345886 has been preventing one of our SAP CE 7.2 SP03 systems from starting. The SAP CE 7.2 SP3 system runs on top of a x86-based versions of Windows Server 2003 SP2. Please check KB2345886 on MSDN for more details concerning this patch and whether you need it.
  • Platform is irrelevant for some of these issues
    2010-09-06 17:13:31 Martin English Business Card [Reply]

    FWIW, I had similar problems when upgrading CE7.1 to SP03 for a recent xMii rollout. The systems were being installed on x64 Wintel systems running on a vmware-type platform. Basically, I ended up following the same process as you, from the update of the JSPM.


    The point being, Amazon, by providing an Infrastructure as a Service environment, provides complete control over the Amazon Image, so you can adjust it to make it as identical as possible to the production environment.


Showing messages 1 through 2 of 2.