Git Product home page Git Product logo

Comments (4)

imeoer avatar imeoer commented on May 23, 2024

Thanks for reporting, are there any reproducible steps?

from nydus-snapshotter.

changweige avatar changweige commented on May 23, 2024

Please just run my converted v6 container image. It is quite easy to reproduce in my environment.

sudo nerdctl --snapshotter nydus   run -it --net none gechangwei/python:3.7-nydus bash

from nydus-snapshotter.

imeoer avatar imeoer commented on May 23, 2024

Thanks, there doesn't seem to be anything wrong in my environment, but a possible reproducible step via investigation like this:

  1. start nydus snapshotter with options:
containerd-nydus-grpc \
  --config-path /path/to/nydus/config.json \
  --log-to-stdout
  • no --daemon-mode shared and --daemon-backend fscache option.
  • enable --log-to-stdout to print an error message from nydusd.
  1. run nydus v6 image with nerdctl/ctr:
nerdctl --snapshotter nydus run -it --net none localhost:5000/python:3.7-nydus-v6 bash

An error message is thrown by nydusd:

[2022-07-11 03:34:13.578151 +00:00] ERROR [error/src/error.rs:21] Error:
	"failed to read metadata from backend, Registry(Request(Common(reqwest::Error { kind: Request, url: Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"localhost\")), port: Some(5000), path: \"/v2/ubuntu/blobs/sha256:83369b0db62aa01e50a6b4265a9270b184ccfaa92c22005009c6fc667d1a69ec\", query: None, fragment: None }, source: hyper::Error(Connect, Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 336130315, library: \"SSL routines\", function: \"ssl3_get_record\", reason: \"wrong version number\", file: \"ssl/record/ssl3_record.c\", line: 331 }]))) }, X509VerifyResult { code: 0, error: \"ok\" })) })))"
	at storage/src/meta/mod.rs:643
	note: enable `RUST_BACKTRACE=1` env to display a backtrace
[2022-07-11 03:34:13.578255 +00:00] ERROR [error/src/error.rs:21] Error:
	Rafs(CreateDevice(Os { code: 5, kind: Uncategorized, message: "I/O error" }))
	at src/bin/nydusd/daemon.rs:140
	note: enable `RUST_BACKTRACE=1` env to display a backtrace
[2022-07-11 03:34:13.578294 +00:00] ERROR [src/bin/nydusd/main.rs:663] Failed in starting daemon: Invalid argument (os error 22)

Configuration like this in my /path/to/nydus/config.json:

{
  "device": {
    "backend": {
      "type": "registry",
      "config": {
        "scheme": "https",
        "timeout": 5,
        "connect_timeout": 5,
        "retry_limit": 0
      }
    },
    "cache": {
      "type": "blobcache",
      "config": {
        "work_dir": "/tmp/cache"
      }
    }
  },
  "mode": "direct",
  "digest_validate": false,
  "iostats_files": false,
  "enable_xattr": true,
  "fs_prefetch": {
    "enable": false,
    "threads_count": 6,
    "merging_size": 131072
  }
}

In my test steps, the root cause is the device.backend.config.scheme field is set with https, but http should be used for localhost:5000/python:3.7-nydus-v6 image.

@changweige could we append a --log-to-stdout option to snapshotter CLI startup options to check if have any error messages thrown by nydusd? thanks!

from nydus-snapshotter.

changweige avatar changweige commented on May 23, 2024

Let's close it since snapshotter will have a more detailed nydusd log with PR #118 and I no longer can reproduce it.

from nydus-snapshotter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.