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

Error pulling from Docker image: "failed to register layer: failed to Lchown..." #1156

Open
KrishnaTO opened this issue Dec 12, 2024 · 2 comments · May be fixed by #1157
Open

Error pulling from Docker image: "failed to register layer: failed to Lchown..." #1156

KrishnaTO opened this issue Dec 12, 2024 · 2 comments · May be fixed by #1157
Assignees
Labels

Comments

@KrishnaTO
Copy link

KrishnaTO commented Dec 12, 2024

Attempting to pull ODK fresh from docker, in freshly install Ubuntu

System Info - OS / Docker
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble
docker info
Client: Docker Engine - Community
 Version:    27.4.0
 Context:    rootless
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.31.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 2
 Server Version: 27.4.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 88bf19b2105c8b17560993bee28a01ddc2f97182
 runc version: v1.2.2-0-g7cb3632
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  rootless
  cgroupns
 Kernel Version: 6.8.0-50-generic
 Operating System: Ubuntu 24.04.1 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.03GiB
 Name: <server>
 ID: e8eabc16-1ee7-4c98-98ae-ab85247ab408
 Docker Root Dir: /home/<user>/.local/share/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No cpuset support
WARNING: No io.weight support
WARNING: No io.weight (per device) support
WARNING: No io.max (rbps) support
WARNING: No io.max (wbps) support
WARNING: No io.max (riops) support
WARNING: No io.max (wiops) support
docker pull obolibrary/odkfull

ran into error:

...
82a34e4214f8: Pull complete 
9ab6a4fa71c3: Pull complete 
e68a9a3111ab: Pull complete 
88216a0585cc: Pull complete 
177271459459: Pull complete 
dd43cf9f7b71: Extracting [==================================================>]  3.816MB/3.816MB
726014107d61: Download complete 
e14b8bb0e65e: Download complete 
cea73b524308: Download complete 
14e311a9640b: Download complete 
failed to register layer: failed to Lchown "/usr/local/lib/node_modules/obographviz/node_modules/underscore/LICENSE" for UID 1119519827, GID 1490099278 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /usr/local/lib/node_modules/obographviz/node_modules/underscore/LICENSE: invalid argument

Found similar issue from docker upstream here, moby/moby#45757, but wanted to confirm if anyone else is also getting issue.

Thanks

@KrishnaTO KrishnaTO changed the title Error pulling from Docker image Error pulling from Docker image: "failed to register layer: failed to Lchown... Dec 12, 2024
@KrishnaTO KrishnaTO changed the title Error pulling from Docker image: "failed to register layer: failed to Lchown... Error pulling from Docker image: "failed to register layer: failed to Lchown..." Dec 12, 2024
@KrishnaTO
Copy link
Author

Update: Able to pull obolibrary/odkfull:v1.5.2, but not after.

@gouttegd
Copy link
Contributor

Re-opening as this is still something that should be fixed in newer images.

I confirm that indeed, in ODK 1.5.4 all files in the obographviz/node_modules/underscore directory have very weird, very large UID and GID:

$ ls -lh /usr/local/lib/node_modules/obographviz/node_modules/underscore
total 112K
-rw-r--r-- 1 1119519827 1490099278 1.1K Dec  4 13:50 LICENSE
-rw-r--r-- 1 1119519827 1490099278 1.2K Dec  4 13:50 README.md
-rw-r--r-- 1 1119519827 1490099278 1.2K Dec  4 13:50 package.json
-rw-r--r-- 1 1119519827 1490099278  17K Dec  4 13:50 underscore-min.js
-rw-r--r-- 1 1119519827 1490099278  27K Dec  4 13:50 underscore-min.map
-rw-r--r-- 1 1119519827 1490099278  52K Dec  4 13:50 underscore.js

I’ll check if there are other files in the same situation and fix them all.

@gouttegd gouttegd reopened this Dec 12, 2024
@gouttegd gouttegd self-assigned this Dec 12, 2024
@gouttegd gouttegd added the bug label Dec 12, 2024
@gouttegd gouttegd linked a pull request Dec 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants