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

Error: "hdb" couldn't be found #223

Open
SovithKothari opened this issue Dec 20, 2023 · 5 comments
Open

Error: "hdb" couldn't be found #223

SovithKothari opened this issue Dec 20, 2023 · 5 comments

Comments

@SovithKothari
Copy link

SovithKothari commented Dec 20, 2023

Hi team,

We are trying to move our existing Docker container to distroless container method.
In local, we are able to build the image and run the container but when we push it to our repo, our kyma k8s deployment pod is crashing.

Error:

[cds] - loading server from { file: 'srv/server.js' }
[utility] - Enter-UtilityService-Constructor()
[server] - [CDS][Event][BOOTSTRAP]
[cds] - loaded model from 18 file(s):
srv/server.cds
db/common.cds
app/services.cds
srv/api/v2/dataCenterService.cds
srv/api/v1/dataCentersService.cds
srv/api/v1/dataCenterService.cds
srv/api/v1/dataCenterMonitorService.cds
srv/api/common-apis/masterDataService.cds
srv/api/common-apis/flexiConfiguration.cds
srv/api/common-apis/decisionTree.cds
app/datacenter/annotations.cds
app/cloud_service/annotations.cds
app/admin/annotations.cds
srv/api/api.cds
srv/health/health.cds
db/data-model.cds
db/API-schema/API-response.cds
node_modules/@sap/cds/common.cds
/app/node_modules/@sap/cds/libx/_runtime/hana/driver.js:198
throw new Error(`"${name}" could not be found. Please make sure it is installed.`)
^
Error: "hdb" could not be found. Please make sure it is installed.
at _getHanaDriver (/app/node_modules/@sap/cds/libx/_runtime/hana/driver.js:198:13)
at Object.<anonymous> (/app/node_modules/@sap/cds/libx/_runtime/hana/driver.js:205:18)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:10
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Object.<anonymous> (/app/node_modules/@sap/cds/libx/_runtime/hana/pool.js:5:14)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
Node.js v20.10.0

We have all the dependencies and packages in our package.json and we are also able to verify it in our local running container but in our kyma k8s pod, it says that it is not able to find the hdb package.

Kindly help us in understanding and fixing this issue
Please let me know if you need any additional resource(s)/help

@gregorwolf
Copy link

Are aware that the links you've provided are pointing to SAP internal repositories?

@SovithKothari
Copy link
Author

SovithKothari commented Dec 21, 2023

Hi @gregorwolf ,

Yes i am aware about it and the reason for doing so is my colleague raised an issue before(link mentioned below). They were asking steps to reproduce the issue locally. The point is that it is working perfectly in local but it is causing issue in our kyms k8s dev environment.

Secondly, we have no exact contacts to reach out to for this issue. When we looked into the documentation for help and support, it took us here. Thus, with lack of choice, we have shared the details and raised an issue. Kindly help us here in understanding and fixing the issue.

previous issue ticket link: https://github.tools.sap/cap/issues/issues/14639

Best regards,
Sovith

@gregorwolf
Copy link

Have you looked inside the created container if the hdb packages exists in the node_modules folder?

@SovithKothari
Copy link
Author

Hi @gregorwolf ,

Yes, it is present in package.json dependency and even while running the local docker container, i looked into the node_modules and i was able to see the hdb packages and related folders.

Best Regards,
Sovith

@SovithKothari
Copy link
Author

Hi @gregorwolf can you please help us here?

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

2 participants