Error: "hdb" couldn't be found
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, javascript, kubernetes, nodejs
- 领域
- devops, infrastructure
调研方向
从 package.json、Docker 镜像内容以及日志中显示的 srv/server.js 启动路径开始。将本地构建的镜像与部署到 Kyma Kubernetes pod 的镜像进行比较,然后验证 hdb 在那里不可用的原因,并确认 pod 能够使用已声明的依赖项成功启动。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- JavaScript
- 星标
- 322
- 派生
- 99
- 平均合并
- 24 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SAP/node-hdb 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 65/100
-
Add support for statement distribution可能重新可做 @linjun-he-sap 于 119 天前认领,目前没有进行中的 PR。 未关闭enhancement
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
t0ggles
难度 2/5 1-3 小时 新手友好度 70/100
nolimits4web/swiper#8240 · 1 条评论 ·
-
netbox status: backlog topic: testing type: housekeeping
难度 2/5 1-3 小时 新手友好度 70/100
netbox-community/netbox#23395 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
[scanner] check:spelling skips blog/ — posts and author metadata are never spell-checked可能已有人在做 @hivecommons-hive 今天认领。 未关闭agent/scanner bug hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
Edit: HTVKey.vn未关闭channels:edit check:passed
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 6 天内回复