Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to deploy the application as per solution steps #8

Open
jsaurabh1 opened this issue Aug 25, 2021 · 8 comments
Open

Not able to deploy the application as per solution steps #8

jsaurabh1 opened this issue Aug 25, 2021 · 8 comments

Comments

@jsaurabh1
Copy link

Hi Team,

I am using HANA cloud Foundry to deploy this application as per the steps mentioned in this tutorial. However getting the error in the step Deploy the Application , where I am executing cf push command in db folder of the application but databse schema is not getting created. Attached here log file.
Also the refer the SAP incident 509317 / 2021 created for this issue?

Could you please help me to find out the issue and deploy the application?

error_log_from_cmd_prompt.txt
Thank You
Saurabh

@ksati
Copy link
Contributor

ksati commented Sep 7, 2021

Hi Team,

I am using HANA cloud Foundry to deploy this application as per the steps mentioned in this tutorial. However getting the error in the step Deploy the Application , where I am executing cf push command in db folder of the application but databse schema is not getting created. Attached here log file.
Also the refer the SAP incident 509317 / 2021 created for this issue?

Could you please help me to find out the issue and deploy the application?

error_log_from_cmd_prompt.txt
Thank You
Saurabh

Hi Saurabh,

Thanks for reaching out to us in this regard. logs shared are not sufficient to debug the issue. Can you please share the logs using the command cf logs hdi-deployer --recent after you app is crashed.

Thanks.

Regards,
Satish

@jsaurabh1
Copy link
Author

jsaurabh1 commented Sep 13, 2021 via email

@ksati
Copy link
Contributor

ksati commented Sep 15, 2021

Hi Saurabh,

Thanks for sharing the logs. As shown in the logs, there is an issue with hdi cds plugin. In order to make it work, you can try adapting your package.json file in accordance with SAP HANA latest version.

Found similar issue here, you can try this.
https://answers.sap.com/questions/13048899/error-could-not-find-the-comsaphanadicds-build-plu.html

Also, please be noted that as mentioned in the setup guide -
"This sample scenario is for learning purposes only. It is intended to give you an understanding of the various technical aspects related to extending SAP S/4HANA Cloud. The sample scenario may not always be available in a readily consumable state due to the continuous improvements being made in the underlying products or services. If this is the case, appropriate adaptations based on the latest documentation of the respective products or services are required."

Regards,
Satish

@jsaurabh1
Copy link
Author

jsaurabh1 commented Sep 21, 2021 via email

@ksati
Copy link
Contributor

ksati commented Sep 24, 2021

Hi Saurabh,

Yes, it looks similar. It worked for us by having the below code in db/package.json file.

{
"name": "hdi-deployer",
"dependencies": {
"@sap/hdi-deploy": "latest"
},
"cds": {
"hana": {
"deploy-format": "hdbtable"
},
"requires": {
"db": {
"kind": "hana"
}
}
},
"scripts": {
"start": "node node_modules/@sap/hdi-deploy/deploy.js"
}
}

@jsaurabh1
Copy link
Author

CF Log3.txt
Hi Still the issue hasn't gone. Attached here log.
HANA DB schema is still not getting created.

@ksati
Copy link
Contributor

ksati commented Oct 1, 2021

Hi Saurabh,

Can you please debug why it is failing using cf logs hdi-deployer --recent.
The logs you have shared are the command prompt logs.

Regards,
Satish

@yyyyvon
Copy link

yyyyvon commented Jan 19, 2022

Hello,
i got the same error, i tried this solution but it doesn't work.

Here are the logs from cf logs hdi-deployer --recent.

2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: "src/GENERICDOCUMENT.hdbcds": could
not create a compile unit for the file [8211714]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT at "src/GENERICDOCUMENT.hdbcds" (0:0)
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: Could not find the "com.sap.hana.di.cds" build plugin [8210501]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: Adding "src/GENERICDOCUMENT.hdbcds"
for deploy... failed [8211700]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: Preparing... failed [8211602]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Preparing the make transaction... ok (0s 69ms)
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Make failed (5 errors, 11 warnings): tried
to deploy 15 files, undeploy 0 files, redeploy 0 dependent files
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: Making... failed [8211605]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Error: Starting make in the container "A7354C3FBBD641C5A659C0E4ADBAE87A" with 15 files to deploy, 0 files to undeploy... failed [8214168]
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] ERR Deployment to container A7354C3FBBD641C5A659C0E4ADBAE87A failed - error: HDI make failed [Deployment ID: none].
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT Deployment ended at 2022-01-19 21:15:25
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] ERR Error: HDI make failed
2022-01-19T22:15:25.18+0100 [APP/PROC/WEB/0] OUT (2s 589ms)
2022-01-19T22:15:25.19+0100 [APP/PROC/WEB/0] ERR npm notice
2022-01-19T22:15:25.19+0100 [APP/PROC/WEB/0] ERR npm notice New minor version of npm available! 8.0.0 -> 8.3.1
2022-01-19T22:15:25.19+0100 [APP/PROC/WEB/0] ERR npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.3.1
2022-01-19T22:15:25.19+0100 [APP/PROC/WEB/0] ERR npm notice Run npm install -g [email protected] to update!
2022-01-19T22:15:25.19+0100 [APP/PROC/WEB/0] ERR npm notice
2022-01-19T22:15:25.21+0100 [APP/PROC/WEB/0] OUT Exit status 1
2022-01-19T22:15:30.48+0100 [CELL/0] OUT Cell 4e734e31-d9cc-4b4a-9f8b-948875132f7c stopping instance 8364a985-d710-428b-510e-6df6
2022-01-19T22:15:30.48+0100 [CELL/0] OUT Cell 4e734e31-d9cc-4b4a-9f8b-948875132f7c destroying container for instance 8364a985-d710-428b-510e-6df6
2022-01-19T22:15:30.50+0100 [API/0] OUT Process has crashed with type: "web"
2022-01-19T22:15:30.53+0100 [API/0] OUT App instance exited with guid 51090ebb-e358-48c1-bcc1-b486f178fa3b payload: {"instance"=>"8364a985-d710-428b-510e-6df6", "index"=>0, "cell_id"=>"4e734e31-d9cc-4b4a-9f8b-948875132f7c", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>5, "crash_timestamp"=>1642626930479906185, "version"=>"f0e23ec7-1ff8-40a8-967d-64c35de58f29"}
2022-01-19T22:15:30.71+0100 [PROXY/0] OUT Exit status 137
2022-01-19T22:15:31.59+0100 [CELL/0] OUT Cell 4e734e31-d9cc-4b4a-9f8b-948875132f7c successfully destroyed container for instance 8364a985-d710-428b-510e-6df6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants