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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. New installation: can't install applications

New installation: can't install applications

Scheduled Pinned Locked Moved Unsolved Support
installdockernetwork
9 Posts 4 Posters 1.0k Views 4 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.
  • I Offline
    I Offline
    iamwillbar
    wrote on last edited by joseph
    #1

    I have a new installation of Cloudron on Ubuntu 24.04, and when I attempt to install new applications they never complete installation. I have tried restarting.

    The Docker logs show:

    Jul 21 01:30:44 cr dockerd[944]: time="2024-07-21T01:30:44.673387498Z" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf"
    Jul 21 01:30:44 cr dockerd[944]: time="2024-07-21T01:30:44.861431480Z" level=info msg="[graphdriver] trying configured driver: overlay2"
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.400298750Z" level=info msg="Loading containers: start."
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.769177511Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address"
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.832595505Z" level=info msg="Loading containers: done."
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.880223201Z" level=info msg="Docker daemon" commit=60b9add containerd-snapshotter=false storage-driver=overlay2 version=26.0.1
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.883013205Z" level=info msg="Daemon has completed initialization"
    Jul 21 01:30:45 cr systemd[1]: Started docker.service - Docker Application Container Engine.
    Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.931928378Z" level=info msg="API listen on /run/docker.sock"
    Jul 21 01:30:50 cr dockerd[944]: time="2024-07-21T01:30:50.336803412Z" level=error msg="Handler for POST /v1.45/networks/create returned error: failed to allocate gateway (172.18.0.1): Address already in use" spanID=9539cda95085bd78 traceID=33f55372423a3ed512e42f6495c21add
    
    J 1 Reply Last reply
    1
    • I iamwillbar

      I have a new installation of Cloudron on Ubuntu 24.04, and when I attempt to install new applications they never complete installation. I have tried restarting.

      The Docker logs show:

      Jul 21 01:30:44 cr dockerd[944]: time="2024-07-21T01:30:44.673387498Z" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf"
      Jul 21 01:30:44 cr dockerd[944]: time="2024-07-21T01:30:44.861431480Z" level=info msg="[graphdriver] trying configured driver: overlay2"
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.400298750Z" level=info msg="Loading containers: start."
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.769177511Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address"
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.832595505Z" level=info msg="Loading containers: done."
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.880223201Z" level=info msg="Docker daemon" commit=60b9add containerd-snapshotter=false storage-driver=overlay2 version=26.0.1
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.883013205Z" level=info msg="Daemon has completed initialization"
      Jul 21 01:30:45 cr systemd[1]: Started docker.service - Docker Application Container Engine.
      Jul 21 01:30:45 cr dockerd[944]: time="2024-07-21T01:30:45.931928378Z" level=info msg="API listen on /run/docker.sock"
      Jul 21 01:30:50 cr dockerd[944]: time="2024-07-21T01:30:50.336803412Z" level=error msg="Handler for POST /v1.45/networks/create returned error: failed to allocate gateway (172.18.0.1): Address already in use" spanID=9539cda95085bd78 traceID=33f55372423a3ed512e42f6495c21add
      
      J Online
      J Online
      joseph
      Staff
      wrote on last edited by
      #2

      @iamwillbar said in New installation: can't install applications:

      Jul 21 01:30:50 cr dockerd[944]: time="2024-07-21T01:30:50.336803412Z" level=error msg="Handler for POST /v1.45/networks/create returned error: failed to allocate gateway (172.18.0.1): Address already in use" spanID=9539cda95085bd78 traceID=33f55372423a3ed512e42f6495c21add

      Cloudron creates a docker network at 172.18.x.x . It says this network is already in use. Do you have something else running there?

      1 Reply Last reply
      1
      • J joseph marked this topic as a question on
      • I Offline
        I Offline
        iamwillbar
        wrote on last edited by
        #3

        Not on 172.18.x.x, but I do on 172.17.x.x. I edited the systemd configuration and added --bip 192.168.1.1/24 as recommended in one of the other posts and that seemed to solve the problem. Will that be supported, or will I run into other issues?

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Generally anything which is not installed through Cloudron is not supported and will likely break with a future Cloudron update. The platform is designed to essentially own the host system to reduce potential side-effects from edge-cases which we cannot realistically test.

          1 Reply Last reply
          0
          • I Offline
            I Offline
            iamwillbar
            wrote on last edited by
            #5

            That makes sense, but the assumption that an existing network doesn't use a specific IP range is a challenging one. It would not be easy, not should I have to, move hundreds of devices to a new IP range because Cloudron assumes that range is unused.

            1 Reply Last reply
            0
            • nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              Ah so you mean that the server is operating in a private network (hence the 172.... ipv4 range) which collides here? This is not about using that range on the same server on a loopback interface?

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

                Just so we talk about the same thing... Cloudron has an internal network 172.18.0.0/16 . These IPs never leave the server. It's only a problem if your own internal network is also using these IPs. Is that the case? Generally, the docker stack uses 172.17 or 172.18 and the private networks use 192.168 (home) or 10.0 (enterprise). Very broad generalization yes.

                I do know that the train network here (DB) uses 172 and it conflicts with Cloudron's network... It's kind of annoying when connecting to their wifi.

                1 Reply Last reply
                0
                • nebulonN nebulon

                  Ah so you mean that the server is operating in a private network (hence the 172.... ipv4 range) which collides here? This is not about using that range on the same server on a loopback interface?

                  I Offline
                  I Offline
                  iamwillbar
                  wrote on last edited by
                  #8

                  @nebulon that's correct, the server is on a 172.17.x.x address. Cloudron's private network must use a netmask larger than /24?

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

                    Yes, /24 would only allow 250 or so addresses, we do need a /16 . I am not sure why 172.17 and 172.18 networks are conflicting though . In the original error message it says "172.18.0.1" is in use. If your local network is 172.18, it all makes sense. Currently, there is no workaround for this since the code has some places where it hardcodes 172.18 network.

                    1 Reply Last reply
                    0
                    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