Skip to content

compression algorithm should be none or lz4_block #1644

@wswsmao

Description

@wswsmao

I get error like this.
according to
https://github.com/dragonflyoss/nydus/blob/master/docs/chunk-deduplication.md

$ RUST_BACKTRACE=1 nydusify chunkdict generate --sources  abushwang/redis:7.2.6-nydusify,abushwang/redis:7.4-nydusify,abushwang/redis:7.4.1-nydusify --target abushwang/redis:nydus_chunkdict --source-insecure --target-insecure
INFO[2024-11-04T02:51:53Z] Parsing image abushwang/redis:7.2.6-nydusify 
INFO[2024-11-04T02:51:59Z] Pulling Nydus bootstrap to output/abushwang:redis:7.2.6-nydusify/nydus_bootstrap 
INFO[2024-11-04T02:52:01Z] Parsing image abushwang/redis:7.4-nydusify   
INFO[2024-11-04T02:52:07Z] Pulling Nydus bootstrap to output/abushwang:redis:7.4-nydusify/nydus_bootstrap 
INFO[2024-11-04T02:52:10Z] Parsing image abushwang/redis:7.4.1-nydusify 
INFO[2024-11-04T02:52:16Z] Pulling Nydus bootstrap to output/abushwang:redis:7.4.1-nydusify/nydus_bootstrap 
INFO[2024-11-04T02:52:18Z] Invoking 'nydus-image chunkdict generate' command 
Warning: Blob with id '33b39229606897a7712995a726e992d8d96ce864a5c2c8e6a3b19e79b7bee53e' is smaller than 4096 bytes.
[2024-11-04 02:53:37.862528 +00:00] ERROR [/src/error.rs:18] Stack:
   0: nydus_api::error::make_error

[2024-11-04 02:53:37.862586 +00:00] ERROR [/src/error.rs:19] Error:
        "compression algorithm should be none or lz4_block"
        at utils/src/compress/mod.rs:45
Error: Invalid argument (os error 22)
ERRO[2024-11-04T02:53:37Z] fail to run nydus-image [chunkdict generate --log-level warn --bootstrap output/chunkdict_bootstrap --database sqlite:///home/abushwang/nydus-static-2.3.0/output/database.db --output-json output/nydus_bootstrap_output.json output/abushwang:redis:7.2.6-nydusify/nydus_bootstrap output/abushwang:redis:7.4-nydusify/nydus_bootstrap output/abushwang:redis:7.4.1-nydusify/nydus_bootstrap]  error="exit status 1"
FATA[2024-11-04T02:53:37Z] invalid nydus bootstrap format: exit status 1 

I get nydusify images by this command:

$ nydusify convert --source abushwang/redis:$source_tag --target abushwang/redis:$source_tag-nydusify

nydusify comes from this:

$ wget https://github.com/dragonflyoss/nydus/releases/download/v2.3.0/nydus-static-v2.3.0-linux-amd64.tgz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions