• IDD
  • IDD
  • Skybuffer AI
    • Skybuffer AI Installation and Initial Setup
      • On Business Technology Platform (BTP)
        • Skybuffer AI Installation Guide on BTP
      • On Premise: XSA Runtime and SAP HANA EE
        • Installing SAP HANA Including XS Runtime
        • XS Deployment Process
      • Post Installation User Guide
    • AI Agent
      • AI Agent Configurator
        • Register New AI Agent
        • Intents and Entities Creation
        • Skills Creation and Management
          • Standard Action Types
          • Generative AI Action
          • RAG Action
        • Scheduling
        • Communication Channels
          • Webchat Communication Channel Setup
          • Facebook Messenger Communication Channel Setup
          • Zoom Communication Channel Setup
          • MS Teams Communication Channel Setup
          • Slack Communication Channel Setup
          • Telegram Communication Channel Setup
          • Viber Communication Channel Setup
          • WhatsApp Communication Channel Setup
          • AI Agent Communication Channel Setup
        • Monitor Section
      • Destination Management
      • AI Translate
      • Survey Craft
      • Identity Providers
      • Business AI Scenarios
      • ML Models Hub
      • RAG Document Hub
    • AI Connector
      • AI Connector Configurator
      • AI Connector Logs
      • AWS Integration
      • Google Services Integration
      • Twilio Integration
      • Yandex Services Integration
    • SAP Backend for Business AI
      • Business AI Scenarios Package Administration
        • Installation Guide
        • Uninstallation Guide
      • Business AI Scenarios Package Maintenance Guide
        • Product License
        • Configuration of Email Sending Mechanism
          • Configuration Settings
          • Setup of Specific Email Sending Control
        • Technical User Setup
          • Central oData Service Authorization Role Maintenance
          • Technical User ID Creation
        • Assigning Business AI Scenarios to ABAP RIK Classes
        • Simplified User Creation Scenario Setup (Without Approval Workflow)
          • Maintain and Assign Reference Users for User Creation Scenario
          • Activate Notification for New User Creation (Optional)
        • User Creation Scenario Setup with Approval Workflow
          • Configure Approval Workflow for User Creation Scenario
          • Set Up Approval Steps for Different User Types Creation
    • HOW-TO Guides
      • SAP AI Core Integration. Ollama Server Setup
      • MS SharePoint Integration. Add-in Registration
      • MS Teams Integration. Single Sign-On
        • Create Azure Bot Service
        • Configure Azure Bot Service and Connect to Bot Management App
        • Create Middleware SSO Application
        • Configure Bot Service Application SSO
        • Create Azure AD Enterprise Application for SAP Backend
        • Configure oAuth2 in SAP System
        • Assign Identity Provider and Push Nodejs Configuration
        • Deploy Your App into Microsoft Teams
        • Managing Application Keys
    • Troubleshooting
      • Edge Browser Access Issue
    • Hybrid Chats
      • Hybrid Chats Maintenance Guide
        • Business and Technical Users Setup
          • Create Business and Technical Users
          • Create Business Partners
        • Tenant Configuration
        • Live Pool Management and Configuration
          • Start Live Pool
          • Manage Live Pool
        • System Configuration
          • Configure Status Profile
          • Set Up Technical Messages for Hybrid Chats
        • Hybrid Chats Configuration
        • Hybrid Chats Categorization
          • Categorization Management
          • Categorization Mapping
          • Translate Categories
      • Hybrid Chats User Manual
        • Hybrid Chats
          • HC Archive Mode
          • HC Active Mode
        • HC My Data
          • Edit Personal Data and Profile Picture
          • Default Settings Management
          • Notification and Dialogue Manual Mode Management
          • Quick Replies Management
            • Standard User Mode - Quick Replies
            • Administrator User Mode - Quick Replies
        • HC Analytics
          • HC Analytics
          • Operator Activity Analytics
          • Exit Survey Analytics
        • HC Teams
          • Access HC Teams Application
          • Create New Team
          • Create New Team Member
          • Edit Agent
          • Edit Team Name

XS Deployment Process

155 views 0

Before Start

To avoid issues during the deployment process, please check the following prerequisites before starting the deployment process:

Verify XSA version

You can check the current version XSA runtime and XSA components with xs version and xs lc commands executed with <sid>adm user.

For more details, please check the following SAP notes:

https://me.sap.com/notes/2711421

https://me.sap.com/notes/0003129918

Verify Python runtime availability

See Section: Runtimes Handling.

Deployment Scenarios

For XS deployment process we can consider two possible scenarios:

  1. Regular deployment on machine with possible outside connection
  2. Deployment in an isolated environment

Below we describe each of the scenarios, as well as the additional section concerning Runtimes Handling.

Scenario 1: Regular deployment on machine with possible outside connection

XS Environment Preparation

If necessary, create a new organization and a separate space for installation (other than SAP space) in the XSA Cockpit. For more details on that, see the instructions for SAP HANA and XSA Configuration described in the guide of Installing SAP HANA System Including XS Advanced Runtime, Section Configure SAP HANA and XSA, Steps 1 and 4.

A screenshot of a computer Description automatically generated

Additionally, you can check a list of available spaces from xs cli (i.e. xs command line).

To log in XSA, use the command of xs login 

A screenshot of a computer Description automatically generated

List of available spaces can be found with running the command: xs spaces

A screen shot of a computer Description automatically generated

If necessary, it is possible to switch between spaces: xs target -s <space name>

List of available organizations can be found via: xs orgs 
If necessary, it is possible to switch between spaces: xs target -o <org name>

A screen shot of a computer Description automatically generated

Upload mtar files into the machine. It is recommended to use the home folder of sidadm user

Example:

A black background with white text Description automatically generated

Deployment Process

Once your environment is prepared and the files are uploaded, you can start deploying the files.

The recommended order for deploying Skybuffer AI components is the following:

  1. skybfrxts
  2. skybfryai
  3. skybfryai_py_ai_core
  4. skybfryai_rag_m
  5. botclientconnector

The command to deploy is xs deploy <filename.mtar>

Before you start, please make sure that you are in the right space. You can do so by using the command of xs apps:

A screen shot of a computer Description automatically generated This command makes it possible to see the list of the applications installed. If you see No apps found, that means that the new space is empty and you are on the good path to start deploying (all mtar files available).

If you are updating the space which already has the apps installed, you can check if you are on the right place with the command of xs spaces

Now run the command of xs deploy <filename.mtar>. 

Obraz zawierający tekst, zrzut ekranu, Czcionka, dokument Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

If everything is OK, run this command with all the components to install all Skybuffer archives in the sequence described at the beginning of Deployment Process.

Common Problems during Deployment

Optional service warnings

Obraz zawierający tekst, zrzut ekranu, design Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Warnings 404 regarding optional services can be ignored.

During the first attempt to deploy the Python application, it may fail.
The reason is missing Python 3.9.0 runtime as per log.

Obraz zawierający tekst, zrzut ekranu, Czcionka, czarne Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Obraz zawierający tekst, zrzut ekranu, Czcionka, czarne i białe Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Doublecheck if the Python runtime exists in the proper version 3.9.0.

For more details, see Section: Runtimes Handling.

Once the runtime is available, you can retry deployment.

Obraz zawierający tekst, zrzut ekranu, Czcionka Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Now the next application should be deployed successfully.

Obraz zawierający tekst, zrzut ekranu, czarne Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Application Verification

To check all the apps, run the command of xs apps:

If you check all the applications from the XSA Cockpit, it looks as follows:

The application can be stopped / started from the XSA Cockpit:

In case of any issues, please visit: SAP HANA Developer Guide for SAP HANA XS Advanced Model (SAP Web IDE)

Scenario 2: Deployment in an isolated environment

In an isolated environment, we need to provide all libraries locally. Skybuffer offers an additional application to serve the UI libraries which are usually taken from the Internet.

The recommended order for installation without the Internet is the following:

  1. skybfrxts
  2. xsafecrt
  3. skybfryai
  4. skybfryai_py_ai_core
  5. skybfryai_rag_m
  6. botclientconnector

As you can see, here there is the archive of xsafecrt which was not present in Scenario 1 (with the Internet).

In case skybfryai component was already deployed, and xsafecrt was installed after, then skybfryai must be redeployed.

Deploy xsafecrt

Use the same command as for other archives shown for the previous scenario: xs deploy

Re-deploy skybfryai

Now run the command: xs deploy skybfryai_0.0.1.mtar -e sapui5rt.mtaext

Additional Python runtime must be provided for Skybuffer Python apps.

See Section: Create Python Runtime (Optional)

Generate Python runtime and transfer it into the isolated environment, then add it to the existing runtimes as per the below-mentioned section.

Network Configuration

During the first installation, the following sites should be allowed to connect:

.pytorch.org
.pypi.org
.pythonhosted.org
.python.org
.npmjs.org
.hf.co
.unstructured.io
huggingface.co
.githubusercontent.com

The reason for their necessity is that deployment will fail if the mentioned connection is blocked. These sites are crucial for downloading packages and models during installation and stage python applications.

Customers should provide temporary access to the Internet only during the initial deployment.

Proxy for XSA can also be set as per the official SAP document (Section 2.15 XS CLI Configuration):

SAP HANA XS Command-Line Interface Reference

AI Connector Link

SAP XS Advanced got 2 options to provide connections to deployed applications:

  • Link with the application name + default domain
  • Ports

In both cases, it happens that during the update, the application port/link can change/be missing and can cause problems.

Go to the section of Routes in the selected space in the XS cockpit.

In case a link is missing, recreate it and bind to the app

In case a new port is assigned, the old one should be available, so just create one and bind to the app as well.

Ollama Server Link

Skybuffer AI solution requires a link to Ollama server with the installed language model.

 

Customers can host such server on their own and should know its IP Address/link:PORT

In case Skybuffer resources should be used, please contact us to get the connection details.

Runtimes Handling

Official documentation regarding handling runtimes provided by SAP can be found at:

SAP HANA Administration Guide for SAP HANA Platform

Runtime Verification

Check the available runtimes by using the command: xs runtimes

Obraz zawierający tekst, zrzut ekranu, menu Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Upload Runtime

Make sure that you are on the same location where you placed the Python zip file. Otherwise, provide the full path.

Use the following command: xs create-runtime -p <file name> “Python 3.9.0”
See the example of such command in the following screenshot:

Obraz zawierający tekst, zrzut ekranu Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Create Python Runtime (Optional)

You can download Python environment in version 3.9.0 from official https://www.python.org/

Then configure and install it on XSA manually.
For more details on manual installation, please contact your OS administrator.

Alternatively, you can download an unofficial script from select_python.sh (This applies only for servers that have external Internet connection)

Edit the script configuration and adjust the path:

Obraz zawierający tekst, zrzut ekranu, Czcionka Zawartość wygenerowana przez sztuczną inteligencję może być niepoprawna.

Save the file and run the script as a root

./build_python 3.9.0
Remove the existing runtime with the command xs delete-runtime -i <ID> (check phyton ‘id’ by xs runtime command)
Use the command ./<build_python> that is the name of the saved script 3.9.0 to create the runtime
In case of any questions, contact your OS administrator.

Missing Libraries on Operating System

Potentially, there can be a scenario in which even if you generate a runtime, or use the one already prepared in the new machine, Python app still will crashes during stage or run stage. In this case, please contact your OS admin and ensure that the following libraries are installed:

  • libffi-devel
  • sqlite-devel
  • bzip2-devel
    Depending on your system, you can use the command: yum install <name-devel>
    For more details, contact your OS administrator.

Useful Links:

  1. 2711421 – Installing SAP HANA Extended Application Services, advanced model using the XS Advanced installation media:
    SAP Note 2711421
  2. 3129918 – How to install the latest patch on SAP HANA XSA:
    SAP Note 3129918
  3. Getting Started with Application Development in XS Advanced:
    SAP Help: Application Development
  4. Maintaining XS Advanced Application Runtimes:
    SAP Help: Maintaining Runtimes
  5. Python environment:
    Python Official Website
  6. Script of Python selecting:
    Python Script
  7. The SAP HANA XS Command-Line Interface Reference:                                                                                                                                       SAP HANA XS Command-Line Interface Reference

Was this helpful?

Yes  No
Related Articles
  • Edge Browser Access Issue
  • Troubleshooting
  • Scheduling
  • AI Agent Communication Channel Setup
  • Post Installation User Guide
  • Installing SAP HANA Including XS Runtime
Copyright 2022 Skybuffer.com. All Rights Reserved.