Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. QNAP Docker APT-GET DNS Problem

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    QNAP Docker APT-GET DNS Problem

    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kla960 last edited by

      Also im Docker Container geht ein ping an den DNS Namen:
      root@iobrokertest:/opt/iobroker# ping deb.nodesource.com
      PING a1954.dscd.akamai.net (87.123.249.26) 56(84) bytes of data.
      64 bytes from 87.123.249.26 (87.123.249.26): icmp_seq=1 ttl=61 time=13.9 ms

      apt-get kann den Namen aber nicht auflösen.
      W: Failed to fetch https://deb.nodesource.com/node_14.x/dists/bullseye/InRelease Temporary failure resolving 'deb.nodesource.com'
      Trage ich den Namen in die hosts datei ein:
      echo "87.123.249.26 deb.nodesource.com" >> /etc/hosts
      [19:36]
      Kann apt-get den Namen auflösen.
      Wieso funktioniert DNS nicht im Container mit apt-get???

      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @kla960 last edited by

        @kla960

        Ein Gegentest mit

        apt update
        

        bringt?

        K 1 Reply Last reply Reply Quote 0
        • K
          kla960 @Thomas Braun last edited by

          @thomas-braun sagte in QNAP Docker APT-GET DNS Problem:

          @kla960

          Ein Gegentest mit

          apt update
          

          bringt?

          Halt das der Name der jeweiligen respository nicht aufgelöst werden konnte.
          Macht man aber einen Ping an den fqdn wird der Name aufgelöst. Total verrückt.

          Thomas Braun 1 Reply Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @kla960 last edited by Thomas Braun

            @kla960

            Könntest du die Konsolenausgaben zeigen und nicht nacherzählen? Ich bin aus dem Geschichten-erzähl-Alter raus.

            resolvconf -l
            

            liefert?

            K 1 Reply Last reply Reply Quote 0
            • K
              kla960 @Thomas Braun last edited by

              @thomas-braun sagte in QNAP Docker APT-GET DNS Problem:

              Könntest du die Konsolenausgaben zeigen und nicht nacherzählen? Ich bin aus dem Geschichten-erzähl-Alter raus.

              ja klar.

              root@iobrokertest:/opt/iobroker# apt-get update
              Err:1 http://security.debian.org/debian-security bullseye-security InRelease
              Temporary failure resolving 'security.debian.org'
              Err:2 https://deb.nodesource.com/node_14.x bullseye InRelease
              Temporary failure resolving 'deb.nodesource.com'
              Err:3 http://deb.debian.org/debian bullseye InRelease
              Temporary failure resolving 'deb.debian.org'
              Err:4 http://deb.debian.org/debian bullseye-updates InRelease
              Temporary failure resolving 'deb.debian.org'
              Reading package lists... Done
              W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
              W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'security.debian.org'
              W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
              W: Failed to fetch https://deb.nodesource.com/node_14.x/dists/bullseye/InRelease Temporary failure resolving 'deb.nodesource.com'
              W: Some index files failed to download. They have been ignored, or old ones used instead.

              und

              root@iobrokertest:/opt/iobroker# resolvconf -l
              bash: resolvconf: command not found

              denke du wolltest das sehen

              root@iobrokertest:/opt/iobroker# cat /etc/resolv.conf
              nameserver 89.246.64.8
              nameserver 62.220.18.8

              bei den nameserver settings habe ich aber schon alles durch.
              Standard steht dort ja
              127.0.0.11 drinnen.

              Irgendwie müsste man APT debuggen um hinter die Ursache zu kommen.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @kla960 last edited by Thomas Braun

                @kla960 sagte in QNAP Docker APT-GET DNS Problem:

                Standard steht dort ja
                127.0.0.11 drinnen.

                Nein.

                Und bitte Konsolenausgaben in CodeTags setzen.
                Und nicht als root rumhampeln, user anlegen und per sudo agieren.

                K 1 Reply Last reply Reply Quote 0
                • K
                  kla960 @Thomas Braun last edited by

                  @thomas-braun sagte in QNAP Docker APT-GET DNS Problem:

                  Nein.
                  Und bitte Konsolenausgaben in CodeTags setzen.
                  Und nicht als root rumhampeln, user anlegen und per sudo agieren.

                  Also so sieht das im docker container aus wenn ich die resolv.conf nicht überschreibe:

                  root@iobrokertest:/opt/iobroker# cat /etc/resolv.conf
                  nameserver 127.0.0.11
                  options ndots:0
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @kla960 last edited by

                    @kla960 sagte in QNAP Docker APT-GET DNS Problem:

                    127.0.0.11

                    Das ist wieder so'n Docker-Gesumsel.
                    Ich dachte du hättest da den localhost 127.0.0.1 drin.

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kla960 @Thomas Braun last edited by

                      @thomas-braun sagte in QNAP Docker APT-GET DNS Problem:

                      Das ist wieder so'n Docker-Gesumsel.

                      Ja, eigentlich praktisch auf dem QNAP NAS Server aber es macht es auch komplizierter. Und immer wieder kommt es nach Updates des NAS Servers zu solchen Problemen. Habe gestern alle Möglichkeiten DNS zu setzen ausprobiert. und jetzt auf einmal das:

                      apt-get update
                      Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
                      Get:2 http://security.debian.org/debian-security bullseye-security InRelease [44,1 kB]                                     
                      Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39,4 kB]                                                    
                      Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [102 kB]
                      Get:5 https://deb.nodesource.com/node_14.x bullseye InRelease [4.586 B]
                      Get:6 http://deb.debian.org/debian bullseye/main amd64 Packages [8.183 kB]
                      Get:7 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages [769 B]
                      Get:8 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2.592 B]
                      

                      Da wirst du doch bekloppt.

                      K 1 Reply Last reply Reply Quote 0
                      • K
                        kla960 @kla960 last edited by

                        Während des Container Starts kann apt-get bei mir nicht ausgeführt werden. Später manuell aber schon. Vermute mal, dass die Netzwerkverbindung noch nicht ganz steht.
                        Manuell kann man apt-get dann ausführen.

                        Kann man in dem Script vielleicht ein network check einbauen oder im compose file mit depends_on was machen? Hat jemand eine sinnvolle Idee?

                        Danke

                        --------------------------------------------------------------------------------
                        -------------------------     2022-01-10 11:24:25      -------------------------
                        --------------------------------------------------------------------------------
                         
                        --------------------------------------------------------------------------------
                        -----                 Welcome to your ioBroker-container!                  -----
                        -----                    Startupscript is now running.                     -----
                        -----                          Please be patient!                          -----
                        --------------------------------------------------------------------------------
                         
                        --------------------------------------------------------------------------------
                        -----                        Debugging information                         -----
                        -----                                                                      -----
                        -----                                System                                -----
                        -----                    arch:                x86_64                       -----
                        -----                                                                      -----
                        -----                             Docker-Image                             -----
                        -----                    image:               v6.0.0                       -----
                        -----                    build:               2021-12-17T03:48:21+00:00    -----
                        -----                                                                      -----
                        -----                               Versions                               -----
                        -----                    node:                v14.18.2                     -----
                        -----                    npm:                 6.14.15                      -----
                        -----                                                                      -----
                        -----                                 ENV                                  -----
                        -----                    SETGID:              1000                         -----
                        -----                    SETUID:              1000                         -----
                        --------------------------------------------------------------------------------
                         
                        --------------------------------------------------------------------------------
                        -----                  Step 1 of 5: Preparing container                   -----
                        --------------------------------------------------------------------------------
                         
                        Updating Linux packages on first run...
                        W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease  Temporary failure resolving 'deb.debian.org'
                        W: Failed to fetch http://security.debian.org/debian-security/dists/bullseye-security/InRelease  Temporary failure resolving 'security.debian.org'
                        W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease  Temporary failure resolving 'deb.debian.org'
                        W: Failed to fetch https://deb.nodesource.com/node_14.x/dists/bullseye/InRelease  Temporary failure resolving 'deb.nodesource.com'
                        W: Some index files failed to download. They have been ignored, or old ones used instead.
                        
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        865
                        Online

                        31.8k
                        Users

                        79.9k
                        Topics

                        1.3m
                        Posts

                        2
                        10
                        496
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo