cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA Express Edition Failed Installation in Ubuntu 18.04

0 Kudos

Hello, I am trying to install SAP HANA Express Edition using HXE on ubuntu. When I run ./setup_hxe.sh installation is failing. Please see the result of log below.

2020-05-07 02:11:54 :          Install version 2.00.045.0000.1575663037
2020-05-07 02:11:54 :          Location: /home/tej/HANA_EXPRESS_20/DATA_UNITS/SAP_HANA_EPM-MDS_10/packages
2020-05-07 02:11:54 :       SAP HANA XS Advanced Runtime
2020-05-07 02:11:54 :          Do not install
2020-05-07 02:11:54 :    Log File Locations
2020-05-07 02:11:54 :       Log directory: /var/tmp/hdb_HXE_hdblcm_install_2020-05-07_02.11.53
2020-05-07 02:11:54 :       Trace location: /var/tmp/hdblcm_2020-05-07_02.11.53_12381.trc
2020-05-07 02:11:54 : Installing components...
2020-05-07 02:11:54 : Installing SAP HANA Database...
2020-05-07 02:11:55 :   Creating System...
2020-05-07 02:11:55 :           Starting external program update-rc.d
2020-05-07 02:11:55 : Resume of SAP HANA Express Edition Installation failed
2020-05-07 02:11:55 :   Installation of SAP HANA Database failed
2020-05-07 02:11:55 :     Installation failed
2020-05-07 02:11:55 :       error installing
2020-05-07 02:11:55 :         Cannot create system
2020-05-07 02:11:55 :           Error checking sapinit
2020-05-07 02:11:55 :             Starting external program update-rc.d
2020-05-07 02:11:55 :               Command line is: update-rc.d -n sapinit defaults
2020-05-07 02:11:55 :               Output line 1: update-rc.d: error: unknown option
2020-05-07 02:11:55 :               Output line 2: usage: update-rc.d [-f] <basename> remove
2020-05-07 02:11:55 :               Output line 3:        update-rc.d [-f] <basename> defaults
2020-05-07 02:11:55 :               Output line 4:        update-rc.d [-f] <basename> defaults-disabled
2020-05-07 02:11:55 :               Output line 5:        update-rc.d <basename> disable|enable [S|2|3|4|5]
2020-05-07 02:11:55 :               Output line 6:              -f: force
2020-05-07 02:11:55 :               Output line 7:
2020-05-07 02:11:55 :               Output line 8: The disable|enable API is not stable and might change in the future.
2020-05-07 02:11:55 :               Program terminated with exit code 1
2020-05-07 02:11:55 :
2020-05-07 02:11:55 : Log file written to '/var/tmp/hdb_HXE_hdblcm_install_2020-05-07_02.11.53/hdblcm.log' on host 'lab'.
2020-05-07 02:11:56 :
2020-05-07 02:11:56 : Failed to install HDB server.
2020-05-07 02:11:56 : #########################################################################
2020-05-07 02:11:56 : # Summary after execution                                                 #
2020-05-07 02:11:56 : #########################################################################
2020-05-07 02:11:56 : Server Installation...(FAIL)
2020-05-07 02:11:56 : XSC Installation...(NOT STARTED)
2020-05-07 02:11:56 : HXE Optimization...(NOT STARTED)
 
dvankempen
Product and Topic Expert
Product and Topic Expert
0 Kudos

You asked a question. Don't forget to mark the answer that helped you most as correct. Thanks!

For the readers, before you leave, don't forget to up/down vote the answers. You can vote on the question too. Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Vitaliy-R
Developer Advocate
Developer Advocate

Hi Tej. It is right there in the output 🙂

...
Command line is: update-rc.d -n sapinit defaults
Output line 1: update-rc.d: error: unknown option
...

If you see in http://manpages.ubuntu.com/manpages/bionic/man8/update-rc.d.8.html#options then it shows option `-n` is not available anymore in 18.04, although it was in http://manpages.ubuntu.com/manpages/xenial/man8/update-rc.d.8.html#options.

Check this post https://blogs.sap.com/2018/07/21/how-to-install-sap-hana-express-edition-2.0-on-ubuntu-18.04-bionic-... by rafael.zanetti , who describes the workaround.

PS. And as denys.kempen said: Ubuntu is not the OS supported by HXE, and its usage with HANA Express is experiemental.

Regards.

dvankempen
Product and Topic Expert
Product and Topic Expert

Hi Tej,

You can follow this tutorial to install SAP Hana, express edition locally:

https://developers.sap.com/group.hxe-install-binary.html

The prerequisites shows that Ubuntu is not supported. You will need to use SLES or RHEL.

tesc
Explorer
0 Kudos

I made a gist for Install SAP HANA 2.0, express edition on Ubuntu 22.04

Configure SAP HANA 2.0, express edition on Ubuntu 22.04 LTS Jammy (github.com)


sudo cp /usr/sbin/update-rc.d /usr/sbin/update-rc.d.orig
sudo sed -i '/^        usage("unknown option");/i \        \if (/^-n$/) { next }' /usr/sbin/update-rc.d