cancel
Showing results for 
Search instead for 
Did you mean: 

CAP-Apps crashes after deploying when trying to start

haykma
Participant
0 Kudos
1,925

Hi Community,

i have developed a cap-application which i already could deploy in the past. Now, after developing a while and testing in hybrid mode (using destination), i tried to build and deploy the actual state.
After deploying when the deployer tries to start the cap-app (approuter + service) i get the error "cds: not found".
Does anyone have an idea where to look and how to solve this error?

As an attachment i have added a screenshot from log of deployment to btp.



kind regards
Matthias

View Entire Topic
FelixB
Associate
Associate
0 Kudos

Hi,

I am hitting the same issue. I try to deploy the hello world app from the cloud-cap-samples to a test space we set up in our team BTP account. I put @Sisn/cds in the dependencies. I did npm i, cds add cf-manifest,  cds build --production, then cf create-service-push.
During deployment I see:

Installing node modules (package.json + package-lock.json)
added 74 packages, and audited 75 packages in 1s

so packages should be there. When deplyoment finishes I get the same as Matthias:

2024-02-13T11:00:19.59+0100 [APP/PROC/WEB/0] OUT > hello@1.0.0 start
2024-02-13T11:00:19.59+0100 [APP/PROC/WEB/0] OUT > cds serve
2024-02-13T11:00:19.60+0100 [APP/PROC/WEB/0] ERR sh: 1: cds: not found

I would be glad if someone had an idea what is wrong here. Thanks in advance!
Felix

monokizsolt7
Participant
0 Kudos

Hello Felix, were you able to solve your issue? I am facing the same problem while deploying with cds version 5, however it has worked before..

FelixB
Associate
Associate
0 Kudos
Hi Zsolt, I think there is no more "cds" in the binaries and you have to use "cds-serve". See https://cap.cloud.sap/docs/releases/archive/2023/jun23#use-cds-serve-as-start-script