on 2021 Jun 29 7:41 AM
Hi Team
I am getting the below error while deploying the MTAR file in cloud foundry
Error uploading content module "XXXX_ui_deployer" in service "XXXXl_html_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'
Please help how to resolve the above issue
Thanks and Regards
Kalyan
Hi kvkalyan,
This is usually related to the size of the deployable files related to the HTML5 repository. You must reduce its size in order to deploy it to CF. The most effective way of achieving this is by setting a build parameter to remove any node module directory from the overall MTAR file. You can do this by including the following in your nodejs based modules (the ones the create any node_modules directories):
type: <any app type that uses NodeJS technology - html5, nodejs, etc.>
path: <path to your module>
build-parameters:
ignore: ["node_modules/", "default-env.json"]
After you modify your mta.yaml you have to build it again in order to deploy.
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could not find applications in the request
This part of the error message could also mean that there is no content in the resources folder. Can you confirm that your resources folder contains the zipped web app that you want to upload?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
venkatakalyan.k , did you ever resolve this? I have a similar issue when trying to deploy a custom library.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Marius, I do not see my ZIP file in Resources folder after build, however it is created under ui5 module.
This is the ui deployer configuration
- name: XXXX_ui_deployer
type: com.sap.application.content
path: . requires: - name: XXXX_html_repo_host
parameters: content-target: true
build-parameters:
ignore: ["node_modules/"]
build-result: resources
requires:
- artifacts: - XXXX-content.zip
name: XXXX
target-path: resources/
After build the resource folder is created and i do not see ZIp in the Resources folder
Thanks and Regards
Kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.