Skip to Content
0
Jun 02, 2020 at 01:48 AM

Can't deploy fiori app to Cloud Foundry

729 Views Last edit Jun 02, 2020 at 01:58 AM 2 rev

Hello, everybody.

I followed this tutorial Develop a Fiori Launchpad App with Your Own Dev Tools and when I deployed the fiori application I received the following error:

Proceeding with automatic retry... (2 of 3 attempts left)
Executing task "deploy" on application "products_launchpad_deployer"...
Execution of task "deploy" on application "products_launchpad_deployer" failed.
Download the application logs via the dmol command and check them for more information.
A step of the process has failed. Retrying it may solve the issue.
Proceeding with automatic retry... (1 of 3 attempts left)
Executing task "deploy" on application "products_launchpad_deployer"...
Execution of task "deploy" on application "products_launchpad_deployer" failed.
Download the application logs via the dmol command and check them for more information.
A step of the process has failed. Retrying it may solve the issue.
Process failed.

Checking the log of the products_launchpad_deployer I noticed this error:

Deployment of site content to persistency failed [Deployment Id:none] , Error: Deploy to portal service failed, got status = 500, data: Failed to deploy site, instance id: 903a5028-405e-4620-bfad-0ee58edeee5b, correlation id: a8f9c0e7-5fdf-4751-6890-84f2fcfd9c87 - Error: "Failed to import site, tenantId: f079c3bb-fff7-4201-bf07-6c2769ef3224, instanceId: 903a5028-405e-4620-bfad-0ee58edeee5b, appHostIds: {\"appHostIds\":[\"4c94cabe-c6a8-4816-9292-b206cd32796e\"],\"boundAppHostIds\":[],\"instanceId\":\"903a5028-405e-4620-bfad-0ee58edeee5b\"}, xsAppNameServicesMap: {\"com.sap.portal.no.business.service\":\"products!t4787\",\"html5-apps-repo-dt\":\"4c94cabe-c6a8-4816-9292-b206cd32796e!b4787|html5-apps-repo-uaa!b424\"}, blueBoxMetadataStr: undefined Error : \"Failed to search all appHostIds, missing apps: products\"" (STDERR, APP/TASK/deploy)#

This is my mta.yaml

ID: products
_schema-version: 3.2.0
description: Enter description here
version: 0.0.1
parameters:
  enable-parallel-deployments: true
modules:
  - name: products
    type: nodejs
    path: approuter
    parameters:
      disk-quota: 512M
      memory: 512M
    requires:
      - name: products_destination
      - name: products_uaa
      - name: products_html5_repo_runtime
      - name: products_portal
  - name: products_deployer
    type: com.sap.html5.application-content
    path: deployer
    requires:
      - name: products_html5_repo_host
    build-parameters:
      builder: custom
      commands:
        - npm run build:ui --prefix ..
  - name: products_launchpad_deployer
    type: com.sap.portal.content
    path: launchpad
    requires:
      - name: products_portal
      - name: products_html5_repo_host
      - name: products_uaa
resources:
  - name: products_destination
    type: org.cloudfoundry.managed-service
    parameters:
      service-plan: lite
      service: destination
  - name: products_uaa
    type: org.cloudfoundry.managed-service
    parameters:
      path: ./xs-security.json
      service-plan: application
      service: xsuaa
  - name: products_html5_repo_runtime
    type: org.cloudfoundry.managed-service
    parameters:
      service-plan: app-runtime
      service: html5-apps-repo
  - name: products_html5_repo_host
    type: org.cloudfoundry.managed-service
    parameters:
      service-plan: app-host
      service: html5-apps-repo
      # config:
      #   sizeLimit: 15
  - name: products_portal
    type: org.cloudfoundry.managed-service
    parameters:
      service-plan: standard
      service: portal


I tried both in the trial environment and in the company environment but without success. I always get the same error. What can I do about it?

Thanks in advance