cancel
Showing results for 
Search instead for 
Did you mean: 

Error uploading content module on step 7 Deploy the archive to Cloud Foundry

vladimir_ezopov
Explorer
0 Kudos
2,076

Tutorials: https://developers.sap.com/tutorials/appstudio-sapui5-create.html
--------------------------

Write here what you need help with Step 7: Deploy the archive to Cloud Foundry

After Right-click on the mtar file and select Deploy and Deploy MTA Archive I 've got an Error:

Service key "sap-btp-sapui5-app-content-sap-btp-sapui5-html5-repo-host-credentials" for service "sap-btp-sapui5-html5-repo-host" already exists Uploading content module "sap-btp-sapui5-app-content" in target service "sap-btp-sapui5-html5-repo-host"... Error uploading content module "sap-btp-sapui5-app-content" in service "sap-btp-sapui5-html5-repo-host": org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: com.sap.cloud.lm.sl.xs2.content.client.ContentDeployerException: Internal server error occurred during processing of operation 'Upload File': Upload application content failed { CODE: '1001' } validation error: Error while parsing request; Error: Unknown system error -122: Unknown system error -122, open 'tempFolder/_GYHIelZBFYrE4xWoVAzNcU0.zip' Process failed.

What's wrong?

Please help.

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vladimir.ezopov,

It seems that the newest node dependencies rely on NodeJS v12, but BAS is working with v10 instead.

If you try to issue the following command inside your project's folder:

npm i

You will get an error related to keytar installation:

install libsecret-1.so.0: cannot open shared object file: No such file or directory

I've managed to install v12 and npm v7 in BAS but it is an unsupported method.

So, my suggestion is you open a support ticket with SAP so they can fix this as soon as possible.

Regarding the error you mentioned, I didn't see it with a fresh workspace - just the error I've mentioned above. Even with the error, the MTAR gets built and I am able to deploy it and run.

It could be a temporary error - so if you try again later and you still have the same error, I suggest you open a support ticket so SAP can investigate it further.

Best regards,
Ivan

vladimir_ezopov
Explorer
0 Kudos

Thank you very much for your answer. Really today I tried to Deploy MTA Archive and it was OK.

But next step 8 I am stuck too because when I go to URL of the deployed app https://<ID>.cpp.cfapps.eu10.hana.ondemand.com/<appID>.sap-btp-sapui52.sapbtpsapui52-1.0.0/ I got an error:

No client with requested id: sb-portal-cf-dt-approuter!t3664

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi vladimir.ezopov,

How do you create the managed approuter, manually or via UI5 App Template?

Did you notice that the app generator now features the automatic creation of the managed approuter instance. So step 5.5 is no longer needed. My MTA has the following:

ServiceInstanceName: sap-btp-sapui5-html5-app-host-service

Instead of the MTA instruction on step 5.5 which contains:

ServiceInstanceName: sap-btp-sapui5-html5-app-host

This is not an error per se. Just check that the value for ServiceInstanceName has the same value as the parameter service-name you find under the resource sap-btp-sapui5-html5-repo-host (located at the end of the file) like so:

- name: sap-btp-sapui5-html5-repo-host
  type: org.cloudfoundry.managed-service
  parameters:
    service: html5-apps-repo
    service-name: sap-btp-sapui5-html5-app-host-service
    service-plan: app-host
parameters:
  deploy_mode: html5-repo
  enable-parallel-deployments: true

Build the MTA again and just to make sure you have the latest version deployed, erase all the service instances that this deploy has created before. When you delete the destination and html5 repository instances it will unregister your application at the managed approuter. I believe that since your MTA file had this typo, it id not finding the repository and thus was not able to register the application instance in the managed approuter. After you fix the MTA, rebuild it, delete the instances and redeploy it should work.

Best regards,
Ivan

Answers (2)

Answers (2)

S700136
Advisor
Advisor
0 Kudos

Hello,

Even I am getting this error:

info  cloudFoundryDeploy - Error uploading content module "BusinessPartnerValidation-app-content" in service "BusinessPartnerValidation-html5-repo-host": org.cloudfoundry.multiapps.controller.persistence.services.FileStorageException: com.sap.cloud.lm.sl.xs2.content.client.ContentDeployerException: Operation 'Upload File' to the URL 'https://html5-apps-repo-dt.cfapps.eu10.hana.ondemand.com/v2/files/upload' failed. Remote server responded with HTTP status code 500, error message: 'Upload application content failed { CODE: '1001' } validation error: Could not find applications in the request.', error type 'Bad Request' 
14:41:40  info  cloudFoundryDeploy - Proceeding with automatic retry... (3 of 3 attempts left)

Node version: 14.17.6 & also Node version 14.18.1
npm version: 6.14.15

Please help me with this.

Thanks in Advance 🙂

0 Kudos

I got the same error here. I'am on eu10