cancel
Showing results for 
Search instead for 
Did you mean: 

sample project "cloud-cap-samples-java" deploy issue

0 Kudos

bookshop-java-public-approuterlog.txtbookshop-java-public-dblog.txtbookshop-java-public-srvlog.txtoperationlog.txt

Project link:

https://github.com/SAP-samples/cloud-cap-samples-java

Attachments are the full logs downloaded by command "cf dmol -i 1a9fce0c-6533-11eb-b423-eeee0a876ddb".

Deploy steps as follows.

Rename mta-single-tenant.yaml to mta.yaml
Run mbt build
Run cf login
Run cf deploy mta_archives/bookshop-java-public_1.0.0.mtar

After deployed to SAP Cloud Platform Cockpit trail account, db service could not be started. Logs are as below.

bookshop-java-public-db | instance: 61461c1a-0c01-4d70-490f-d245, index: 0, cell_id: d5f8ba8f-6b80-4d41-b335-1a257634845d, exit_description: Codependent step exited, reason: CRASHED

using "cf logs bookshop-java-public-db --recent" command , get bolow logs.

chgeo
Advisor
Advisor
0 Kudos

When referring to logs, we mean text. The above is just screenshots of truncated contents of logs.
So, please attach the whole log file.

chgeo
Advisor
Advisor
0 Kudos

From the logs, DB deployment looks fine. mta.yaml also looks ok.
The `Codependent step exited` seems to be the culprit here, but I don't know what that could be. I would try reaching out to MTA deployment folks. Will try to connect you.

Accepted Solutions (0)

Answers (1)

Answers (1)

chgeo
Advisor
Advisor
0 Kudos

The error message after a successful DB deployment indicates that someone tried to start the 'bookshop-java-public-db' manually. However, this type of app (DB deployer) is not meant to be running all the time, but rather represents a 'one off task'.

So
  • check if the DB in you app works as expected
  • stop the DB app again
  • and rely on the MTA deployment to start and stop it from then on.