NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.2k stars 2.69k forks source link

ERROR: failed to register layer: unlinkat /var/cache/debconf: invalid argument #3211

Open umsterdam opened 1 year ago

umsterdam commented 1 year ago

How to Fix? --> ERROR: failed to register layer: unlinkat /var/cache/debconf: invalid argument My OS : Ubuntu server 22.04 / Docker version 24.0.6

Creating network "nginx-proxy-manager_default" with the default driver Pulling app (jc21/nginx-proxy-manager:latest)... latest: Pulling from jc21/nginx-proxy-manager 3240fe174df9: Pulling fs layer 809893960d12: Pulling fs layer a5932ae5702d: Pulling fs layer d4b897580475: Pulling fs layer 9571a91e588b: Pulling fs layer c7affc4ddcd2: Pulling fs layer 8ed0e77137b8: Pulling fs layer 4bf376593b3a: Pulling fs layer dfcaf6fba81e: Pulling fs layer e0c7f0db4918: Pulling fs layer 185a87f0c914: Pulling fs layer d6f90e1fe2c8: Pulling fs layer d16355166f6f: Pulling fs layer 52a1975c47c6: Pulling fs layer 4ab00ca1bdc1: Pulling fs layer ad98e0059894: Pulling fs layer 0d2c39441b82: Pulling fs layer 9f0f7c4480d3: Pulling fs layer 190d3e187f61: Pulling fs layer fe3bfa9735ba: Download complete ef6cb022efb6: Download complete 027aa13faf8e: Download complete a89cb3685191: Download complete f792f7ae22d7: Download complete d0bb716f2735: Download complete 956cb9e17a0a: Download complete a5d63a554d90: Download complete 77a64a97e7c9: Download complete f5956dd6c985: Download complete 4f4fb700ef54: Download complete 12c831914ba9: Download complete 3ef947a55ab5: Download complete dd5061a96e74: Download complete ERROR: failed to register layer: unlinkat /var/cache/debconf: invalid argument

dmainardi commented 1 year ago

I had that problem too. But I created a LXC container into Proxmox, that's not a good idea.. Using Docker into a Virtual Machine solved my problem. You can refer to this and use Docker VFS storage. In my case the issue had nothing to do with Nginx Proxy Manager.

BluePixel4k commented 1 year ago

I get the same error. I'm also on Proxmox with a LXC (Ubuntu). But in the last few years, it has worked without problems.

dmainardi commented 1 year ago

Did you try to install your docker into a Virtual Machine? I resolved my problem in that way.. Proxmox does recommend running Docker images inside a Proxmox QEMU VM. See here

francescotili commented 1 year ago

I fixed it changing the Storage Driver of Docker from overlay2 to vfs. Not ideal, because you loose access to all your container and need to start from scratch or migrate the containers.

  1. Stop the Docker service -> systemctl stop docker
  2. Modify the daemon.json file -> nano /etc/docker/daemon.json
  3. Add the following:
    {
    "storage-driver": "vfs"
    }
  4. Save the file
  5. Restart the service -> systemctl start docker
  6. Check the new Storage Driver with docker info
  7. Retry pulling the Nginx Proxy Manager image
oconnordaniel commented 11 months ago

I ran in to the same error.

Proxmox 7.4 Create a container from the Debian 12 template that came with Proxmox

After making the change that @francescotili said, it worked fine.

github-actions[bot] commented 4 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: