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,675

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

View Entire Topic
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