cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Deployment - Error on starting DB Deployer App

jens_borau
Explorer
0 Kudos

I try to deploy the CAP bookshop example app to BTP Trial Cloud Foundry.

Everything is deployed but the my-bookshop-db-deployer app does not start and crashes.

In the log I find the following error messages:

2023-08-16T13:17:44.64+0000 [APP/PROC/WEB/0] ERR npm notice

2023-08-16T13:17:44.64+0000 [APP/PROC/WEB/0] ERR npm notice New minor version of npm available! 9.5.1 -> 9.8.1

2023-08-16T13:17:44.64+0000 [APP/PROC/WEB/0] ERR npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>

2023-08-16T13:17:44.64+0000 [APP/PROC/WEB/0] ERR npm notice Run `npm install -g npm@9.8.1` to update!

2023-08-16T13:17:44.64+0000 [APP/PROC/WEB/0] ERR npm notice

Does anyone have an idea what I can do?

lars_lutz
Explorer
0 Kudos

Could you please share your package.json or any other npm related config (for example package-lock.json) of the mentioned application?

jens_borau
Explorer
0 Kudos

mtayaml.txt

package-lockjson.txt

Sure. I added the package.json, the package-lock.json and the mta.yaml

jens_borau
Explorer

Accepted Solutions (1)

Accepted Solutions (1)

martinstenzig
Contributor
0 Kudos

Jens,

The db deployer intentionally starts up as a service and then terminates once it has done its job. It is not supposed to be "running" continuously.

The messages you have above can usually be ignored. If your 'cf deploy [your mta file]' really terminates with an error you might want to open up an additional terminal window and use the command 'cf logs my-bookshop-db-deployer' once you run that it will redirect the console output of that window to that screen. Then restart cf deploy... and see what details you get in the console of the db-deployer.

jens_borau
Explorer
0 Kudos

Thanks for the tip. I have look at the HANA db and the tables were created and filled with the data from my csv files.

Answers (0)