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

[ bug ] 我在K8s Helm Chart项目中从代码仓库同步服务的时候遇到问题 #3961

Open
krisxia0506 opened this issue Jan 14, 2025 · 0 comments

Comments

@krisxia0506
Copy link

krisxia0506 commented Jan 14, 2025

下面是aslan里的报错日志

2025-01-14T21:14:02.932+0800    INFO    service/service/helm.go:1059    Found valid chart, Starting to save and upload files    {"requestID": "298760 
│ 06-b6c8-48e5-b927-e2a76c6881b7"}
│ 2025-01-14T21:14:03.110+0800    ERROR    service/fs/s3.go:96    Failed to copy object from helmmiddleware/service/airflow/airflow.tar.gz to helmmiddl 
│ eware/service/airflow/airflow-1.tar.gz
│ 2025-01-14T21:14:03.110+0800    ERROR    service/fs/file.go:83    Failed to upload files to s3, err: NoSuchKey: The specified key does not exist.      
│     status code: 404, request id: 5M71, host id: Z9hWb/F6iefc=
│ 2025-01-14T21:14:03.111+0800    ERROR    service/service/helm.go:1077    Failed to save or upload files for service airflow in project helmmiddleware  
│ , error: NoSuchKey: The specified key does not exist.
│     status code: 404, request id: 5M733PDP0XQ0GBD1, host id: Z96iefc=    {"reques  
│ tID": "29876006-b6c8-48e5-b927-e2a76c6881b7"}

根据源码里的这个位置

if err = client.Upload(s3Storage.Bucket, localPath, s3Path); err != nil {

s3Path打印出来是helmmiddleware/service/airflow/airflow.tar.gz
我在我的s3里找到了,但他的路径是这样的s3://zadig-xxxx/zadig-s3/helmmiddleware/service/airflow/airflow.tar.gz
这导致CopyObject报错

err = client.CopyObject(s3Storage.Bucket, s3Path, targetPath)

微信(测试版) 2025-01-14 21 39 46
我的zadig对象存储配置是这样的
CleanShot 2025-01-14 at 21 42 44@2x

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

1 participant