on 2024 Sep 26 8:48 AM
Hello,
I am fallowing tutorial https://developers.sap.com/tutorials/cp-cap-java-deploy-cf.html#2af0294a-493a-4800-99b5-e2e7e0ecc396 and I am not able to deploy the application due to issue with "bookstore-db-deployer".
The issue began when with not finding the database.
The mta had configuration :
- name: bookstore-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
- name: bookstore-db
type: com.sap.xs.hdi-container
parameters:
service: hana-cloud-trial
service-plan: hana
It started launched but had issue with "bookstore-db-deployer". After inspecting the logs I found those:
Not a hana service or user-provided service with hana tag (STDOUT, APP/TASK/deploy)#
Using hdb@undefined for connection (STDOUT, APP/TASK/deploy)#
Detection of server version failed; root cause: No authentication method found (STDOUT, APP/TASK/deploy)#
I have my db to allow connections from all ip addresses I tried to recreate the DB but nothing help.
I am not sure what part of the setup is wrong since the does not say much.
Request clarification before answering.
It looks like the issue is with the tutorial.
I should not make that change to bookstore-db. The service should be created with the deployment.
In Step 1 in https://developers.sap.com/tutorials/cp-cap-java-deploy-cf.html
There is information to create database with name bookstore-db which is incorect becouse that name is reserved for hdi container hence my errors. I have created new db with name bookstore-hana-db and all worked.
When creating the DB in this step it should also be mentioned to use cloud foundry environment and NOT other environment so it will be connected correctly.
In Step 2 in https://developers.sap.com/tutorials/cp-cap-java-deploy-cf.html
It should be additional change to the configuration auto-config.enabled should be set to true otherwise h2 will be used as DB not hana.
In Step 7 in point 4
There is incorrect url for odata odata/v4/catalog/Books the correct one should be odata/v4/BooksService/Books to test the solution. It important since if someone did not enabled the web application will not be able to test it.
After all that it started to work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sebastian!
I couldn't reproduce your third point with auto-config but for the other points I improved the tutorial: Better description for hana creation, fix URL by renejeglinsky · Pull Request #23760 · sap-tutorials...
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.