Open inklesspen1rus opened 2 months ago
Any error logs are output from nydus-snapshotter for the ubuntu:20.04 image? The problem doesn't seem to be nydus related (ubuntu:20.04 is not a nydus image), have you tried removing --snapshotter nydus
?
Thank you for reply!
Yes, it works fine with --snapshotter overlayfs (Currently I have default snapshotter - stargz):
$ nerdctl --snapshotter=overlayfs pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 180.0s total: 26.2 M (149.3 KiB/s)
With --snapshotter=nydus
$ nerdctl --snapshotter=nydus pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 31.9s total: 26.2 M (842.3 KiB/s)
FATA[0032] failed to commit snapshot extract-111208692-sqvL sha256:106e8431b412f51ccd75ea46a2d5cb4343b23273cbcf50188377cb93aa9a6d82: open /home/inklesspen/.local/share/containerd-nydus/snapshots/1/fs/var/cache/apt/archives/partial: permission denied: unknown
Here's nydus logs: nydus-snapshotter.log
Is it would be simpler if I share qemu virtual machine image with that issue?
So you won't worry about reproducing bug
There are no exceptions in the nydus snapshotter logs, please check if it is related to the access permissions of the directory where /home/inklesspen/.local/share/containerd-nydus/snapshots/1/fs/var/cache/apt/archives/partial
is located, e.g., the access perm of the directory /home/inklesspen/.local/share/containerd-nydus
are not configured correctly.
Chmodded 777, still doesn't work
$ cd /home/inklesspen/.local/share/containerd-nydus
$ ls -lah
total 80K
drwx------ 1 inklesspen inklesspen 74 апр 24 16:08 .
drwxr-xr-x 1 inklesspen inklesspen 1,4K апр 25 02:04 ..
drwxr-xr-x 1 inklesspen inklesspen 0 апр 21 16:00 cache
drwxr-xr-x 1 inklesspen inklesspen 42 апр 21 16:00 logs
-rw------- 1 inklesspen inklesspen 64K апр 24 16:08 metadata.db
-rw------- 1 inklesspen inklesspen 64K апр 24 16:01 nydus.db
drwx------ 1 inklesspen inklesspen 0 апр 24 16:08 snapshots
$ ls -lah snapshots
total 0
drwx------ 1 inklesspen inklesspen 0 апр 24 16:08 .
drwx------ 1 inklesspen inklesspen 74 апр 24 16:08 ..
$ chmod -R 777 .
$ ls -lah
total 88K
drwxrwxrwx 1 inklesspen inklesspen 74 апр 24 16:08 .
drwxr-xr-x 1 inklesspen inklesspen 1,4K апр 25 10:59 ..
drwxrwxrwx 1 inklesspen inklesspen 0 апр 21 16:00 cache
drwxrwxrwx 1 inklesspen inklesspen 42 апр 21 16:00 logs
-rwxrwxrwx 1 inklesspen inklesspen 64K апр 25 11:00 metadata.db
-rwxrwxrwx 1 inklesspen inklesspen 64K апр 24 16:01 nydus.db
drwxrwxrwx 1 inklesspen inklesspen 2 апр 25 11:00 snapshots
$ nerdctl --snapshotter=nydus pull ubuntu:20.04
docker.io/library/ubuntu:20.04: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:71b82b8e734f5cd0b3533a16f40ca1271f28d87343972bb4cd6bd6c38f1bd38e: exists |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:39e6324487ef503ef36c38bf0b57935d639398ca0d6081fd20a17f90b956a7a4: exists |++++++++++++++++++++++++++++++++++++++|
config-sha256:33985b2ba010a084175876629b280ed9ae49965e9ee5d30b79896cad707bf350: exists |++++++++++++++++++++++++++++++++++++++|
layer-sha256:43cfb69dbb464ebad014cd4687bf02ee4f5011d540916c658af36faafbfd3481: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 14.1s total: 26.2 M (1.9 MiB/s)
FATA[0014] failed to commit snapshot extract-313934468-QzOP sha256:106e8431b412f51ccd75ea46a2d5cb4343b23273cbcf50188377cb93aa9a6d82: open /home/inklesspen/.local/share/containerd-nydus/snapshots/4/fs/var/cache/apt/archives/partial: permission denied: unknown
Issue
Tried to pull ubuntu:20.04 via nerdctl using nydus-snapshotter, but got permission denied: unknown:
Expected result
alpine:3 pulls fine:
Environment
containerd in rootless via user systemd config.tar.gz from $HOME/.config