Technical Articles
Upgrading SAP HANA, express edition to SPS04
If you’ve been patiently waiting for the release of SAP HANA, express edition 2.0 SPS04 and are now ready to upgrade your existing HXE instance, this blog post is for you.
I have a similar blog post for an upgrade between revisions here in the context of following the openSAP course and getting a hold of the Cloud Application Programming model wizard.
The same prerequisites apply, only a bit more exaggerated:
- If this is a serious/important machine to you, back everything up. Make sure you can restore everything so that you won’t go around chasing me on social media if something goes horribly wrong. I personally make a copy of the virtual machine if I can.
- This will take time. For me, in the cloud with 40GB of RAM allocated only to this VM it took 1:30hs.
- Add more RAM if you have the chance. If you get an “HTTP communication error” in the middle, lack of resources are a very likely cause. Playing game son you PC while the VM is upgrading on it is not a good idea.
- Make sure you will not run out of disk in the process (a command like df -h can give you a hint – plan to use at least 6GB )
The steps are easy…
You will need to install libatomic1
You will need to be a sudoer for this, By default, in the downloadable virtual machine, hxeadm is a sudoear. In the cloud machines, you need to go back to being root or your admin user (command exit).
sudo zypper addrepo http://download.opensuse.org/distribution/leap/15.0/repo/oss/ oss
sudo zypper install libatomic1
Run the update checker
This will connect to the download repository and start downloading different packages.
If you are not hxeadm, become hxeadm (sudo su – hxeadm ):
export PATH=${PATH}:/hana/shared/HXE/xs/sapjvm_8/bin
/usr/sap/HXE/home/bin/HXECheckUpdate_linux.bin -a
Inflate files
You will now extract the zipped files… (add any other .tgz files you downloaded)
cd /usr/sap/HXE/home/Downloads
tar -xvzf hxe.tgz
tar -xvzf hxexsa.tgz
You can remove the files you downloaded to save space
rm /usr/sap/HXE/home/Downloads/hxe.tgz
rm /usr/sap/HXE/home/Downloads/hxexsa.tgz
Upgrade time!
You also need to be a sudoer now. If you are hxeadm and in a cloud VM, command “exit” will take you back to your root user.
sudo /usr/sap/HXE/home/Downloads/HANA_EXPRESS_20/hxe_upgrade.sh
You will be asked for the passwords of your different admin users (for hxeadm, HXEHana1 is the default password if you haven’t changed … but you should have changed it):
Play time!
After at least an hour and a lot of console output, you should get a nice message
Remember you need to see “1/1” after a started app before you can connect to it:
Troubleshooting
If something goes wrong:
- Gather error messages:
- From the output and the logs. The logs from installation can be found in a file similar to: /var/tmp/hdb_HXE_hdblcm_update_2019-08-02_23.32.28/xs_install_components.log and /var/tmp/hdb_HXE_UpdateRepository_2019-08-02_23.45.28/hdbupdrep.log
- If you get a message that says “to see installation logs use…”, do as it says
- In some cases, command xs logs –recent deploy-service can have some useful info
- Google for your error messages (remove special characters and IDs… you may not be the first one with this problem)
- If you cannot find a response, document what you have done, where (a downloadable VM, a binary install in an alternative OS, a cloud image..), the error messages in those logs, how many attempts you’ve done and any other information that may help the community help you. With all of this info, create a question in the community and tag it SAP HANA, express edition.
Hope it all goes smoothly and you have lots of fun!
Hi Lucia,
Thanks for providing details steps to upgrade HXE addition.
On upgrading process I am getting below error message. Can you please help me to resolve the below issue and continue with upgrade process.
Regards,
Praveer.
Hi Praveer, did you download and unzip eml.tgz too? Is this a local VM or cloud?
Hi Lucia,
This is in local VM.
eml.tgz got downloaded in “/usr/sap/HXE/home/bin/HXECheckUpdate_linux.bin -a” step along with other required packages.
Regards,
Praveer.
Hi Lucia,
I have downloaded and unzip eml.tgz, but still getting the same error.
Regards,
Praveer
Hi Praveer,
We've been unable to reproduce this issues. Can you please share the output of:
Thanks,
Lucia.
Hi,
I had the exactly the same issue. To fix it I downloaded the eml.tgz with the Download Manager that you use to download the VM image. Then I copied the archive into the Downloads folder of the VM and extracted it.
Then the upgraded worked.
Best Regards,
Steffen
This tutorial worked 100% for upgrading SPS04 to latest version with the following comment : I have SHINE installed so I had to download, copy, inflate SHINE also before the upgrade because there is an warning to skip it. After updating HDB, I saw that SHINE update did not upgraded anything whatsoever so the warning may be ignored
Hi guys!
EDIT: (see solution below)
Trying to do the Upgrade in a local VM based setup. Can’t find the updater in bin
UPDATE (fix below)
The update didn’t went well:
Still shows old version
Install check looks nice, version info shows patch version
I guess it’s because one part of the update failed:
There is an error with the certificate validity?
How to fix the upgrade?
Hi Lucia,
I am using the preconfigured VMware image of the SAP HANA Express Edition.
SAP HANA, Express Edition 2.0 SPS05 server-plus-apps version.
SUSE Linux Enterprise Server for SAP Applications 12 SP2.
Downloaded the hxexsa.ova file from the official SAP site.
Yesterday I had done the SAP HANA, Express Edition upgrade from 2.00.054 to 2.00.057 version based on your technical article.
Can you recommend other disk clean-up option like this in the article?
I am thinking like content in the folder (HANA_EXPRESS_20), can it be deleted after successful upgrade:
Is there any additional file system folder which can be checked after upgrade to save some disk space?
During the upgrade in my case disk usage went from 80 GB to 110 GB.
Thanks for your answer.
Laszlo
Hi Laszlo,
As Lucia Subatin (active account) might be busy at Google, here is my comment
Concerning disk space management, suggest to check the (F)AQ on the topic
Hi Denys,
I am appreciate for your help.
Regards,
Laszlo