cancel
Showing results for 
Search instead for 
Did you mean: 

Error uploading content module "XXXX_ui_deployer" in service "XXXXl_html_repo_host

former_member739977
Discoverer
2,653

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

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

former_member739977
Discoverer
0 Kudos

I have added the ignore build parameter, still I am getting the same problem

mariusobert
Developer Advocate
Developer Advocate
 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?

michael_smithe5
Participant
0 Kudos

venkatakalyan.k , did you ever resolve this? I have a similar issue when trying to deploy a custom library.

0 Kudos

Hi,

The reason for this error, the ZIP archive created doesnot have the same name/location as mentioned in mta.yaml.

Please check the .ZIP created file name and location exactly mta.yaml should be able to locate the same.

Thanks

former_member739977
Discoverer
0 Kudos

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