cancel
Showing results for 
Search instead for 
Did you mean: 

MTA Deployment has no effect

11-30-2021 3:07 PM
SAP Managed Tags
Subscribe

I am trying to deploy my application in SAP Business Applications Studio, by generating the .mtar file from the mta.yaml and then >"Deploy MTA Archive" but the deployment has no effect. Only the old version of the application is available in the SAP BTP Cockpit>subaccount>HTML 5 Applications.

Here is the log:

Executing task: cf deploy "/home/user/projects/ActivitySamplerServiceBAS-master/ActivitySamplerServiceBAS-master/mta_archives/Activity_Sampler_Service_Admin_0.0.3.mtar" <
Deploying multi-target app archive /home/user/projects/ActivitySamplerServiceBAS-master/ActivitySamplerServiceBAS-master/mta_archives/Activity_Sampler_Service_Admin_0.0.3.mtar in org IBP_LIVE_DEVEFF / space dev as [email protected]...
Uploading 1 files...
/home/user/projects/ActivitySamplerServiceBAS-master/ActivitySamplerServiceBAS-master/mta_archives/Activity_Sampler_Service_Admin_0.0.3.mtar
OK
Operation ID: 5cdb5f56-51d4-11ec-94bc-eeee0a977b7e
Operation ID: 5cdb5f56-51d4-11ec-94bc-eeee0a977b7e
Deploying in org "IBP_LIVE_DEVEFF" and space "dev"
Detected MTA schema version: "3"
No deployed MTA detected - this is initial deployment
Detected new MTA version: "0.0.3"
Processing service "Activity_Sampler_Service_Admin-connectivity"...
Creating service "Activity_Sampler_Service_Admin-connectivity" from MTA resource "Activity_Sampler_Service_Admin-connectivity"...
Processing service "Activity_Sampler_Service_Admin-destination-service"...
Processing service "Activity_Sampler_Service_Admin-html5-app-host-service"...
Processing service "Activity_Sampler_Service_Admin-xsuaa-service"...
Creating service "Activity_Sampler_Service_Admin-html5-app-host-service" from MTA resource "Activity_Sampler_Service_Admin_html_repo_host"...
Creating service "Activity_Sampler_Service_Admin-destination-service" from MTA resource "Activity_Sampler_Service_Admin-destination-service"...
Setting service "Activity_Sampler_Service_Admin-xsuaa-service" parameters from "xs-security.json"
Creating service "Activity_Sampler_Service_Admin-xsuaa-service" from MTA resource "uaa_Activity_Sampler_Service_Admin"...
1 of 1 done
1 of 1 done
1 of 1 done
1 of 1 done
Creating service key "Activity_Sampler_Service_Admin-destination-content-Activity_Sampler_Service_Admin-destination-service-credentials" for service "Activity_Sampler_Service_Admin-destination-service"...
Creating service key "Activity_Sampler_Service_Admin-destination-content-Activity_Sampler_Service_Admin-connectivity-credentials" for service "Activity_Sampler_Service_Admin-connectivity"...
Creating service key "Activity_Sampler_Service_Admin_html_repo_host-key" for service "Activity_Sampler_Service_Admin-html5-app-host-service"...
Creating service key "uaa_Activity_Sampler_Service_Admin-key" for service "Activity_Sampler_Service_Admin-xsuaa-service"...
Deploying content module "Activity_Sampler_Service_Admin-destination-content" in target service "Activity_Sampler_Service_Admin-destination-service"...
Creating service key "Activity_Sampler_Service_Admin_ui_deployer-Activity_Sampler_Service_Admin_html_repo_host-credentials" for service "Activity_Sampler_Service_Admin-html5-app-host-service"...
Uploading content module "Activity_Sampler_Service_Admin_ui_deployer" in target service "Activity_Sampler_Service_Admin_html_repo_host"...
Deploying content module "Activity_Sampler_Service_Admin_ui_deployer" in target service "Activity_Sampler_Service_Admin_html_repo_host"...
Skipping deletion of services, because the command line option "--delete-services" is not specified.
Process finished.
Use "cf dmol -i 5cdb5f56-51d4-11ec-94bc-eeee0a977b7e" to download the logs of the process.

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate

According to the log, it did everything right:

Uploading content module "Activity_Sampler_Service_Admin_ui_deployer" in target service "Activity_Sampler_Service_Admin_html_repo_host"... 
Deploying content module "Activity_Sampler_Service_Admin_ui_deployer" in target service "Activity_Sampler_Service_Admin_html_repo_host"...

So I can only point you in a few directions. A possible cause might be that you deployed a older mtar archive or that build process didn't pick up the latest web app and put it in the archive. Or maybe this is just a caching issue.

0 Likes

UPDATE: The reason why the deployment was unsuccessful is that the .zip file was not updated during build.
The following code was added to xs-app.json:

{ "source": "^/resources/(.*)$", "target": "/resources/$1", "authenticationType": "none", "destination": "ui5" }, { "source": "^/test-resources/(.*)$", "target": "/test-resources/$1", "authenticationType": "none", "destination": "ui5" },

For the mta.yaml, please reference the following link:

https://github.com/SAP-samples/teched2021-developer-keynote/blob/main/section/frontend/mta.yaml

Answers (0)