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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Install Cloudron 7.0.3 on Ubuntu 20.04.3 ESXi

    Support
    2
    13
    493
    Loading More Posts
    • 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.
    • M
      mannyc1701 last edited by

      Hello, I'm having issues getting Cloudron to start on fresh install of ubuntu, here is the install log https://1drv.ms/u/s!AmAKKDel4XhWgZEWrmD5H2bQgkB0cw?e=qu1knd

      Issues appears to be with unbound service see errors. Screen Shot 2021-11-11 at 12.41.15 PM.png

      These are errors from box service.

      Screen Shot 2021-11-11 at 12.42.55 PM.png

      Thank you!

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @mannyc1701 last edited by

        @mannyc1701 Can you check if docker is running ? systemctl status docker and then docker network inspect cloudron should print a bunch of 172.18.x.x addresses.

        If that is working:

        • lsof -i :53 - this will print who is listening on port 53. Sometimes, systemd-resolved or bind9 (named) is enabled by default in some images preventing unbound from running. We actually disable this in our setup scripts, but helps to double check.
        M 1 Reply Last reply Reply Quote 0
        • M
          mannyc1701 @girish last edited by

          @girish Docker Status: Screen Shot 2021-11-11 at 2.48.57 PM.png

          Docker Network & port 53:
          Screen Shot 2021-11-11 at 2.50.20 PM.png

          Thank you!

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @mannyc1701 last edited by

            @mannyc1701 docker seems OK. What is the lsof -i :53 output?

            M 1 Reply Last reply Reply Quote 0
            • M
              mannyc1701 @girish last edited by

              @girish Its blank, no output.

              Screen Shot 2021-11-11 at 2.57.28 PM.png

              girish 2 Replies Last reply Reply Quote 0
              • girish
                girish Staff @mannyc1701 last edited by

                @mannyc1701 Does nc -lu 172.18.0.1 53 work ? This tries to listen on UDP port 53. If it works, "it will just hang". Otherwise, it will print nc: Address already in use or something.

                And also nc -l 172.18.0.1 3003 ? This tries to listen on TCP port 3003.

                M 1 Reply Last reply Reply Quote 0
                • girish
                  girish Staff @mannyc1701 last edited by

                  @mannyc1701 also, have you tried rebooting the VM just in case and check if those services start up afterwards ? thanks!

                  1 Reply Last reply Reply Quote 0
                  • M
                    mannyc1701 @girish last edited by

                    @girish both show the same error, cannot assign requested address.
                    Screen Shot 2021-11-11 at 3.05.26 PM.png

                    The box screenshot mentions this error too, address 172.18.0.1 as not available.

                    The local server network is 172.17.1.0/24.

                    girish 1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @mannyc1701 last edited by girish

                      @mannyc1701 I can't see anything obvious. 172.18.0.0 is the internal docker network (internal to the VM). For some reason, services are unable to listen on that. Are other docker things running in docker ps ? Maybe a VM reboot helps, not sure.

                      Out of curiosity, you can also do:

                      docker run -ti cloudron/base:3.0.0 /bin/bash and then in the shell there, nc -l 0.0.0.0 3000 does that work?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mannyc1701 @girish last edited by

                        @girish here are the outputs:

                        Screen Shot 2021-11-11 at 3.22.11 PM.png

                        Prior to reboot after installation I ran ip addr output and could ping 172.18.0.1 & 172.18.0.2.
                        Screen Shot 2021-11-11 at 3.25.39 PM.png

                        this is the output after restart.
                        Screen Shot 2021-11-11 at 3.26.22 PM.png
                        docker ip changed to 172.19.0.1, I don't if that helps, it seems ip 172.18.0.1 is in use or configured and cannot be used but I can reach 172.18.0.2 without issue.

                        girish 1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff @mannyc1701 last edited by

                          @mannyc1701 said in Install Cloudron 7.0.3 on Ubuntu 20.04.3 ESXi:

                          cannot be used but I can reach 172.18.0.2 without issue

                          Thanks for hanging in there. The above is the core issue. Our code assumes the bridge gets the IP 172.18.0.1 . I am not sure why it gets it as 172.18.0.2 in ESXi . Maybe it was just a happy accident, but we had this assumption since forever.

                          Can you try this then:

                          • First, remove all existing containers: docker ps -aq | xargs -r docker rm -f
                          • Delete existing cloudron network: docker network rm cloudron
                          • Recreate cloudron network for the IP: docker network create --subnet=172.18.0.0/16 --ip-range=172.18.0.0/20 --gateway 172.18.0.1 cloudron
                          • Make cloudron code recreate containers: sed -e 's/48.20.0/48.19.0/' -i /home/yellowtent/platformdata/INFRA_VERSION
                          • Does systemctl restart unbound work after above? If it does, you can also do systemctl restart box which should also hopefully work.
                          M 1 Reply Last reply Reply Quote 1
                          • M
                            mannyc1701 @girish last edited by

                            @girish That did it, Thank you so much for helping me get this going!

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @mannyc1701 last edited by girish

                              @mannyc1701 thanks, I pushed a fix as well for next release - https://git.cloudron.io/cloudron/box/-/commit/fdefc780b4f687ec5ff508b1a37270492612f2a3

                              1 Reply Last reply Reply Quote 1
                              • First post
                                Last post
                              Powered by NodeBB