on 2023 Mar 09 7:08 AM
Greetings experts,
I am encountering difficulties while attempting to deploy a project using Business Application Studio. The steps I am currently following are:
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Please refer to the following SAP KBA note to resolve your issue.
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
Can you please attach your ui5-deploy.yaml configuration. Please mask any private settings before uploading.
Thanks.
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
76 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.