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 Cloudron Setup on Contabo - VPS L Instances - Ubuntu 22.04 x64

    Support
    contabo installation
    6
    24
    277
    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.
    • C
      cilleyperson last edited by girish

      Hi all,

      I am looking to move my two Cloudron instances from DigitalOcean to Contabo. I have the two new VPS L instances setup on Contabo but am having a very hard time getting Cloudron to install. Everything goes well until I get to the Unbound DNS server service setup. Then I get the following (I have tried the install two times):

      # we need unbound to work as this is required for installer.sh to do any DNS requests
      echo -e "server:\n\tinterface: 127.0.0.1\n" > /etc/unbound/unbound.conf.d/cloudron-network.conf
      systemctl restart unbound
      Job for unbound.service failed because the control process exited with error code.
      See "systemctl status unbound.service" and "journalctl -xeu unbound.service" for details.
      
      

      When I look at the unbound.service status I see the following:

      × unbound.service - Unbound DNS server
           Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
           Active: failed (Result: exit-code) since Thu 2022-12-08 18:31:17 UTC; 1h 2min ago
             Docs: man:unbound(8)
          Process: 20212 ExecStartPre=/usr/lib/unbound/package-helper chroot_setup (code=exited, status=0/SUCCESS)
          Process: 20215 ExecStartPre=/usr/lib/unbound/package-helper root_trust_anchor_update (code=exited, status=0/SUCCESS)
          Process: 20218 ExecStart=/usr/sbin/unbound -d -p $DAEMON_OPTS (code=exited, status=1/FAILURE)
          Process: 20220 ExecStopPost=/usr/lib/unbound/package-helper chroot_teardown (code=exited, status=0/SUCCESS)
         Main PID: 20218 (code=exited, status=1/FAILURE)
      
      

      When I look at the journal output I see the following:

       Subject: A start job for unit unbound.service has begun execution
      ░░ Defined-By: systemd
      ░░ Support: http://www.ubuntu.com/support
      ░░
      ░░ A start job for unit unbound.service has begun execution.
      ░░
      ░░ The job identifier is 1273.
      Dec 08 18:29:43 vmi1119358.contaboserver.net package-helper[5308]: /var/lib/unbound/root.key does not exist, copying from /usr/share/dns/root.key
      Dec 08 18:29:43 vmi1119358.contaboserver.net unbound[5312]: [1670524183] unbound[5312:0] error: can't bind socket: Cannot assign requested address for ::1 port 53
      Dec 08 18:29:43 vmi1119358.contaboserver.net unbound[5312]: [1670524183] unbound[5312:0] fatal error: could not open ports
      Dec 08 18:29:43 vmi1119358.contaboserver.net systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
      ░░ Subject: Unit process exited
      ░░ Defined-By: systemd
      ░░ Support: http://www.ubuntu.com/support
      ░░
      ░░ An ExecStart= process belonging to unit unbound.service has exited.
      ░░
      ░░ The process' exit code is 'exited' and its exit status is 1.
      Dec 08 18:29:43 vmi1119358.contaboserver.net systemd[1]: unbound.service: Failed with result 'exit-code'.
      ░░ Subject: Unit failed
      ░░ Defined-By: systemd
      ░░ Support: http://www.ubuntu.com/support
      ░░
      ░░ The unit unbound.service has entered the 'failed' state with result 'exit-code'.
      Dec 08 18:29:43 vmi1119358.contaboserver.net systemd[1]: Failed to start Unbound DNS server.
      
      

      My gut feeling says that this may be a conflict with an already installed BIND DNS server on the default Ubuntu install that Contabo uses.

      Can anyone confirm if they have seen this before and what they may have done to resolve the situation?

      Thanks!

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

        @cilleyperson yes, your suspicion is correct. you have to uninstall bind before installing cloudron.

        But, the setup script already has code to disable bind9. I am wondering why that doesn't work. Can you please try:

        systemctl stop bind9
        systemctl disable bind9
        

        Does the above work?

        C 1 Reply Last reply Reply Quote 0
        • C
          cilleyperson @girish last edited by

          @girish So I actually went ahead and completely removed the bind9 packages from the OS and ran the install again. Slightly different message in the journal output this time:

          Dec 09 14:27:15 vmi1119358.contaboserver.net unbound[19504]: [1670596035] unbound[19504:0] error: can't bind socket: Cannot assign requested addres>
          Dec 09 14:27:15 vmi1119358.contaboserver.net unbound[19504]: [1670596035] unbound[19504:0] error: cannot open control interface ::1 8953
          Dec 09 14:27:15 vmi1119358.contaboserver.net unbound[19504]: [1670596035] unbound[19504:0] fatal error: could not open ports
          Dec 09 14:27:15 vmi1119358.contaboserver.net systemd[1]: unbound.service: Main process exited, code=exited, status=1/FAILURE
          

          So now port 8953 is the one that cannot be bound. Very strange. Is there anything else that people know about that is unique to Contabo that my be causing this? I also have the ability to upload custom iso images. Is there an ISO image for cloudron that I could use right out of the gate?

          Thanks!

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            Can you run ss -lptn 'sport = :8953' as root on your server to find out which process is using that port now?

            Also maybe it can only not bind to port for ipv6? Is ipv6 enabled on that instance?

            C 1 Reply Last reply Reply Quote 0
            • Topic has been marked as a question  nebulon nebulon 
            • C
              cilleyperson @nebulon last edited by

              @nebulon Here is the output from that command:

              ss -lptn 'sport = :8953'
              State           Recv-Q           Send-Q                      Local Address:Port                       Peer Address:Port           Process
              

              So it doesn't look like there is anything running on that port.

              I honestly don't need ipv6 on these hosts. Is there a best practice to disable this on Ubuntu 22.04?

              Thanks!

              C 1 Reply Last reply Reply Quote 0
              • C
                cilleyperson @cilleyperson last edited by

                @cilleyperson I followed the instructions to disable ipv6 on a fresh 22.04 install but still no luck. I disabled ipv6 using the process shown here:

                https://linuxconfig.org/how-to-disable-ipv6-address-on-ubuntu-22-04-lts-jammy-jellyfish

                I think it may have actually caused more issues than it resolved as I received a dpkg error for the nginx install this time, which was new.

                I am at a loss in terms of where to go from here. I am using the base Contabo Ubuntu 22.04 install. Seems like it shouldn't be causing this many issues out of the box.

                nebulon 1 Reply Last reply Reply Quote 0
                • nebulon
                  nebulon Staff @cilleyperson last edited by

                  @cilleyperson have you tried to spin up a fresh instance with ipv6 enabled? Possibly this is a contabo side switch, while creating the instance.

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cilleyperson @nebulon last edited by

                    @nebulon I have tried this on a completely fresh Contabo VPS L instance and the same thing happens, the Unbound service fails, causing the install script to fail in the same manner as what I first reported.

                    It seems like this all has something to do with the IPv6 settings with the VM but I can't be sure. I wish I knew what others have done in the past to get Cloudron working on Contabo.

                    Digital Ocean is getting too expensive in terms of monthly costs for me as an individual to run my apps on the platform, so Contabo looked like the best way to solve for that challenge. Unfortunately it seems like there is something fundamentally different about their Ubuntu images causing the Cloudron installer to fail.

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      cilleyperson @cilleyperson last edited by

                      @cilleyperson I am going to try one more thing. I am going to use the vanilla Ubuntu ISO as a custom image to install from and try and use that to re-build my VPS with. Maybe that will allow me to bypass whatever is causing this problem.

                      C 1 Reply Last reply Reply Quote 2
                      • C
                        cilleyperson @cilleyperson last edited by

                        @cilleyperson Ok, so we have success! Turns out, whatever image Contabo uses by default is not something that Cloudron likes at all. I used a custom image with the vanilla 22.04.1 ISO and it works fine.

                        Not sure if the system recognized my complete allotment of RAM and disk space though. Going to need to see what is happening there.

                        C 1 Reply Last reply Reply Quote 3
                        • C
                          cilleyperson @cilleyperson last edited by

                          @cilleyperson I've got it! Managed to resize the logical volume to take advantage of all the space on my Contabo VPS.

                          So it looks like while it is a bit more work on Contabo, and you need to pay the small monthly fee for custom OS image hosting, everything does work pretty well.

                          I may turn this whole experience into a how-to in the future so people can learn from what I did to get this working.

                          jdaviescoates 1 Reply Last reply Reply Quote 3
                          • jdaviescoates
                            jdaviescoates @cilleyperson last edited by

                            @cilleyperson said in Cloudron Setup on Contabo - VPS L Instances - Ubuntu 22.04 x64:

                            I may turn this whole experience into a how-to in the future so people can learn from what I did to get this working.

                            Yes, please do! 🙏

                            I think their German locations run on 100% hydro power (although this is not at all clear - I've asked them multiple times and am struggling to get a definitive answer, and have received conflicting answers from their email support vs social media) so I'm thinking of giving them a try (actually already bought 250gb of object storage from them in a recent sale)

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply Reply Quote 0
                            • nebulon
                              nebulon Staff last edited by

                              Ah very good you got down to the issue. Unfortunately its not uncommon that VPS provider tweak their Ubuntu images in ways which interfere with Cloudron and those are inherently hard to debug then.

                              C 1 Reply Last reply Reply Quote 2
                              • C
                                cilleyperson @nebulon last edited by

                                @nebulon One last follow-up for anyone else out there looking at this and trying to install Cloudron on Contabo VPS instances. Here are the steps I went through:

                                • Setup Contabo account with the instance(s) of your choosing (I am using the VPS L size)
                                • Add on custom image storage for your Contabo account (at the time of writing this was $1.49 extra per month for 25 GB of image sotorage
                                • Follow the instructions to download the standard Ubuntu server image to your Contabo custom image storage (at the time of writing this was version 22.04.1)
                                • Make sure your Contabo VPS has cloud-init enabled so that you can use the custom image
                                • Go through the Contabo re-install process for your VPS selecting the custom image for the OS
                                • Follow the instructions to enable VNC viewer access to your Contabo VPS instance so that you can complete the Ubuntu install
                                • Go through the standard Ubuntu install process using the VNC viewer connection
                                • I would recommend using the logical volume option to handle your hard disk creation and then edit the logical volume group at installation to use the full amount of disk space available.
                                • Make sure you enable the SSH server so that you do not need to leave VNC access enables since this is a security issue
                                • Once Ubuntu is installed, reboot your server, disable VNC access, and go through the rest of the steps using an SSH connection
                                • I would recommend using a certificate for your SSH connections if possible, it is safer than having SSH exposed with only password authentication on the internet.
                                • Follow the Cloudron installation instructions to pull down the latest version and complete the setup process on your server.

                                I'll working on making a more detailed tutorial in the coming weeks, but this should get someone headed in the right direction if they are in the same situation I was.

                                girish 1 Reply Last reply Reply Quote 2
                                • Topic has been marked as solved  C cilleyperson 
                                • girish
                                  girish Staff @cilleyperson last edited by

                                  @cilleyperson I signed up with Contabo and created a new server now . I managed to reproduce your installation issue, investigating.

                                  1 Reply Last reply Reply Quote 1
                                  • Topic has been marked as unsolved  girish girish 
                                  • girish
                                    girish Staff last edited by

                                    There is a bug in unbound on Ubuntu 22 that it listens on the control interface (port 8953) by default. I have reported the issue on the unbound mailing list, let's see what they say.

                                    jdaviescoates 1 Reply Last reply Reply Quote 1
                                    • girish
                                      girish Staff last edited by

                                      reported - https://github.com/NLnetLabs/unbound/issues/806

                                      1 Reply Last reply Reply Quote 2
                                      • jdaviescoates
                                        jdaviescoates @girish last edited by

                                        @girish said in Cloudron Setup on Contabo - VPS L Instances - Ubuntu 22.04 x64:

                                        There is a bug in unbound on Ubuntu 22 that it listens on the control interface (port 8953) by default. I have reported the issue on the unbound mailing list, let's see what they say.

                                        But @cilleyperson didn't seem to have the issue with a vanilla install of Ubuntu 22, only on Contabo's version of it, no?

                                        I use Cloudron with Gandi & Hetzner

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

                                          @jdaviescoates it's a bit convoluted....

                                          on contabo, ipv6 is disabled in the kernel. This should not be needed but this is the default. Unbound fails to start when control port is enabled on a non ipv6 server.

                                          robi 1 Reply Last reply Reply Quote 2
                                          • robi
                                            robi @girish last edited by

                                            @girish does their support know about this?

                                            Life of Advanced Technology

                                            S 1 Reply Last reply Reply Quote 1
                                            • S
                                              SirFiChi @robi last edited by

                                              Wow. I had cloudron running on Ubuntu 18.04, backuped the server last night and tried four times to install coudron now.
                                              Bad luck. I first tought about doing it in the holidays, but now I stuck with a disabled server.... -.-

                                              Floh Klare
                                              Vorstandsvorsitzender
                                              OpenSource Television e.V.
                                              https://Verein.OS-Television.de

                                              S 1 Reply Last reply Reply Quote 0
                                              • S
                                                SirFiChi @SirFiChi last edited by SirFiChi

                                                Buy me a beer!

                                                Installation on Contabo VPS:

                                                1. Fresh installed server with Ubuntu 22.04
                                                2. Enable IPv6 as root
                                                enable_ipv6
                                                
                                                1. Follow the Cloudron installation
                                                wget https://cloudron.io/cloudron-setup
                                                chmod +x ./cloudron-setup
                                                ./cloudron-setup
                                                
                                                1. Reboot the server

                                                Sources:
                                                2. https://contabo.com/blog/de/ipv6-auf-ihrem-server-einrichten/
                                                3. https://www.cloudron.io/get.html

                                                Floh Klare
                                                Vorstandsvorsitzender
                                                OpenSource Television e.V.
                                                https://Verein.OS-Television.de

                                                1 Reply Last reply Reply Quote 5
                                                • C
                                                  cilleyperson @jdaviescoates last edited by

                                                  @jdaviescoates Correct, the vanilla install works fine. It looks like based on what @girish found it can easily be solved by enabling ipv6 in the kernel. Thank you @SirFiChi for posting that process!

                                                  1 Reply Last reply Reply Quote 1
                                                  • Referenced by  girish girish 
                                                  • girish
                                                    girish Staff last edited by

                                                    This is fixed in 7.3.5 (will be released next week).

                                                    1 Reply Last reply Reply Quote 3
                                                    • Topic has been marked as solved  girish girish 
                                                    • First post
                                                      Last post
                                                    Powered by NodeBB