Skip to Content
2
May 21 at 05:54 PM

SAP BTP Cloud Foundry - Application Routes URL does not work - File not found, Internal Server Error

422 Views Last edit May 22 at 08:44 AM 2 rev

Hello All,

1) I had taken MTA Template and created an Freestyle UI5 App with standalone Approuter in BAS.

Here is the Project Structure as shown below:

xs-app.json File code when App generated without changes

Now I manually did some changes by following some AppRouter related blogs like below:

Here is my package.json file as shown below:

Here is my mta.yaml file code

_schema-version: "3.2"
ID: Test
version: 0.0.1
modules:
- name: test-approuter
  type: approuter.nodejs
  path: test-approuter
  requires:
  - name: Test_html_repo_runtime
  parameters:
    disk-quota: 256M
    memory: 256M
- name: Test_ui_deployer
  type: com.sap.application.content
  path: .
  requires:
  - name: Test_html_repo_host
    parameters:
      content-target: true
  build-parameters:
    requires:
    - artifacts:
      - comtesttestmodule.zip
      name: comtesttestmodule
      target-path: resources/
- name: comtesttestmodule
  type: html5
  path: testmodule
  build-parameters:
    build-result: dist
    builder: custom
    commands:
    - npm install
    - npm run build:cf
    supported-platforms: []
resources:
- name: Test_html_repo_runtime
  type: org.cloudfoundry.managed-service
  parameters:
    service: html5-apps-repo
    service-plan: app-runtime
- name: Test_html_repo_host
  type: org.cloudfoundry.managed-service
  parameters:
    service: html5-apps-repo
    service-plan: app-host
parameters:
  deploy_mode: html5-repo


Now If I try to generate the MTA Project(mtar file) with mta.yml I am getting the following error in Terminal as shown below "Error at Test_ui_deployer"

removed these piece of code in mta.yaml file and tried to build the mta_archives file

- name: Test_ui_deployer
  type: com.sap.application.content
  path: .
  requires:
  - name: Test_html_repo_host
    parameters:
      content-target: true
  build-parameters:
    requires:
    - artifacts:
      - comtesttestmodule.zip
      name: comtesttestmodule
      target-path: resources/

After removing few lines of code I am able to get the "mta _Archives" file.

Now I deployed the App to Cloud Foundry to my Space in SAP BTP Cockpit.

when I click on generated URL shows like below:

2) I tried without MTA Template also by taking only UI5App in BAS (Cloud foundry) by following below URL :

SAP Help Document. By following this I deployed the App through terminal by giving commands

cf push <appname> by logging into CF login then app was started successfully but when I open the generated URL in SAP BTP it shows "Internal server error" sometimes "Not found".

I want to access the APP through the generated URL in Cockpit but not able to get it.

Could anyone please help me out this issue.

where I am missing and what I have to do to get the app displayed with URL.

Marius Obert could you suggest me to solve this issue.

Thanks in Advance.

Regards

Mamatha M

Attachments

1.jpg (39.0 kB)
2.jpg (20.0 kB)
3.jpg (57.6 kB)
4.jpg (81.5 kB)
5.jpg (159.8 kB)
6.jpg (48.4 kB)
7.jpg (23.9 kB)
8.jpg (84.5 kB)
inked9-li.jpg (938.8 kB)