cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deploy FIORI Project from Business Application Studio

Mohamed_Mukhtar
Active Contributor
4,606

Greetings experts,

I am encountering difficulties while attempting to deploy a project using Business Application Studio. The steps I am currently following are:

  1. Creating a project using a template
  2. Opening a terminal window and running the commands "npm run deploy-config", while providing all necessary information, and then "npm run deploy".

Logs from BAS

info builder:custom deploy-to-abap Create Archive
info builder:custom deploy-to-abap Starting Deployment.
ERR! builder:custom deploy-to-abap Deployment Failed. You can re-run deployment with the following command to get more detailed log information:
ERR! builder:custom deploy-to-abap MacOs/Linux: DEBUG=ux-odata-client npm run deploy
ERR! builder:custom deploy-to-abap Windows: set DEBUG=ux-odata-client & npm run deploy

Regards

Mukhtar

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member846077
Discoverer
0 Kudos

jlongie I receive the error messages below. In SICF we have the UI5 service activated and connections set up in BTP cockpit. Thank you in advance for you assistance.

After running script NPM RUN DEPLOY

ERR! builder:custom deploy-to-abap Please maintain correct credentials to avoid seeing this error
ERR! builder:custom deploy-to-abap (see help: https://www.npmjs.com/package/@sap/ux-ui5-tooling#setting-environment-variables-in-a-env-file)
info builder:custom deploy-to-abap The deployment destination requires authentication. Please enter your credentials below ERR! builder:custom deploy-to-abap Deployment Failed. You can re-run deployment with the following command to get more detailed log information: ERR! builder:custom deploy-to-abap MacOs/Linux: DEBUG=ux-odata-client npm run deploy ERR! builder:custom deploy-to-abap Windows: set DEBUG=ux-odata-client & npm run deploy

When I attempt to run the script set DEBUG=ux-odata-client & npm run deploy, I do not appear to get any different logs.

ui5-deploy.yaml file:

# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: "2.4"
metadata:
name: Name
type: application
builder:
resources:
excludes:
- /test/**
- /localService/**
customTasks:
- name: deploy-to-abap
afterTask: generateCachebusterInfo
configuration:
target:
destination: Env
url:
credentials:
username: env:UI5_USERNAME
password: env:UI5_PASSWORD
app:
name: Z_Name
description: App
package: Z_Package
transport: Transport #

.env file:

UI5_USERNAME=Username
UI5_PASSWORD=Password
Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Lucas,

Please start a new thread. I am closing this one.

Regards

Mukhtar

jlong
Product and Topic Expert
Product and Topic Expert
0 Kudos

Ensure the credentials is a aligned correctly. Indentation in yaml files are important.

jlong
Product and Topic Expert
Product and Topic Expert
0 Kudos

Ok! So Im not able to replicate the issue.

Can you provide the full console long when you run `npm run deploy`. This should more details.

Also, what versions are you running?

node -v

npm -v

Thanks.

John

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi John

Thank You. Please find the logs.

npm -v is 8.19.3

node -v is v16.19.0

> zxxxx@0.0.1 deploy
> npm run build && fiori deploy --config ui5-deploy.yaml && rimraf archive.zip


> zxxxx@0.0.1 build
> ui5 build --config=ui5.yaml --clean-dest --dest dist

info builder:builder Building project zxxxx not including dependencies...
info builder:builder 🛠 (1/1) Building project zxxxx
info builder:builder application zxxxx 🔨 (1/8) Running task escapeNonAsciiCharacters...
info builder:builder application zxxxx 🔨 (2/8) Running task replaceCopyright...
info builder:builder application zxxxx 🔨 (3/8) Running task replaceVersion...
info builder:builder application zxxxx 🔨 (4/8) Running task generateFlexChangesBundle...
info builder:builder application zxxxx 🔨 (5/8) Running task generateComponentPreload...
WARN lbt:bundle:Builder **** warning: module zxxxx/utils/locate-reuse-libs.js requires top level scope and can only be embedded as a string (requires 'eval')
info builder:builder application zxxxx 🔨 (6/8) Running task createDebugFiles...
info builder:builder application zxxxx 🔨 (7/8) Running task uglify...
info builder:builder application zxxxx 🔨 (8/8) Running task generateVersionInfo...
info builder:builder Build succeeded in 504 ms
info builder:builder Executing cleanup tasks...

Confirmation is required to deploy the app:

Application Name: zxxxx
Package: ZPACKAGE
Transport Request: TRXXXXXX
Destination: SYSXXXXX
SCP: false


✔ Start deployment (Y/n)?

… yes
info builder:custom deploy-to-abap Create Archive
info builder:custom deploy-to-abap Starting Deployment.
ERR! builder:custom deploy-to-abap Deployment Failed. You can re-run deployment with the following command to get more detailed log information:
ERR! builder:custom deploy-to-abap MacOs/Linux: DEBUG=ux-odata-client npm run deploy
ERR! builder:custom deploy-to-abap Windows: set DEBUG=ux-odata-client & npm run deploy

Regards

Mukhtar

Mohamed_Mukhtar
Active Contributor

Hi John,
The below error is found in /iwfnd/error_log transaction.

No service found for namespace '/UI5/', name 'ABAP_REPOSITORY_SRV', version '0001'

Regards

Mukhtar

jlong
Product and Topic Expert
Product and Topic Expert

Please refer to the following SAP KBA note to resolve your issue.

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

Mohamed_Mukhtar
Active Contributor

Hi John,

The issue is resolved after adding serivce /UI5/ABAP_REPOSITORY_SRV. Please convert your comment as answer so that I can 'ACCEPT' . Thank you for your help.

Regards

Mukhtar

jlong
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you please attach your ui5-deploy.yaml configuration. Please mask any private settings before uploading.

Thanks.

John

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi John

Thank you . There are ui5-deploy.yaml configuration details.

developerskr
Explorer
0 Kudos

Hi there

I get the same error and running the whole thing again with the debug command, to get more detailed log information, doesn't work either.

Maybe I can't do anything about it right now or I'm doing something wrong.

Regards

Skerhut

IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi there

Can you please re-run the deploy command with debugging enabled, as mentioned in the error. Please run the following command and provide the logs:

DEBUG=ux-odata-client npm run deploy
Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Ian,

Thank you for your message.  I executed the command 'DEBUG=ux-odata-client npm run deploy' and below are the logs
info builder:custom deploy-to-abap Create Archive
info builder:custom deploy-to-abap Starting Deployment.
ERR! builder:custom deploy-to-abap Deployment Failed. You can re-run deployment with the following command to get more detailed log information:
ERR! builder:custom deploy-to-abap MacOs/Linux: DEBUG=ux-odata-client npm run deploy
ERR! builder:custom deploy-to-abap Windows: set DEBUG=ux-odata-client & npm run deploy

Regards

Mukhtar

IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Mukhtar,

One other comment from my side (as well as John supporting below), could you please ensure you are using the latest version of ux-ui5-tooling in your generated project? If you look at the package.json of your project, please ensure it's version 1.9.1. If it is not, please update it by executing the following command whilst in the project folder:

npm install @sap/ux-ui5-tooling@1.9.1 --save-dev

Regards,

Ian

Mohamed_Mukhtar
Active Contributor
0 Kudos

Hi Ian,

Thank You. i have updated the version of ux-ui5-tooling to 1.9.1 as you mentioned & executed commands "npm run deploy-config", while providing all necessary information, and then "npm run deploy", but encountering same difficulties to deploy.

Regards

Mukhtar