cancel
Showing results for 
Search instead for 
Did you mean: 

Exercise in Learning Journey Building side-by-side extensions - error while deploying

spassaro
Participant
0 Kudos
834

Hi @Mark_Quincy and team.

I'm running an issue while deploying the riskManagement app in trial account. This is my repo:

https://github.com/stefanopassaro/riskManagement/

I see everything fine in local, but when I deploy i receive this when I go to the launchpad page:

spassaro_0-1720293046765.png

 

The other service is up and running, so it must me something related with routing i presume:

spassaro_1-1720293168446.png

both services are running in the cloud foundry environment in a btp trial account with BAS and Hana Cloud.

Thank in advance!!!

pd: I would like to thank you for your work and effort.

 

 

 

View Entire Topic
Mark_Quincy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Stefano.   Try this:

(1)  Go to your “xs-app.json” file ( located under “app/router” ) and on line #1 change the string from  "app/launchpad.html" to “app/risk-management/webapp/index.html”.  Be sure to save it.

(2)  Move the “xs-app.json” file from the router folder to the “app” folder ( in other words move it one directory level up ).

(3)  Go to your “mta.yaml” file and change the string on line #42 from “app/router“ to “app”.  Be sure to save it.  This is necessary since we moved the “xs-app.json” file one directory up so the location string has to be updated.

(4)  Rebuild & redeploy to cloud foundry

 

spassaro
Participant
0 Kudos

Thank for your answer! Unfortunately, i'm receiving errow while, deplyoying (not sure it is related):

 

rror staging application "risk-management": NoAppDetectedError - An app was not successfully detected by any available buildpack 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. Stopping application "risk-management-srv"... Proceeding with automatic retry... (3 of 3 attempts left) Staging application "risk-management"... Staging application "risk-management-srv"... Error staging application "risk-management": NoAppDetectedError - An app was not successfully detected by any available buildpack

 

 

Mark_Quincy
Product and Topic Expert
Product and Topic Expert

Hello Stefano. Hope all is well.

When I cloned your project I did not see that any of the changes that I suggested have been made.  However it may be the case that you haven't yet "pushed" changes to your project to GitHub and I was simply cloning a previous version of your code.

So what I did was simply to take the version of code from your GitHub repository, clone it and then add the changes.  This updated code is located at my GitHub repository:

https://github.com/FioriDeveloper19/riskManagment.git

You can clone this working solution from this location:  ("git clone https://github.com/FioriDeveloper19/riskManagment.git").  After cloning you can deploy.  The "index.html" will then load.

Although the index.html will load I noticed when trying to execute your application that there were issues with the "Business Partners" API call.  Again that may be related to me just using a previous version of your code (your current version may have the correct code).  I can't do those steps for you.  The steps for that are explained in the relevant exercise for the CLD200 course.  So you'll have to do (or redo) those steps after you clone the working solution.

InesRomero
Discoverer
0 Kudos

Hi @Mark_Quincy,

I'm experiencing the same 'not found' error as Stefano. Despite applying the changes you mentioned, I'm still getting the same error that he encountered when deploying the application:

Error staging application "risk-management": NoAppDetectedError - An app was not successfully detected by any available buildpack 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.

I've tried deleting the 'gen' folder and rebuilding and redeploying, but I still get the same error.

I'm not sure if it's related, but when I run my application locally and try to access the data (after entering the username 'riskmanager' and password 'initial'), I get a 'forbidden' error, even though my user has been assigned the riskmanager role. This error started occurring after the application deployment.

InesRomero_0-1725821558089.pngInesRomero_1-1725821618533.png

This is my git repository: https://github.com/inesromero-r/RiskManagement/tree/main

Thank you in advance.