fabianbees/breitbandmessung-docker

Docker / Portainer Deployment schlägt fehl, exit code 100

Closed this issue · 3 comments

Moin,

bei mir schlägt das Deployment per Portainer fehl mit folgendem Fehler:

failed to deploy a stack: breitband-desktop Pulling breitband-desktop Warning failed to solve: process "/bin/sh -c apt update && apt upgrade -yy && apt install -y apt-utils nano htop libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libxss1 libasound2 wget xterm libnss3 locales xdotool xclip && wget https://download.breitbandmessung.de/bbm/Breitbandmessung-linux.deb && dpkg -i Breitbandmessung-linux.deb && locale-gen de_DE.UTF-8 && rm -rf /var/cache/apt /var/lib/apt/lists" did not complete successfully: exit code: 100

Dabei ist egal ob ich es per App Template oder wie hier im Repo vorgeschlagen per 'use a git repository' Stack versuche - immer derselbe Fehler.
Leider bin ich selber nicht fündig geworden - 'apt-transport-https' installieren war nicht die Lösung und 'git' ist bereits installiert.

Ausgangssystem ist eine Ubuntu 22.04.3 LTS VM mit eigentlich nur Portainer drauf installiert.
Die Uhrzeit auf dem System ist korrekt, an NTP liegt es nicht.

Wenn ich es manuell via docker-compose mache, schlägt der Build Befehl fehl, hier kann man mehr sehen:

[+] Building 1.5s (6/9)                                                                                                
 => [breitband-desktop internal] load build definition from Dockerfile                                            0.0s
 => => transferring dockerfile: 2.11kB                                                                            0.0s
 => [breitband-desktop internal] load .dockerignore                                                               0.0s
 => => transferring context: 2B                                                                                   0.0s
 => [breitband-desktop internal] load metadata for docker.io/jlesage/baseimage-gui:ubuntu-20.04                   0.4s
 => CACHED [breitband-desktop 1/5] FROM docker.io/jlesage/baseimage-gui:ubuntu-20.04@sha256:a9e5908f9f299354833c  0.0s
 => [breitband-desktop internal] load build context                                                               0.0s
 => => transferring context: 68B                                                                                  0.0s
 => ERROR [breitband-desktop 2/5] RUN apt update && apt upgrade -yy &&   apt install -y apt-utils nano htop liba  0.9s
------                                                                                                                 
 > [breitband-desktop 2/5] RUN apt update && apt upgrade -yy &&   apt install -y apt-utils nano htop libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libxss1 libasound2 wget xterm libnss3 locales xdotool xclip &&   wget https://download.breitbandmessung.de/bbm/Breitbandmessung-linux.deb && dpkg -i Breitbandmessung-linux.deb &&   locale-gen de_DE.UTF-8 &&   rm -rf /var/cache/apt /var/lib/apt/lists:                                                                        
0.620                                                                                                                  
0.620 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0.620 
0.688 Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
0.688   Temporary failure resolving 'archive.ubuntu.com'
0.688 Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease
0.688   Temporary failure resolving 'archive.ubuntu.com'
0.689 Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease
0.689   Temporary failure resolving 'archive.ubuntu.com'
0.694 Err:4 http://security.ubuntu.com/ubuntu focal-security InRelease
0.694   Temporary failure resolving 'security.ubuntu.com'
0.694 Err:5 http://deb.nodesource.com/node_12.x focal InRelease
0.694   Temporary failure resolving 'deb.nodesource.com'
0.706 Reading package lists...
0.738 Building dependency tree...
0.741 Reading state information...
0.744 All packages are up to date.
0.744 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'archive.ubuntu.com'
0.744 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
0.744 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
0.744 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
0.744 W: Failed to fetch http://deb.nodesource.com/node_12.x/dists/focal/InRelease  Temporary failure resolving 'deb.nodesource.com'
0.744 W: Some index files failed to download. They have been ignored, or old ones used instead.
0.754 
0.754 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0.754 
0.764 Reading package lists...
0.787 Building dependency tree...
0.791 Reading state information...
0.795 Calculating upgrade...
0.807 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0.819 
0.819 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
0.820 
0.828 Reading package lists...
0.863 Building dependency tree...
0.863 Reading state information...
0.863 Package apt-utils is not available, but is referred to by another package.
0.863 This may mean that the package is missing, has been obsoleted, or
0.863 is only available from another source
0.863 However the following packages replace it:
0.863   apt
0.863 
0.863 Package locales is not available, but is referred to by another package.
0.863 This may mean that the package is missing, has been obsoleted, or
0.863 is only available from another source
0.863 
0.863 E: Package 'apt-utils' has no installation candidate
0.864 E: Unable to locate package nano
0.864 E: Unable to locate package htop
0.865 E: Unable to locate package libatk1.0-0
0.865 E: Couldn't find any package by glob 'libatk1.0-0'
0.866 E: Unable to locate package libatk-bridge2.0-0
0.866 E: Couldn't find any package by glob 'libatk-bridge2.0-0'
0.867 E: Unable to locate package libgtk-3-0
0.868 E: Unable to locate package libgbm-dev
0.868 E: Unable to locate package libxss1
0.868 E: Unable to locate package libasound2
0.868 E: Unable to locate package wget
0.868 E: Unable to locate package xterm
0.868 E: Unable to locate package libnss3
0.868 E: Package 'locales' has no installation candidate
0.868 E: Unable to locate package xdotool
0.868 E: Unable to locate package xclip
------
failed to solve: process "/bin/sh -c apt update && apt upgrade -yy &&   apt install -y apt-utils nano htop libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libxss1 libasound2 wget xterm libnss3 locales xdotool xclip &&   wget https://download.breitbandmessung.de/bbm/Breitbandmessung-linux.deb && dpkg -i Breitbandmessung-linux.deb &&   locale-gen de_DE.UTF-8 &&   rm -rf /var/cache/apt /var/lib/apt/lists" did not complete successfully: exit code: 100

Ich bin nicht sicher, warum hier die Auflösung fehlschlägt. DNS hatte ich auf 1.1.1.1 und 8.8.8.8 umgestellt - unverändert derselbe Fehler. Wenn ich die genannten Adressen anpinge - kein Problem mit der DNS Auflösung.
Es gibt auch kein allgemeines Problem - andere Templates kann ich problemlos deployen, einzig die Breitbandmessung will nicht.

Manuell einen der oben angemerkten Befehle auf dem Ubuntu-System ausgeführt:

apt install apt-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-utils is already the newest version (2.4.9).
apt-utils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.

Ich kapier's nicht.

Für mich klingt das tatsächlich nach einem Fehler in der Namensauflösung der Ubuntu-Server der apt Paketverwaltung.
Dies dürfte Heimnetz-spezifisch sein, da bei anderen Nutzern der Fehler nicht auftritt (evtl. blockiert eine Firewall ausgehenden DNS Traffic auf Port 53).

Evtl. mal versuchen den container bspw. mit dem Zusatz --dns 1.1.1.1 erstellen und starten.

Danke für die Antwort.
DNS im Dockerfile mitreichen war's nicht, aber ich habe die Antwort gefunden:

Ein Reboot der Host-VM für Docker hat's gefixt.

Okay, dann schließe ich dieses issue.