Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - change package of existing/deployed application #2970

Open
T1mey opened this issue Feb 28, 2025 · 2 comments
Open

BUG - change package of existing/deployed application #2970

T1mey opened this issue Feb 28, 2025 · 2 comments

Comments

@T1mey
Copy link

T1mey commented Feb 28, 2025

Hi,

we have a deployed BSP application on an S4 system.
For that application the package must be changed. We're invoking the tooling with command.

deploy ... url: https://url.com service: /it/ABAP_REPOSITORY_SRV client: 100 transport: ABC1234567 package: /COMP/T1 name: /COMP/BSPAPPNAME description: Some desc`

the app is deployed in package T2 and must be updated to T1.

The output:

`
2025-02-28 05:05:20 info    abap-deploy-task: Starting to deploy.\
2025-02-28 05:05:21 info    abap-deploy-task: /COMP/BSPAPPNAME found on target system: true 
2025-02-28 05:05:24 info    abap-deploy-task: SAPUI5 Application /COMP/BSPAPPNAME has been uploaded and registered successfully 
2025-02-28 05:05:24 info    abap-deploy-task: ***** Upload of SAPUI5 App or Library from ZIP-Archive into SAPUI5 ABAP Repository ***** 
2025-02-28 05:05:24 info    abap-deploy-task: Running in regular mode, brief log 
2025-02-28 05:05:24 info    abap-deploy-task: 29 Files found in Archive. 
2025-02-28 05:05:24 info    abap-deploy-task: * Parameters * 
2025-02-28 05:05:24 info    abap-deploy-task: A BAdI implementation for /UI5/BADI_REPOSITORY_LOAD is active: Operation parameters may have been adjusted. 
2025-02-28 05:05:24 info    abap-deploy-task: The name of the SAPUI5 repository "/COMP/BSPAPPNAME" has been determined from the corresponding import parameter. 
2025-02-28 05:05:24 info    abap-deploy-task: The binary files are identified using the standard settings. 
2025-02-28 05:05:24 info    abap-deploy-task: The text files are identified using the standard settings. 
2025-02-28 05:05:24 info    abap-deploy-task: The files and folders to be ignored are determined from the built-in standard settings. 
2025-02-28 05:05:24 info    abap-deploy-task: Transport Request "ABC1234567 " has been determined from the corresponding import parameter. 
2025-02-28 05:05:24 info    abap-deploy-task: The external Code Page Name "UTF8" has been determined from the corresponding import parameter. 
2025-02-28 05:05:24 info    abap-deploy-task: The acceptance of Unix style end of line markers in text files has been determined from the corresponding import parameter. 
2025-02-28 05:05:24 info    abap-deploy-task: Unix style end of line markers in text files get accepted. 
2025-02-28 05:05:24 info    abap-deploy-task: The delta mode has been turned on. 
2025-02-28 05:05:24 info    abap-deploy-task: Safe mode is not activated 
2025-02-28 05:05:24 info    abap-deploy-task: Updating existing SAPUI5 ABAP repository /COMP/BSPAPPNAME 
2025-02-28 05:05:24 info    abap-deploy-task: Upload File    : resources/sap-ui-version.json (Text) 
2025-02-28 05:05:24 info    abap-deploy-task: { 
2025-02-28 05:05:24 info    abap-deploy-task: 	name: com.bsp.appname, 
2025-02-28 05:05:24 info    abap-deploy-task: 	version: 0.0.1, 
2025-02-28 05:05:24 info    abap-deploy-task: 	buildTimestamp: 202502280501, 
2025-02-28 05:05:24 info    abap-deploy-task: 	scmRevision: , 
2025-02-28 05:05:24 info    abap-deploy-task: 	libraries: [] 
2025-02-28 05:05:24 info    abap-deploy-task: } 
2025-02-28 05:05:24 info    abap-deploy-task: * Updating the Application Index * 
2025-02-28 05:05:24 info    abap-deploy-task: Messages from its application log: 
2025-02-28 05:05:24 info    abap-deploy-task: Writing descriptor apps/com.bsp.appname/app/comp/bspappname/ 
2025-02-28 05:05:24 info    abap-deploy-task: For details see the application log (SLG1) in client 000 for object /UI5/APPIDX . 
2025-02-28 05:05:24 info    abap-deploy-task: A BAdI implementation for /UI5/BADI_REPOSITORY_LOAD is active: Final activities may have been performed. 
2025-02-28 05:05:24 info    abap-deploy-task: SAPUI5 Application  has been uploaded and registered successfully 
2025-02-28 05:05:24 info    abap-deploy-task: * Done * 
2025-02-28 05:05:24 info    abap-deploy-task: App available at https://url... 
2025-02-28 05:05:24 info    abap-deploy-task: Deployment Successful. 

After the command run the package is still T2.

We would either expect that a failure is thrown OR the package is changed. But not a successful deployment message...

@longieirl
Copy link
Contributor

Hi,
I would try updating your flow as follows;

  1. Append the noConfig flag
--noConfig

This will ensure if you are running the deploy command from the project path containing a ui5-deploy.yaml configuration, that the existing properties are not used.

  1. Append the verbose the flag
--verbose true

This will generate more debug logging to see what parameters are being read and what is being passed to the deployment step.

@T1mey
Copy link
Author

T1mey commented Mar 28, 2025

Hello @longieirl ,

please note that we're using @sap-ux/deploy-tooling and NOT @sap/ux-ui5-tooling.
So --noConfig is only applicable for @sap/ux-ui5-tooling...

The log shows that we're invoking with the right package but it's not changed in the system!

2025-03-27T17:16:14.7911831Z 2025-03-27 17:16:10 debug   abap-deploy-task: {
2025-03-27T17:16:14.7912655Z   app: {
2025-03-27T17:16:14.7912922Z     name: '/COMPANY/USERLOCKS',
2025-03-27T17:16:14.7913239Z     description: 'Show Locks and Close Sessions',
2025-03-27T17:16:14.7913578Z     package: '/COMPANY/CASH_LOCKS_CLOSE_SESSION',
2025-03-27T17:16:14.7913886Z     transport: 'COMK925806'
2025-03-27T17:16:14.7914144Z   },
2025-03-27T17:16:14.7914376Z   target: {
2025-03-27T17:16:14.7914655Z     url: 'https://company.api.COMPANY.com',
2025-03-27T17:16:14.7914933Z     client: '100',
2025-03-27T17:16:14.7915200Z     scp: undefined,
2025-03-27T17:16:14.7915895Z     authenticationType: undefined,
2025-03-27T17:16:14.7916193Z     destination: undefined,
2025-03-27T17:16:14.7916475Z     serviceKey: undefined,
2025-03-27T17:16:14.7916751Z     params: undefined,
2025-03-27T17:16:14.7917051Z     service: '/it/ABAP_REPOSITORY_SRV'
2025-03-27T17:16:14.7917326Z   },
2025-03-27T17:16:14.7917577Z   credentials: 'hidden',
2025-03-27T17:16:14.7917846Z   test: undefined,
2025-03-27T17:16:14.7918122Z   safe: undefined,
2025-03-27T17:16:14.7918391Z   keep: undefined,
2025-03-27T17:16:14.7918659Z   strictSsl: true,
2025-03-27T17:16:14.7918910Z   yes: true,
2025-03-27T17:16:14.7919251Z   createTransport: undefined,
2025-03-27T17:16:14.7919589Z   retry: true,
2025-03-27T17:16:14.7919864Z   lrep: undefined
2025-03-27T17:16:14.7920188Z } 
2025-03-27T17:16:14.7920551Z 2025-03-27 17:16:10 info    abap-deploy-task: Creating archive from /azp/agent/_work/1/s/dist. 
2025-03-27T17:16:14.7921014Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding Component-dbg.js 
2025-03-27T17:16:14.7921533Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding Component-preload.js 
2025-03-27T17:16:14.7922185Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding Component-preload.js.map 
2025-03-27T17:16:14.7922805Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding Component.js 
2025-03-27T17:16:14.7923242Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding Component.js.map 
2025-03-27T17:16:14.7923679Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding annotations/annotation.xml 
2025-03-27T17:16:14.7924107Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding annotations/ 
2025-03-27T17:16:14.7924516Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding i18n/i18n.properties 
2025-03-27T17:16:14.7924921Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding i18n/ 
2025-03-27T17:16:14.7925312Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding index.html 
2025-03-27T17:16:14.7925751Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding localService/mainService/metadata.xml 
2025-03-27T17:16:14.7926220Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding localService/mainService/ 
2025-03-27T17:16:14.7926651Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding localService/ 
2025-03-27T17:16:14.7927058Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding manifest.json 
2025-03-27T17:16:14.7927486Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding resources/sap-ui-version.json 
2025-03-27T17:16:14.7928137Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding resources/ 
2025-03-27T17:16:14.7928554Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/flpSandbox.html 
2025-03-27T17:16:14.7929002Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/FirstJourney-dbg.js 
2025-03-27T17:16:14.7929474Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/FirstJourney.js 
2025-03-27T17:16:14.7929937Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/FirstJourney.js.map 
2025-03-27T17:16:14.7930411Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/opaTests.qunit-dbg.js 
2025-03-27T17:16:14.7930890Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/opaTests.qunit.html 
2025-03-27T17:16:14.7931353Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/opaTests.qunit.js 
2025-03-27T17:16:14.7931818Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/opaTests.qunit.js.map 
2025-03-27T17:16:14.7932338Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSList-dbg.js 
2025-03-27T17:16:14.7932877Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSList.js 
2025-03-27T17:16:14.7933418Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSList.js.map 
2025-03-27T17:16:14.7933973Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSObjectPage-dbg.js 
2025-03-27T17:16:14.7934624Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSObjectPage.js 
2025-03-27T17:16:14.7935171Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/xCOMPANYxI_LOCKS_CLOSE_SESSIONSObjectPage.js.map 
2025-03-27T17:16:14.7935663Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/pages/ 
2025-03-27T17:16:14.7936090Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/integration/ 
2025-03-27T17:16:14.7936528Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/locate-reuse-libs-dbg.js 
2025-03-27T17:16:14.7937099Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/locate-reuse-libs.js 
2025-03-27T17:16:14.7937610Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/locate-reuse-libs.js.map 
2025-03-27T17:16:14.7938081Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/testsuite.qunit-dbg.js 
2025-03-27T17:16:14.7938522Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/testsuite.qunit.html 
2025-03-27T17:16:14.7938962Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/testsuite.qunit.js 
2025-03-27T17:16:14.7939394Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/testsuite.qunit.js.map 
2025-03-27T17:16:14.7939808Z 2025-03-27 17:16:10 debug   abap-deploy-task: Adding test/ 
2025-03-27T17:16:14.7940474Z 2025-03-27 17:16:10 info    abap-deploy-task: Archive created from /azp/agent/_work/1/s/dist. 
2025-03-27T17:16:14.7940914Z 2025-03-27 17:16:10 info    abap-deploy-task: Starting to deploy. 
2025-03-27T17:16:14.7941294Z 2025-03-27 17:16:10 debug   abap-deploy-task: Payload:
2025-03-27T17:16:14.7941673Z  ID: https://prod-sap.api.COMPANY.com/Repositories('/COMPANY/USERLOCKS') 
2025-03-27T17:16:14.7942028Z  ABAP Package: /COMPANY/LOCKS_CLOSE_SESSION_T2 
2025-03-27T17:16:14.7942419Z 2025-03-27 17:16:10 info    abap-deploy-task: /COMPANY/USERLOCKS found on target system: true 
2025-03-27T17:16:14.7942921Z 2025-03-27 17:16:12 info    abap-deploy-task: SAPUI5 Application /COMPANY/USERLOCKS has been uploaded and registered successfully 
2025-03-27T17:16:14.7943483Z 2025-03-27 17:16:12 info    abap-deploy-task: ***** Upload of SAPUI5 App or Library from ZIP-Archive into SAPUI5 ABAP Repository ***** 
2025-03-27T17:16:14.7943982Z 2025-03-27 17:16:12 info    abap-deploy-task: Running in regular mode, brief log 
2025-03-27T17:16:14.7944396Z 2025-03-27 17:16:12 info    abap-deploy-task: 32 Files found in Archive. 
2025-03-27T17:16:14.7944939Z 2025-03-27 17:16:12 info    abap-deploy-task: * Parameters * 
2025-03-27T17:16:14.7945380Z 2025-03-27 17:16:12 info    abap-deploy-task: The text files are identified using the standard settings. 
2025-03-27T17:16:14.7945876Z 2025-03-27 17:16:12 info    abap-deploy-task: The binary files are identified using the standard settings. 
2025-03-27T17:16:14.7946409Z 2025-03-27 17:16:12 info    abap-deploy-task: The files and folders to be ignored are determined from the built-in standard settings. 
2025-03-27T17:16:14.7947006Z 2025-03-27 17:16:12 info    abap-deploy-task: The name of the SAPUI5 repository "/COMPANY/USERLOCKS" has been determined from the corresponding import parameter. 
2025-03-27T17:16:14.7947615Z 2025-03-27 17:16:12 info    abap-deploy-task: Transport Request "COMK925806" has been determined from the corresponding import parameter. 
2025-03-27T17:16:14.7948198Z 2025-03-27 17:16:12 info    abap-deploy-task: The external Code Page Name "UTF8" has been determined from the corresponding import parameter. 
2025-03-27T17:16:14.7948832Z 2025-03-27 17:16:12 info    abap-deploy-task: The acceptance of Unix style end of line markers in text files has been determined from the corresponding import parameter. 
2025-03-27T17:16:14.7949415Z 2025-03-27 17:16:12 info    abap-deploy-task: Unix style end of line markers in text files get accepted. 
2025-03-27T17:16:14.7949883Z 2025-03-27 17:16:12 info    abap-deploy-task: The delta mode has been turned on. 
2025-03-27T17:16:14.7950312Z 2025-03-27 17:16:12 info    abap-deploy-task: Safe mode is not activated 
2025-03-27T17:16:14.7950862Z 2025-03-27 17:16:12 info    abap-deploy-task: Updating existing SAPUI5 ABAP repository /COMPANY/USERLOCKS 
2025-03-27T17:16:14.7951344Z 2025-03-27 17:16:12 info    abap-deploy-task: UPLOAD FILE   : resources/sap-ui-version.json (Text) 
2025-03-27T17:16:14.7951771Z 2025-03-27 17:16:12 info    abap-deploy-task: { 
2025-03-27T17:16:14.7952465Z 2025-03-27 17:16:12 info    abap-deploy-task: 	name: userlocks.ccmuserlocks, 
2025-03-27T17:16:14.7952884Z 2025-03-27 17:16:12 info    abap-deploy-task: 	version: 0.0.1, 
2025-03-27T17:16:14.7953292Z 2025-03-27 17:16:12 info    abap-deploy-task: 	buildTimestamp: 202503271709, 
2025-03-27T17:16:14.7953701Z 2025-03-27 17:16:12 info    abap-deploy-task: 	scmRevision: , 
2025-03-27T17:16:14.7954088Z 2025-03-27 17:16:12 info    abap-deploy-task: 	libraries: [] 
2025-03-27T17:16:14.7954451Z 2025-03-27 17:16:12 info    abap-deploy-task: } 
2025-03-27T17:16:14.7954839Z 2025-03-27 17:16:12 info    abap-deploy-task: * Updating the Application Index * 
2025-03-27T17:16:14.7955320Z 2025-03-27 17:16:12 info    abap-deploy-task: SAPUI5 Application  has been uploaded and registered successfully 
2025-03-27T17:16:14.7955761Z 2025-03-27 17:16:12 info    abap-deploy-task: * Done * 
2025-03-27T17:16:14.7956242Z 2025-03-27 17:16:12 info    abap-deploy-task: App available at https://company.api.COMPANY.com/sap/bc/ui5_ui5/COMPANY/userlocks?sap-client=100 
2025-03-27T17:16:14.7956741Z 2025-03-27 17:16:12 info    abap-deploy-task: Deployment Successful. 

Image

We'll raise an SAP incident as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants