Closed matt-wombat closed 3 years ago
Well cloning the project and running it straight away even with the prerequisites would still be missing the default-env.json; which is exactly what this error is saying. When running cds run or npm start from the Business Application Studio it doesn't deploy the services to CF like the old Web IDE used to. You need this default-env.json file to locally emulate the environment of Cloud Foundry for your service. Have a look at this video playlist to show how this newer version of the project was built using HANA Cloud and Business Application Studio: https://www.youtube.com/playlist?list=PL6RpkC85SLQAHZ_V3cZsTok0T6BvI4HT1
The second video in the series will cover the usage of the default-env.json in general, although the UAA section isn't added until later in the series. https://www.youtube.com/watch?v=t3nIXxibmso&list=PL6RpkC85SLQAHZ_V3cZsTok0T6BvI4HT1&index=2
Thank you very much for your fast answer! I will look into the default-env.json
To be honest I already found the playlist, I even scrubbed in some of the videos back and forth. But I cannot view the second video on in. When I click on your link pointing to index=2 my browser immediately skips video number two and goes to index=3 in the list. Video number two seems to be private. I can't see it even if I'm logged in with my YT Premium account. Is there something else to know to view this vide?
Here's what I see:
I actually meant the video with the name part 2 - which is the fourth video in the playlist. I see what’s going on with #2 in the playlist. It’s not a critical item as that was the livestream where we took suggestions for what to cover in this learning series. Interesting but not critical. I’ll correct that item in the playlist shortly. Thanks for pointing it out.
Hello,
thank you for your very nice repository. I did follow the exercises of the openSAP hana7 course and did actually build the github repository hana-xsa-opensap-hana7 on my HANA express. As I found it most useful I am now trying to clone and build the hana-opensap-cloud-2020 repo into my SAP BTP trial account with a HANA cloud trial database.
Up until now I have done everything stated in the install-all-prerequsites.md file, meaning I have successfully installed SFLIGHT, executed all SQL commands and created the CUPS_FLIGHT user with roles, and also executed all CF commands for creating the HDI containers, UPS for SFLIGHT schema, HTTP UPS and UAA.
I also reproduced some instructions from https://blogs.sap.com/2021/01/21/building-hana-opensap-cloud-2020-part-2-project-setup-and-first-db-build/ which seemed to be helpful.
My database is now successfully deployed to the HANA cloud and the user provided services seem to work. I can deploy the DB module using the small rocket icon in the BAS and also jump from the BAS into the respective HDI containers. From the database perspective everythin seems to be in order.
As I read in your reply https://github.com/SAP-samples/hana-opensap-cloud-2020/issues/18#issuecomment-655142079 where you are stating that the most easy way to test a module would be to do
cds run
orcds watch
I have also tried
npm start
Unfortunately nothing works as I always get an error which can be most easily reproduced by executing
npm start
There seems to be something regarding the UAA.
Here is the error:
Here is the debug.log:
These are my service instances (I don't think the error is due to the red update failed label as the error persisted before the last update failed):
I have already experimented a lot with the name of the uaa-service in the mta.yaml in order to have it match the instance name in my BTP trial account. But I could not figure it out. Would you be so kind to give me a hint where to look at?