Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Container can not connect to Internet

Container can not connect to Internet

Scheduled Pinned Locked Moved Solved Support
dnsunbound
5 Posts 3 Posters 1.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fisi
    wrote on last edited by girish
    #1

    Hello community,

    I've been experiencing problems with the internet in the containers for a short time. I noticed it because the Nextcloud instances couldn't connect to the Appstore. The containers are all externally accessible.

    A curl google.de on the host system delivers a correct result.

    A curl google.de inside a container delivers the following error:
    curl: (7) Failed to connect to google.de port 80 after 3131 ms: No route to host

    Nslookup returns correct values on the host system and in a container.

    I'm currently in the dark. I am only using IPv4 at the moment.

    Has anyone of you ever had such a problem?

    Best regards,
    Thomas

    1 Reply Last reply
    0
    • KubernetesK Offline
      KubernetesK Offline
      Kubernetes
      App Dev
      wrote on last edited by Kubernetes
      #2

      Hi Thomas, can you confirm that DNS Lookup does work inside the container?

      Sorry, just re-read that you already did nslookup.

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @fisi this is usually because the internal DNS server unbound is down. Can you check in Services -> unbound ? Maybe restart it?

        1 Reply Last reply
        0
        • girishG girish marked this topic as a question on
        • F Offline
          F Offline
          fisi
          wrote on last edited by
          #4

          @girish

          I had already checked unbound and restarted it.

           unbound.service - Unbound DNS Resolver
               Loaded: loaded (/etc/systemd/system/unbound.service; enabled; vendor preset: enabled)
               Active: active (running) since Wed 2024-04-03 17:08:55 UTC; 23h ago
             Main PID: 730 (unbound)
                Tasks: 1 (limit: 96378)
               Memory: 11.6M
                  CPU: 7.803s
               CGroup: /system.slice/unbound.service
                       └─730 /usr/sbin/unbound -d
          
          

          I just restarted the service, no difference.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by girish
            #5

            @fisi I think @nebulon responded to your ticket from support. If this is the same support ticket, the reason is that your server has 2 NICs and connected to the internal and external network. This is not a problem but the routes are set up incorrectly in ubuntu. The default route is going via the internal gateway. I think you have to adjust the netplan to fix the routing situation .

            (I hope I am replying about the correct tickte 🙂 ! )

            1 Reply Last reply
            1
            • girishG girish has marked this topic as solved on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search