Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
ankitguria
Explorer

Introduction:

In this technical blog, we will detail how to resolve one of the most common issues encountered by SAP UI5/Fiori developers during the deployment of their applications on the Cloud Foundry of SAP BTP.
For the case here, we have the "sh: 1: fiori: not found" error here.

image001.png

Prerequisites:

  • SAP BTP Account- If you prefer to deploy on SAP BTP HANA Cloud. 
  • SAP Business Application Studio (recommended) if deploying to SAP BTP HANA Cloud. Even, in this case, I recommend to use SAP BAS only for deployment .
  • Microsoft Visual Studio Code (optional) can be used for development but specific to this solution just use it as the Integrated Development Environment (IDE). 

Delving into the Error:

Single Targeted vs. Multi-Targeted Applications: There exists a distinction between single targeted and multi-targeted applications. The issue at hand typically arises with .MTAR applications, particularly SAP UI5 multi-target applications.

"sh:1: Fiori: Not Found" Error: Whenever "cf push" command is executed, developers often encounter the "sh: 1: Fiori: Not Found" error, particularly with MTAR applications. This error is not exclusive to SAP but is a common occurrence across various cloud-native applications.

Solutions and steps to be followed:

  • Utilize Microsoft Visual Studio Code or SAP Business Application Studio as the IDE: It's recommended to use either Vs Code or SAP Business Application Studio solely as the Integrated Development Environment (IDE). For deployment purposes, stick to SAP Business Application Studio.
  • Ensure Proper Configuration of Destination Services and HTML5 Services: Make sure to follow the steps for creating Destination Services and HTML5 services in your application as per the provided guidelines.
  • Perform .MTAR Build: Right-click on the mta.yaml file and execute a .MTAR build.
  • Discovering Generated .MTAR File: Following the .MTA.YAML build, the generated .mtar file may have a generic name such as abc_appname.mtar.
  • Deploy .MTAR File: Right-click on the generated .mtar file and select "Deploy MTAR."
  • Monitor Deployment Process: Once the deployment process concludes, log in to the SAP BTP Cloud Cockpit.
  • Accessing applications: In the left-hand menu bar, locate HTML5 applications.
  • Verify Deployed Applications: You should be able to find the deployed applications listed within the HTML5 applications section.

Reference Link for more steps on deployment of Multi Target Applications by SAP: Building and Deploying Multitarget Applications

By following these steps, you can effectively resolve the "sh: 1: fiori : Not Found" error encountered during the deployment of SAP UI5/Fiori applications on the Cloud Foundry of SAP BTP.

Labels in this area