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

nydusify failed to convert OCI image to nydus image #1098

Closed
lostjeffle opened this issue Feb 21, 2023 · 0 comments
Closed

nydusify failed to convert OCI image to nydus image #1098

lostjeffle opened this issue Feb 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lostjeffle
Copy link

./cmd/nydusify convert --nydus-image /mnt/image-service/target/release/nydus-image --source nydus-anolis-registry.cn-hangzhou.cr.aliyuncs.com/nydus_test/bldlinux:v0.1 --target nydus-anolis-registry.cn-hangzhou.cr.aliyuncs.com/nydus_test/bldlinux:v0.1-rafs-v6-lz4

error message:

image

INFO[2023-02-21T15:16:44+08:00] pulling image nydus-anolis-registry.cn-hangzhou.cr.aliyuncs.com/nydus_test/bldlinux:v0.1  module=converter
INFO[2023-02-21T15:16:44+08:00] pulled image nydus-anolis-registry.cn-hangzhou.cr.aliyuncs.com/nydus_test/bldlinux:v0.1, elapse 604.966661ms  module=converter
INFO[2023-02-21T15:16:44+08:00] converting image nydus-anolis-registry.cn-hangzhou.cr.aliyuncs.com/nydus_test/bldlinux:v0.1  module=converter
INFO[2023-02-21T15:16:59+08:00] [2023-02-21 15:16:59.433961 +08:00] ERROR [/src/error.rs:22] Error:  module=builder
INFO[2023-02-21T15:16:59+08:00] 	"invalid parameter to validate_slice(), offset 0x23eff0, count 0xfffffffffffff010"  module=builder
INFO[2023-02-21T15:16:59+08:00] 	at utils/src/filemap.rs:138                  module=builder
INFO[2023-02-21T15:16:59+08:00] 	note: enable `RUST_BACKTRACE=1` env to display a backtrace  module=builder
INFO[2023-02-21T15:16:59+08:00] Error: InvalidImageData                       module=builder
ERRO[2023-02-21T15:16:59+08:00] fail to run /mnt/image-service/target/release/nydus-image [merge --log-level warn --prefetch-policy fs --output-json tmp/nydus-converter-4165592002/merge-output.json --bootstrap tmp/nydus-converter-4165592002/bootstrap tmp/nydus-converter-4165592002/6600e3f5fb7d81cdb9427dc3cb42ae163541e65448c83bf1f2059873f8c10e24 tmp/nydus-converter-4165592002/6c1ef113fdb5ba1416c00f5e39d7809ba72c414cd76e2404bf241135122b0d22 tmp/nydus-converter-4165592002/87663ce1ea97d01cac2f51ad75166130199ed96f05236c31510494921e99e46e]  error="exit status 1"
FATA[2023-02-21T15:16:59+08:00] convert image: merge nydus layers: copy bootstrap targz into content store: merge nydus bootstrap: merge bootstrap: run merge command: exit status 1
@adamqqqplay adamqqqplay added the bug Something isn't working label Feb 21, 2023
@imeoer imeoer changed the title mydusify failed to convert OCI image to nydus image nydusify failed to convert OCI image to nydus image Feb 21, 2023
@imeoer imeoer self-assigned this Feb 23, 2023
@imeoer imeoer closed this as completed in 2616fb2 Feb 24, 2023
jiangliu added a commit to jiangliu/image-service that referenced this issue Feb 24, 2023
There's a bug in calculate offset and size for RAFS v6 Dirent name,
it will be treat as 0 instead of 4096 if the last block is 4096 bytes.

Fixes: dragonflyoss#1098

Signed-off-by: Jiang Liu <[email protected]>
changweige pushed a commit that referenced this issue Mar 10, 2023
There's a bug in calculate offset and size for RAFS v6 Dirent name,
it will be treat as 0 instead of 4096 if the last block is 4096 bytes.

Fixes: #1098

Signed-off-by: Jiang Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants