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. Help please failing setup of cloudron

Help please failing setup of cloudron

Scheduled Pinned Locked Moved Solved Support
installation
22 Posts 5 Posters 2.0k Views 5 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.
  • R Offline
    R Offline
    Rawlin
    wrote on last edited by girish
    #1

    Hello I'm looking for help for my install issue. I believe it's due to a un resolved variable in the script but I'm not exactly sure where the specific code is stored as I don't see it directly in the cloudron-setup file/script. I could be missing due to my ignorance, but betting its called in somehow from some other file. Anyway here's my issue

    I've installed fresh clean 18.04 desktop and server as well as 20.04 desktop and server each get the exact same error. I'm running Ubuntu in a VM hosted on Hyper-V, 6 cores, 8 gb of ram in a 45 gb vdisk.

    First thing on reboot after install trying to install cloudron. Here it stops becasue it looks to have timed out on for the nginx CURL.

    => Updating apt and installing script dependencies
    => Checking version
    => Downloading version 7.1.4 ...
    => Installing base dependencies and downloading docker images (this takes some t ime) ...Init script failed. See /var/log/cloudron-setup.log for details

    Here is the detail I think stopping my install.

    echo "==> installing nginx for xenial for TLSv3 support"
    ==> installing nginx for xenial for TLSv3 support
    curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~***${ub untu_codename}***_amd64.deb -o /tmp/nginx.deb

    How do I fix this to allow it to resolve and download the correct file? Or am I totally off base here?

    nebulonN 1 Reply Last reply
    0
    • R Rawlin

      Hello I'm looking for help for my install issue. I believe it's due to a un resolved variable in the script but I'm not exactly sure where the specific code is stored as I don't see it directly in the cloudron-setup file/script. I could be missing due to my ignorance, but betting its called in somehow from some other file. Anyway here's my issue

      I've installed fresh clean 18.04 desktop and server as well as 20.04 desktop and server each get the exact same error. I'm running Ubuntu in a VM hosted on Hyper-V, 6 cores, 8 gb of ram in a 45 gb vdisk.

      First thing on reboot after install trying to install cloudron. Here it stops becasue it looks to have timed out on for the nginx CURL.

      => Updating apt and installing script dependencies
      => Checking version
      => Downloading version 7.1.4 ...
      => Installing base dependencies and downloading docker images (this takes some t ime) ...Init script failed. See /var/log/cloudron-setup.log for details

      Here is the detail I think stopping my install.

      echo "==> installing nginx for xenial for TLSv3 support"
      ==> installing nginx for xenial for TLSv3 support
      curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~***${ub untu_codename}***_amd64.deb -o /tmp/nginx.deb

      How do I fix this to allow it to resolve and download the correct file? Or am I totally off base here?

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      @Rawlin what happens if you try to manually run the following on this server now?

      curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~bionic_amd64.deb -o /tmp/nginx.deb
      
      R 1 Reply Last reply
      0
      • S Offline
        S Offline
        Spojler
        wrote on last edited by
        #3

        I got the same problem... After install fresh ubuntu 20.04 or 18.04 I run install script but stopped at the same moment. Suddenly I cannot connect to internet, after short test it's looks like my server stopped resolving domain names 😕 resolv.conf file is directing to server itself (nameserver 127.0.0.1)
        My network adapter in configured to DHCP client, all installation of Ubuntu I use as default as posible.

        girishG 1 Reply Last reply
        0
        • S Spojler

          I got the same problem... After install fresh ubuntu 20.04 or 18.04 I run install script but stopped at the same moment. Suddenly I cannot connect to internet, after short test it's looks like my server stopped resolving domain names 😕 resolv.conf file is directing to server itself (nameserver 127.0.0.1)
          My network adapter in configured to DHCP client, all installation of Ubuntu I use as default as posible.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @Spojler It's correct that it points to 127.0.0.1. We have a local DNS server named unbound running there. Can you check if unbound is running systemctl status unbound ? If it is running, what does host www.cloudron.io 127.0.0.1 say ?

          S 1 Reply Last reply
          0
          • girishG girish

            @Spojler It's correct that it points to 127.0.0.1. We have a local DNS server named unbound running there. Can you check if unbound is running systemctl status unbound ? If it is running, what does host www.cloudron.io 127.0.0.1 say ?

            S Offline
            S Offline
            Spojler
            wrote on last edited by Spojler
            #5

            @girish
            service work, have status running but after completed second command I got.

            Connection timed out; no server could be reach.
            

            My server is on my local network behind router, fresh ubuntu install work fine witch apt and etc. I even got other ubuntu working at the same network.
            😕

            girishG 1 Reply Last reply
            0
            • S Spojler

              @girish
              service work, have status running but after completed second command I got.

              Connection timed out; no server could be reach.
              

              My server is on my local network behind router, fresh ubuntu install work fine witch apt and etc. I even got other ubuntu working at the same network.
              😕

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @Spojler What does systemctl status unbound say ? Can you also check the logs in journalctl -u unbound -a ?

              S 1 Reply Last reply
              0
              • girishG girish

                @Spojler What does systemctl status unbound say ? Can you also check the logs in journalctl -u unbound -a ?

                S Offline
                S Offline
                Spojler
                wrote on last edited by
                #7

                @girish
                systemctl status unbound

                ● unbound.service - Unbound DNS server
                     Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
                     Active: active (running) since Mon 2022-03-21 19:17:06 UTC; 4min 15s ago
                       Docs: man:unbound(8)
                   Main PID: 4609 (unbound)
                      Tasks: 1 (limit: 9436)
                     Memory: 8.5M
                     CGroup: /system.slice/unbound.service
                             └─4609 /usr/sbin/unbound -d
                
                Mar 21 19:16:15 ubuntu systemd[1]: Starting Unbound DNS server...
                Mar 21 19:16:15 ubuntu package-helper[4595]: /var/lib/unbound/root.key does not exist, copying from /usr/share/>
                Mar 21 19:17:05 ubuntu package-helper[4599]: /var/lib/unbound/root.key has content
                Mar 21 19:17:05 ubuntu package-helper[4599]: fail: the anchor is NOT ok and could not be fixed
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 0: subnet
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 1: validator
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 2: iterator
                Mar 21 19:17:06 ubuntu unbound[4609]: [4609:0] info: start of service (unbound 1.9.4).
                Mar 21 19:17:06 ubuntu systemd[1]: Started Unbound DNS server.
                

                journalctl -u unbound -a

                -- Logs begin at Mon 2022-03-21 19:13:02 UTC, end at Mon 2022-03-21 19:20:58 UTC. --
                Mar 21 19:16:15 ubuntu systemd[1]: Starting Unbound DNS server...
                Mar 21 19:16:15 ubuntu package-helper[4595]: /var/lib/unbound/root.key does not exist, copying from /usr/share/>
                Mar 21 19:17:05 ubuntu package-helper[4599]: /var/lib/unbound/root.key has content
                Mar 21 19:17:05 ubuntu package-helper[4599]: fail: the anchor is NOT ok and could not be fixed
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 0: subnet
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 1: validator
                Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 2: iterator
                Mar 21 19:17:06 ubuntu unbound[4609]: [4609:0] info: start of service (unbound 1.9.4).
                Mar 21 19:17:06 ubuntu systemd[1]: Started Unbound DNS server.
                
                girishG 1 Reply Last reply
                0
                • S Spojler

                  @girish
                  systemctl status unbound

                  ● unbound.service - Unbound DNS server
                       Loaded: loaded (/lib/systemd/system/unbound.service; enabled; vendor preset: enabled)
                       Active: active (running) since Mon 2022-03-21 19:17:06 UTC; 4min 15s ago
                         Docs: man:unbound(8)
                     Main PID: 4609 (unbound)
                        Tasks: 1 (limit: 9436)
                       Memory: 8.5M
                       CGroup: /system.slice/unbound.service
                               └─4609 /usr/sbin/unbound -d
                  
                  Mar 21 19:16:15 ubuntu systemd[1]: Starting Unbound DNS server...
                  Mar 21 19:16:15 ubuntu package-helper[4595]: /var/lib/unbound/root.key does not exist, copying from /usr/share/>
                  Mar 21 19:17:05 ubuntu package-helper[4599]: /var/lib/unbound/root.key has content
                  Mar 21 19:17:05 ubuntu package-helper[4599]: fail: the anchor is NOT ok and could not be fixed
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 0: subnet
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 1: validator
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 2: iterator
                  Mar 21 19:17:06 ubuntu unbound[4609]: [4609:0] info: start of service (unbound 1.9.4).
                  Mar 21 19:17:06 ubuntu systemd[1]: Started Unbound DNS server.
                  

                  journalctl -u unbound -a

                  -- Logs begin at Mon 2022-03-21 19:13:02 UTC, end at Mon 2022-03-21 19:20:58 UTC. --
                  Mar 21 19:16:15 ubuntu systemd[1]: Starting Unbound DNS server...
                  Mar 21 19:16:15 ubuntu package-helper[4595]: /var/lib/unbound/root.key does not exist, copying from /usr/share/>
                  Mar 21 19:17:05 ubuntu package-helper[4599]: /var/lib/unbound/root.key has content
                  Mar 21 19:17:05 ubuntu package-helper[4599]: fail: the anchor is NOT ok and could not be fixed
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 0: subnet
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 1: validator
                  Mar 21 19:17:05 ubuntu unbound[4609]: [4609:0] notice: init module 2: iterator
                  Mar 21 19:17:06 ubuntu unbound[4609]: [4609:0] info: start of service (unbound 1.9.4).
                  Mar 21 19:17:06 ubuntu systemd[1]: Started Unbound DNS server.
                  
                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #8

                  @Spojler said in Help please failing setup of cloudron:

                  fail: the anchor is NOT ok and could not be fixed

                  I wonder why that is. Can you please try:

                  unbound-anchor -a /var/lib/unbound/root.key
                  systemctl restart unbound
                  host www.cloudron.io 127.0.0.1
                  

                  Just search for that error led me to https://github.com/MichaIng/DietPi/issues/4218 and https://old.reddit.com/r/pihole/comments/m6st3w/unbound_the_anchor_is_not_ok_and_could_not_be/ . Do you happen to be having a router that blocks DNS queries or have some PI hole or equivalent as your outbound DNS ?

                  S 2 Replies Last reply
                  0
                  • girishG girish

                    @Spojler said in Help please failing setup of cloudron:

                    fail: the anchor is NOT ok and could not be fixed

                    I wonder why that is. Can you please try:

                    unbound-anchor -a /var/lib/unbound/root.key
                    systemctl restart unbound
                    host www.cloudron.io 127.0.0.1
                    

                    Just search for that error led me to https://github.com/MichaIng/DietPi/issues/4218 and https://old.reddit.com/r/pihole/comments/m6st3w/unbound_the_anchor_is_not_ok_and_could_not_be/ . Do you happen to be having a router that blocks DNS queries or have some PI hole or equivalent as your outbound DNS ?

                    S Offline
                    S Offline
                    Spojler
                    wrote on last edited by
                    #9

                    @girish
                    These commands nothing change.
                    I don't have pihole or something like that... I got typical router TP-LINK C1700.

                    1 Reply Last reply
                    0
                    • girishG girish

                      @Spojler said in Help please failing setup of cloudron:

                      fail: the anchor is NOT ok and could not be fixed

                      I wonder why that is. Can you please try:

                      unbound-anchor -a /var/lib/unbound/root.key
                      systemctl restart unbound
                      host www.cloudron.io 127.0.0.1
                      

                      Just search for that error led me to https://github.com/MichaIng/DietPi/issues/4218 and https://old.reddit.com/r/pihole/comments/m6st3w/unbound_the_anchor_is_not_ok_and_could_not_be/ . Do you happen to be having a router that blocks DNS queries or have some PI hole or equivalent as your outbound DNS ?

                      S Offline
                      S Offline
                      Spojler
                      wrote on last edited by
                      #10

                      @girish
                      I don't have static public IP address, I workaround that with DDNS and Cloudflare.
                      I have NAS with homecloud funcionality and that work fine when I connecting remotly.

                      girishG 1 Reply Last reply
                      0
                      • S Spojler

                        @girish
                        I don't have static public IP address, I workaround that with DDNS and Cloudflare.
                        I have NAS with homecloud funcionality and that work fine when I connecting remotly.

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

                        @Spojler you don't need a static IP to use Cloudron. It's not clear to me what's happening. For some reason the DNS queries are not working in the VM.

                        I think what you can do is to maybe check if this is some network issue or ubuntu/unbound or cloudron issue. I would then try something like this:

                        • systemd stop unbound - disables unbound server
                        • systemctl enable systemd-resolved - this is the default DNS server of ubuntu.

                        Do DNS queries work after this? host www.cloudron.io essentially should work now. You might also want to check if /etc/resolve.conf got patched up to 127.0.0.53 (from what I recall from memory).

                        1 Reply Last reply
                        0
                        • nebulonN nebulon

                          @Rawlin what happens if you try to manually run the following on this server now?

                          curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~bionic_amd64.deb -o /tmp/nginx.deb
                          
                          R Offline
                          R Offline
                          Rawlin
                          wrote on last edited by Rawlin
                          #12

                          @nebulon I ran following on the server and it seemed to have worked as it didn't error out, it returned a clean prompt.

                          curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~bionic_amd64.deb -o /tmp/nginx.deb
                          

                          I believe I'm not seeing DNS issues outside this if it is one. I can browse the web or resolve other computers or sites on the VM.

                          I ran the following to confirm DNS look up to cloudron.

                          rawlin@ubuntu:~$ host www.cloudron.io 127.0.0.1
                          Using domain server:
                          Name: 127.0.0.1
                          Address: 127.0.0.1#53
                          Aliases: 
                          
                          www.cloudron.io has address 3.209.21.239
                          www.cloudron.io has IPv6 address 2600:1f18:80f:e00:fa5d:db49:3bf:3f22
                          rawlin@ubuntu:~$ 
                          

                          I'm connected behind a single Netgear router using a wired connection.

                          Thanks

                          girishG 1 Reply Last reply
                          0
                          • R Rawlin

                            @nebulon I ran following on the server and it seemed to have worked as it didn't error out, it returned a clean prompt.

                            curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~bionic_amd64.deb -o /tmp/nginx.deb
                            

                            I believe I'm not seeing DNS issues outside this if it is one. I can browse the web or resolve other computers or sites on the VM.

                            I ran the following to confirm DNS look up to cloudron.

                            rawlin@ubuntu:~$ host www.cloudron.io 127.0.0.1
                            Using domain server:
                            Name: 127.0.0.1
                            Address: 127.0.0.1#53
                            Aliases: 
                            
                            www.cloudron.io has address 3.209.21.239
                            www.cloudron.io has IPv6 address 2600:1f18:80f:e00:fa5d:db49:3bf:3f22
                            rawlin@ubuntu:~$ 
                            

                            I'm connected behind a single Netgear router using a wired connection.

                            Thanks

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

                            @Rawlin I pushed a workaround for this. Can you please get the latest setup file and try?

                            Like:

                            rm -f cloudron-setup # remove the existing setup file
                            wget https://cloudron.io/cloudron-setup
                            ./cloudron-setup --redo
                            

                            Let me know if that helps

                            R 1 Reply Last reply
                            0
                            • girishG girish

                              @Rawlin I pushed a workaround for this. Can you please get the latest setup file and try?

                              Like:

                              rm -f cloudron-setup # remove the existing setup file
                              wget https://cloudron.io/cloudron-setup
                              ./cloudron-setup --redo
                              

                              Let me know if that helps

                              R Offline
                              R Offline
                              Rawlin
                              wrote on last edited by
                              #14

                              @girish I just tried the updated script and got a different error. Here's the log after running it.

                              Running cloudron-setup with args : --
                              Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
                              Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
                              Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
                              Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                              Fetched 336 kB in 1s (665 kB/s)
                              Reading package lists...
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              python3 is already the newest version (3.8.2-0ubuntu2).
                              curl is already the newest version (7.68.0-1ubuntu2.7).
                              software-properties-common is already the newest version (0.99.9.8).
                              ubuntu-standard is already the newest version (1.450.2).
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                              
                              readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
                              
                              readonly arg_infraversionpath="${SOURCE_DIR}/../src"
                              
                              function die {
                                  echo $1
                                  exit 1
                              }
                              
                              export DEBIAN_FRONTEND=noninteractive
                              
                              readonly ubuntu_codename=$(lsb_release -cs)
                              readonly ubuntu_version=$(lsb_release -rs)
                              
                              # hold grub since updating it breaks on some VPS providers. also, dist-upgrade will trigger it
                              apt-mark hold grub* >/dev/null
                              apt-get -o Dpkg::Options::="--force-confdef" update -y
                              Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
                              Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
                              Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
                              Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                              Fetched 336 kB in 0s (739 kB/s)
                              Reading package lists...
                              apt-get -o Dpkg::Options::="--force-confdef" upgrade -y
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              Calculating upgrade...
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              The following packages have been kept back:
                                fwupd libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
                              0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                              apt-mark unhold grub* >/dev/null
                              
                              echo "==> Installing required packages"
                              ==> Installing required packages
                              
                              debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'
                              debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password password'
                              
                              # this enables automatic security upgrades (https://help.ubuntu.com/community/AutomaticSecurityUpdates)
                              # resolvconf is needed for unbound to work property after disabling systemd-resolved in 18.04
                              
                              gpg_package=$([[ "${ubuntu_version}" == "16.04" ]] && echo "gnupg" || echo "gpg")
                              mysql_package=$([[ "${ubuntu_version}" == "20.04" ]] && echo "mysql-server-8.0" || echo "mysql-server-5.7")
                              ntpd_package=$([[ "${ubuntu_version}" == "20.04" ]] && echo "systemd-timesyncd" || echo "")
                              apt-get -y install --no-install-recommends \
                                  acl \
                                  apparmor \
                                  build-essential \
                                  cifs-utils \
                                  cron \
                                  curl \
                                  debconf-utils \
                                  dmsetup \
                                  $gpg_package \
                                  ipset \
                                  iptables \
                                  libpython2.7 \
                                  linux-generic \
                                  logrotate \
                                  $mysql_package \
                                  nfs-common \
                                  $ntpd_package \
                                  openssh-server \
                                  pwgen \
                                  resolvconf \
                                  sshfs \
                                  swaks \
                                  tzdata \
                                  unattended-upgrades \
                                  unbound \
                                  unzip \
                                  xfsprogs
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              acl is already the newest version (2.2.53-6).
                              cron is already the newest version (3.0pl1-136ubuntu1).
                              dmsetup is already the newest version (2:1.02.167-1ubuntu1).
                              iptables is already the newest version (1.8.4-3ubuntu2).
                              logrotate is already the newest version (3.14.0-4ubuntu3).
                              unzip is already the newest version (6.0-25ubuntu1).
                              xfsprogs is already the newest version (5.3.0-1ubuntu2).
                              debconf-utils is already the newest version (1.5.73).
                              pwgen is already the newest version (2.08-2).
                              resolvconf is already the newest version (1.82).
                              sshfs is already the newest version (3.6.0+repack+really2.10-0ubuntu1).
                              swaks is already the newest version (20190914.0-1).
                              apparmor is already the newest version (2.13.3-7ubuntu5.1).
                              build-essential is already the newest version (12.8ubuntu1.1).
                              cifs-utils is already the newest version (2:6.9-1ubuntu0.1).
                              curl is already the newest version (7.68.0-1ubuntu2.7).
                              gpg is already the newest version (2.2.19-3ubuntu2.1).
                              ipset is already the newest version (7.5-1ubuntu0.20.04.1).
                              linux-generic is already the newest version (5.4.0.105.109).
                              mysql-server-8.0 is already the newest version (8.0.28-0ubuntu0.20.04.3).
                              nfs-common is already the newest version (1:1.3.4-2.5ubuntu3.4).
                              openssh-server is already the newest version (1:8.2p1-4ubuntu0.4).
                              systemd-timesyncd is already the newest version (245.4-4ubuntu3.15).
                              tzdata is already the newest version (2022a-0ubuntu0.20.04).
                              unattended-upgrades is already the newest version (2.3ubuntu0.1).
                              libpython2.7 is already the newest version (2.7.18-1~20.04.1).
                              unbound is already the newest version (1.9.4-2ubuntu1.2).
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                              
                              echo "==> installing nginx for xenial for TLSv3 support"
                              ==> installing nginx for xenial for TLSv3 support
                              curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~${ubuntu_codename}_amd64.deb -o /tmp/nginx.deb
                              # apt install with install deps (as opposed to dpkg -i)
                              apt install -y /tmp/nginx.deb
                              
                              WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
                              
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              The following NEW packages will be installed:
                                nginx
                              0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
                              Need to get 0 B/853 kB of archives.
                              After this operation, 3,056 kB of additional disk space will be used.
                              Get:1 /tmp/nginx.deb nginx amd64 1.18.0-2~focal [853 kB]
                              Selecting previously unselected package nginx.
                              (Reading database ... 
                              (Reading database ... 5%
                              (Reading database ... 10%
                              (Reading database ... 15%
                              (Reading database ... 20%
                              (Reading database ... 25%
                              (Reading database ... 30%
                              (Reading database ... 35%
                              (Reading database ... 40%
                              (Reading database ... 45%
                              (Reading database ... 50%
                              (Reading database ... 55%
                              (Reading database ... 60%
                              (Reading database ... 65%
                              (Reading database ... 70%
                              (Reading database ... 75%
                              (Reading database ... 80%
                              (Reading database ... 85%
                              (Reading database ... 90%
                              (Reading database ... 95%
                              (Reading database ... 100%
                              (Reading database ... 219217 files and directories currently installed.)
                              Preparing to unpack /tmp/nginx.deb ...
                              ----------------------------------------------------------------------
                              
                              Thanks for using nginx!
                              
                              Please find the official documentation for nginx here:
                              * http://nginx.org/en/docs/
                              
                              Please subscribe to nginx-announce mailing list to get
                              the most important news about nginx:
                              * http://nginx.org/en/support.html
                              
                              Commercial subscriptions for nginx are available on:
                              * http://nginx.com/products/
                              
                              ----------------------------------------------------------------------
                              Unpacking nginx (1.18.0-2~focal) ...
                              Setting up nginx (1.18.0-2~focal) ...
                              Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
                              Processing triggers for man-db (2.9.1-1) ...
                              Processing triggers for systemd (245.4-4ubuntu3.15) ...
                              rm /tmp/nginx.deb
                              
                              # on some providers like scaleway the sudo file is changed and we want to keep the old one
                              apt-get -o Dpkg::Options::="--force-confold" install -y --no-install-recommends sudo
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              sudo is already the newest version (1.8.31-1ubuntu1.2).
                              sudo set to manually installed.
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                              
                              # this ensures that unattended upgades are enabled, if it was disabled during ubuntu install time (see #346)
                              # debconf-set-selection of unattended-upgrades/enable_auto_updates + dpkg-reconfigure does not work
                              cp /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades
                              
                              echo "==> Installing node.js"
                              ==> Installing node.js
                              readonly node_version=16.13.1
                              mkdir -p /usr/local/node-${node_version}
                              curl -sL https://nodejs.org/dist/v${node_version}/node-v${node_version}-linux-x64.tar.gz | tar zxf - --strip-components=1 -C /usr/local/node-${node_version}
                              ln -sf /usr/local/node-${node_version}/bin/node /usr/bin/node
                              ln -sf /usr/local/node-${node_version}/bin/npm /usr/bin/npm
                              apt-get install -y --no-install-recommends python   # Install python which is required for npm rebuild
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              The following additional packages will be installed:
                                libpython2-stdlib python2 python2-minimal python2.7 python2.7-minimal
                              Suggested packages:
                                python2-doc python-tk python2.7-doc binfmt-support
                              The following NEW packages will be installed:
                                libpython2-stdlib python-is-python2 python2 python2-minimal python2.7
                                python2.7-minimal
                              0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
                              Need to get 1,597 kB of archives.
                              After this operation, 4,538 kB of additional disk space will be used.
                              Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7-minimal amd64 2.7.18-1~20.04.1 [1,285 kB]
                              Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python2-minimal amd64 2.7.17-2ubuntu4 [27.5 kB]
                              Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7 amd64 2.7.18-1~20.04.1 [248 kB]
                              Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libpython2-stdlib amd64 2.7.17-2ubuntu4 [7,072 B]
                              Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python2 amd64 2.7.17-2ubuntu4 [26.5 kB]
                              Get:6 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python-is-python2 all 2.7.17-4 [2,496 B]
                              Fetched 1,597 kB in 0s (3,691 kB/s)
                              Selecting previously unselected package python2.7-minimal.
                              (Reading database ... 
                              (Reading database ... 5%
                              (Reading database ... 10%
                              (Reading database ... 15%
                              (Reading database ... 20%
                              (Reading database ... 25%
                              (Reading database ... 30%
                              (Reading database ... 35%
                              (Reading database ... 40%
                              (Reading database ... 45%
                              (Reading database ... 50%
                              (Reading database ... 55%
                              (Reading database ... 60%
                              (Reading database ... 65%
                              (Reading database ... 70%
                              (Reading database ... 75%
                              (Reading database ... 80%
                              (Reading database ... 85%
                              (Reading database ... 90%
                              (Reading database ... 95%
                              (Reading database ... 100%
                              (Reading database ... 219254 files and directories currently installed.)
                              Preparing to unpack .../python2.7-minimal_2.7.18-1~20.04.1_amd64.deb ...
                              Unpacking python2.7-minimal (2.7.18-1~20.04.1) ...
                              Selecting previously unselected package python2-minimal.
                              Preparing to unpack .../python2-minimal_2.7.17-2ubuntu4_amd64.deb ...
                              Unpacking python2-minimal (2.7.17-2ubuntu4) ...
                              Selecting previously unselected package python2.7.
                              Preparing to unpack .../python2.7_2.7.18-1~20.04.1_amd64.deb ...
                              Unpacking python2.7 (2.7.18-1~20.04.1) ...
                              Selecting previously unselected package libpython2-stdlib:amd64.
                              Preparing to unpack .../libpython2-stdlib_2.7.17-2ubuntu4_amd64.deb ...
                              Unpacking libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
                              Setting up python2.7-minimal (2.7.18-1~20.04.1) ...
                              Setting up python2-minimal (2.7.17-2ubuntu4) ...
                              Selecting previously unselected package python2.
                              (Reading database ... 
                              (Reading database ... 5%
                              (Reading database ... 10%
                              (Reading database ... 15%
                              (Reading database ... 20%
                              (Reading database ... 25%
                              (Reading database ... 30%
                              (Reading database ... 35%
                              (Reading database ... 40%
                              (Reading database ... 45%
                              (Reading database ... 50%
                              (Reading database ... 55%
                              (Reading database ... 60%
                              (Reading database ... 65%
                              (Reading database ... 70%
                              (Reading database ... 75%
                              (Reading database ... 80%
                              (Reading database ... 85%
                              (Reading database ... 90%
                              (Reading database ... 95%
                              (Reading database ... 100%
                              (Reading database ... 219310 files and directories currently installed.)
                              Preparing to unpack .../python2_2.7.17-2ubuntu4_amd64.deb ...
                              Unpacking python2 (2.7.17-2ubuntu4) ...
                              Selecting previously unselected package python-is-python2.
                              Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ...
                              Unpacking python-is-python2 (2.7.17-4) ...
                              Setting up python2.7 (2.7.18-1~20.04.1) ...
                              Setting up libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
                              Setting up python2 (2.7.17-2ubuntu4) ...
                              Setting up python-is-python2 (2.7.17-4) ...
                              Processing triggers for mime-support (3.64ubuntu1) ...
                              Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
                              Processing triggers for man-db (2.9.1-1) ...
                              Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
                              [[ "$(python --version 2>&1)" == "Python 2.7."* ]] || die "Expecting python version to be 2.7.x"
                              
                              # https://docs.docker.com/engine/installation/linux/ubuntulinux/
                              echo "==> Installing Docker"
                              ==> Installing Docker
                              
                              # create systemd drop-in file. if you channge options here, be sure to fixup installer.sh as well
                              mkdir -p /etc/systemd/system/docker.service.d
                              echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables" > /etc/systemd/system/docker.service.d/cloudron.conf
                              
                              # there are 3 packages for docker - containerd, CLI and the daemon
                              readonly docker_version=20.10.12
                              curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.4.9-1_amd64.deb" -o /tmp/containerd.deb
                              curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb
                              curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb
                              # apt install with install deps (as opposed to dpkg -i)
                              apt install -y /tmp/containerd.deb  /tmp/docker-ce-cli.deb /tmp/docker.deb
                              
                              WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
                              
                              Reading package lists...
                              Building dependency tree...
                              Reading state information...
                              The following packages were automatically installed and are no longer required:
                                chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                libgstreamer-plugins-bad1.0-0 libva-wayland2
                              Use 'sudo apt autoremove' to remove them.
                              The following additional packages will be installed:
                                git git-man liberror-perl pigz
                              Suggested packages:
                                aufs-tools cgroupfs-mount | cgroup-lite git-daemon-run | git-daemon-sysvinit
                                git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
                              Recommended packages:
                                docker-ce-rootless-extras docker-scan-plugin
                              The following NEW packages will be installed:
                                containerd.io docker-ce docker-ce-cli git git-man liberror-perl pigz
                              0 upgraded, 7 newly installed, 0 to remove and 3 not upgraded.
                              Need to get 5,523 kB/92.1 MB of archives.
                              After this operation, 417 MB of additional disk space will be used.
                              Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 pigz amd64 2.4-1 [57.4 kB]
                              Get:2 /tmp/containerd.deb containerd.io amd64 1.4.9-1 [24.7 MB]
                              Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
                              Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.2 [884 kB]
                              Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.2 [4,554 kB]
                              Get:6 /tmp/docker-ce-cli.deb docker-ce-cli amd64 5:20.10.12~3-0~ubuntu-focal [40.7 MB]
                              Get:7 /tmp/docker.deb docker-ce amd64 5:20.10.12~3-0~ubuntu-focal [21.2 MB]
                              Fetched 5,523 kB in 1s (8,325 kB/s)
                              Selecting previously unselected package pigz.
                              (Reading database ... 
                              (Reading database ... 5%
                              (Reading database ... 10%
                              (Reading database ... 15%
                              (Reading database ... 20%
                              (Reading database ... 25%
                              (Reading database ... 30%
                              (Reading database ... 35%
                              (Reading database ... 40%
                              (Reading database ... 45%
                              (Reading database ... 50%
                              (Reading database ... 55%
                              (Reading database ... 60%
                              (Reading database ... 65%
                              (Reading database ... 70%
                              (Reading database ... 75%
                              (Reading database ... 80%
                              (Reading database ... 85%
                              (Reading database ... 90%
                              (Reading database ... 95%
                              (Reading database ... 100%
                              (Reading database ... 219342 files and directories currently installed.)
                              Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...
                              Unpacking pigz (2.4-1) ...
                              Selecting previously unselected package containerd.io.
                              Preparing to unpack .../1-containerd.deb ...
                              Unpacking containerd.io (1.4.9-1) ...
                              Selecting previously unselected package docker-ce-cli.
                              Preparing to unpack .../2-docker-ce-cli.deb ...
                              Unpacking docker-ce-cli (5:20.10.12~3-0~ubuntu-focal) ...
                              Selecting previously unselected package docker-ce.
                              Preparing to unpack .../3-docker.deb ...
                              Unpacking docker-ce (5:20.10.12~3-0~ubuntu-focal) ...
                              Selecting previously unselected package liberror-perl.
                              Preparing to unpack .../4-liberror-perl_0.17029-1_all.deb ...
                              Unpacking liberror-perl (0.17029-1) ...
                              Selecting previously unselected package git-man.
                              Preparing to unpack .../5-git-man_1%3a2.25.1-1ubuntu3.2_all.deb ...
                              Unpacking git-man (1:2.25.1-1ubuntu3.2) ...
                              Selecting previously unselected package git.
                              Preparing to unpack .../6-git_1%3a2.25.1-1ubuntu3.2_amd64.deb ...
                              Unpacking git (1:2.25.1-1ubuntu3.2) ...
                              Setting up liberror-perl (0.17029-1) ...
                              Setting up containerd.io (1.4.9-1) ...
                              Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
                              Setting up docker-ce-cli (5:20.10.12~3-0~ubuntu-focal) ...
                              Setting up pigz (2.4-1) ...
                              Setting up git-man (1:2.25.1-1ubuntu3.2) ...
                              Setting up docker-ce (5:20.10.12~3-0~ubuntu-focal) ...
                              Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
                              Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
                              Job for docker.service failed because the control process exited with error code.
                              See "systemctl status docker.service" and "journalctl -xe" for details.
                              invoke-rc.d: initscript docker, action "start" failed.
                              ● docker.service - Docker Application Container Engine
                                   Loaded: loaded (]8;;file://ubuntu/lib/systemd/system/docker.service/lib/systemd/system/docker.service]8;;; enabled; vendor preset: enabled)
                                  Drop-In: /etc/systemd/system/docker.service.d
                                           └─]8;;file://ubuntu/etc/systemd/system/docker.service.d/cloudron.confcloudron.conf]8;;
                                   Active: activating (auto-restart) (Result: exit-code) since Fri 2022-03-25 12:48:30 CDT; 6ms ago
                              TriggeredBy: ● docker.socket
                                     Docs: ]8;;https://docs.docker.comhttps://docs.docker.com]8;;
                                  Process: 42189 ExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables (code=exited, status=1/FAILURE)
                                 Main PID: 42189 (code=exited, status=1/FAILURE)
                              dpkg: error processing package docker-ce (--configure):
                               installed docker-ce package post-installation script subprocess returned error exit status 1
                              Setting up git (1:2.25.1-1ubuntu3.2) ...
                              Processing triggers for man-db (2.9.1-1) ...
                              Processing triggers for systemd (245.4-4ubuntu3.15) ...
                              Errors were encountered while processing:
                               docker-ce
                              E: Sub-process /usr/bin/dpkg returned an error code (1)
                              
                              girishG 1 Reply Last reply
                              0
                              • R Rawlin

                                @girish I just tried the updated script and got a different error. Here's the log after running it.

                                Running cloudron-setup with args : --
                                Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
                                Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
                                Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
                                Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                                Fetched 336 kB in 1s (665 kB/s)
                                Reading package lists...
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                python3 is already the newest version (3.8.2-0ubuntu2).
                                curl is already the newest version (7.68.0-1ubuntu2.7).
                                software-properties-common is already the newest version (0.99.9.8).
                                ubuntu-standard is already the newest version (1.450.2).
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                                
                                readonly SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
                                
                                readonly arg_infraversionpath="${SOURCE_DIR}/../src"
                                
                                function die {
                                    echo $1
                                    exit 1
                                }
                                
                                export DEBIAN_FRONTEND=noninteractive
                                
                                readonly ubuntu_codename=$(lsb_release -cs)
                                readonly ubuntu_version=$(lsb_release -rs)
                                
                                # hold grub since updating it breaks on some VPS providers. also, dist-upgrade will trigger it
                                apt-mark hold grub* >/dev/null
                                apt-get -o Dpkg::Options::="--force-confdef" update -y
                                Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
                                Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
                                Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
                                Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
                                Fetched 336 kB in 0s (739 kB/s)
                                Reading package lists...
                                apt-get -o Dpkg::Options::="--force-confdef" upgrade -y
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                Calculating upgrade...
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                The following packages have been kept back:
                                  fwupd libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
                                0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                                apt-mark unhold grub* >/dev/null
                                
                                echo "==> Installing required packages"
                                ==> Installing required packages
                                
                                debconf-set-selections <<< 'mysql-server mysql-server/root_password password password'
                                debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password password'
                                
                                # this enables automatic security upgrades (https://help.ubuntu.com/community/AutomaticSecurityUpdates)
                                # resolvconf is needed for unbound to work property after disabling systemd-resolved in 18.04
                                
                                gpg_package=$([[ "${ubuntu_version}" == "16.04" ]] && echo "gnupg" || echo "gpg")
                                mysql_package=$([[ "${ubuntu_version}" == "20.04" ]] && echo "mysql-server-8.0" || echo "mysql-server-5.7")
                                ntpd_package=$([[ "${ubuntu_version}" == "20.04" ]] && echo "systemd-timesyncd" || echo "")
                                apt-get -y install --no-install-recommends \
                                    acl \
                                    apparmor \
                                    build-essential \
                                    cifs-utils \
                                    cron \
                                    curl \
                                    debconf-utils \
                                    dmsetup \
                                    $gpg_package \
                                    ipset \
                                    iptables \
                                    libpython2.7 \
                                    linux-generic \
                                    logrotate \
                                    $mysql_package \
                                    nfs-common \
                                    $ntpd_package \
                                    openssh-server \
                                    pwgen \
                                    resolvconf \
                                    sshfs \
                                    swaks \
                                    tzdata \
                                    unattended-upgrades \
                                    unbound \
                                    unzip \
                                    xfsprogs
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                acl is already the newest version (2.2.53-6).
                                cron is already the newest version (3.0pl1-136ubuntu1).
                                dmsetup is already the newest version (2:1.02.167-1ubuntu1).
                                iptables is already the newest version (1.8.4-3ubuntu2).
                                logrotate is already the newest version (3.14.0-4ubuntu3).
                                unzip is already the newest version (6.0-25ubuntu1).
                                xfsprogs is already the newest version (5.3.0-1ubuntu2).
                                debconf-utils is already the newest version (1.5.73).
                                pwgen is already the newest version (2.08-2).
                                resolvconf is already the newest version (1.82).
                                sshfs is already the newest version (3.6.0+repack+really2.10-0ubuntu1).
                                swaks is already the newest version (20190914.0-1).
                                apparmor is already the newest version (2.13.3-7ubuntu5.1).
                                build-essential is already the newest version (12.8ubuntu1.1).
                                cifs-utils is already the newest version (2:6.9-1ubuntu0.1).
                                curl is already the newest version (7.68.0-1ubuntu2.7).
                                gpg is already the newest version (2.2.19-3ubuntu2.1).
                                ipset is already the newest version (7.5-1ubuntu0.20.04.1).
                                linux-generic is already the newest version (5.4.0.105.109).
                                mysql-server-8.0 is already the newest version (8.0.28-0ubuntu0.20.04.3).
                                nfs-common is already the newest version (1:1.3.4-2.5ubuntu3.4).
                                openssh-server is already the newest version (1:8.2p1-4ubuntu0.4).
                                systemd-timesyncd is already the newest version (245.4-4ubuntu3.15).
                                tzdata is already the newest version (2022a-0ubuntu0.20.04).
                                unattended-upgrades is already the newest version (2.3ubuntu0.1).
                                libpython2.7 is already the newest version (2.7.18-1~20.04.1).
                                unbound is already the newest version (1.9.4-2ubuntu1.2).
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                                
                                echo "==> installing nginx for xenial for TLSv3 support"
                                ==> installing nginx for xenial for TLSv3 support
                                curl -sL http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~${ubuntu_codename}_amd64.deb -o /tmp/nginx.deb
                                # apt install with install deps (as opposed to dpkg -i)
                                apt install -y /tmp/nginx.deb
                                
                                WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
                                
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                The following NEW packages will be installed:
                                  nginx
                                0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
                                Need to get 0 B/853 kB of archives.
                                After this operation, 3,056 kB of additional disk space will be used.
                                Get:1 /tmp/nginx.deb nginx amd64 1.18.0-2~focal [853 kB]
                                Selecting previously unselected package nginx.
                                (Reading database ... 
                                (Reading database ... 5%
                                (Reading database ... 10%
                                (Reading database ... 15%
                                (Reading database ... 20%
                                (Reading database ... 25%
                                (Reading database ... 30%
                                (Reading database ... 35%
                                (Reading database ... 40%
                                (Reading database ... 45%
                                (Reading database ... 50%
                                (Reading database ... 55%
                                (Reading database ... 60%
                                (Reading database ... 65%
                                (Reading database ... 70%
                                (Reading database ... 75%
                                (Reading database ... 80%
                                (Reading database ... 85%
                                (Reading database ... 90%
                                (Reading database ... 95%
                                (Reading database ... 100%
                                (Reading database ... 219217 files and directories currently installed.)
                                Preparing to unpack /tmp/nginx.deb ...
                                ----------------------------------------------------------------------
                                
                                Thanks for using nginx!
                                
                                Please find the official documentation for nginx here:
                                * http://nginx.org/en/docs/
                                
                                Please subscribe to nginx-announce mailing list to get
                                the most important news about nginx:
                                * http://nginx.org/en/support.html
                                
                                Commercial subscriptions for nginx are available on:
                                * http://nginx.com/products/
                                
                                ----------------------------------------------------------------------
                                Unpacking nginx (1.18.0-2~focal) ...
                                Setting up nginx (1.18.0-2~focal) ...
                                Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
                                Processing triggers for man-db (2.9.1-1) ...
                                Processing triggers for systemd (245.4-4ubuntu3.15) ...
                                rm /tmp/nginx.deb
                                
                                # on some providers like scaleway the sudo file is changed and we want to keep the old one
                                apt-get -o Dpkg::Options::="--force-confold" install -y --no-install-recommends sudo
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                sudo is already the newest version (1.8.31-1ubuntu1.2).
                                sudo set to manually installed.
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
                                
                                # this ensures that unattended upgades are enabled, if it was disabled during ubuntu install time (see #346)
                                # debconf-set-selection of unattended-upgrades/enable_auto_updates + dpkg-reconfigure does not work
                                cp /usr/share/unattended-upgrades/20auto-upgrades /etc/apt/apt.conf.d/20auto-upgrades
                                
                                echo "==> Installing node.js"
                                ==> Installing node.js
                                readonly node_version=16.13.1
                                mkdir -p /usr/local/node-${node_version}
                                curl -sL https://nodejs.org/dist/v${node_version}/node-v${node_version}-linux-x64.tar.gz | tar zxf - --strip-components=1 -C /usr/local/node-${node_version}
                                ln -sf /usr/local/node-${node_version}/bin/node /usr/bin/node
                                ln -sf /usr/local/node-${node_version}/bin/npm /usr/bin/npm
                                apt-get install -y --no-install-recommends python   # Install python which is required for npm rebuild
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                The following additional packages will be installed:
                                  libpython2-stdlib python2 python2-minimal python2.7 python2.7-minimal
                                Suggested packages:
                                  python2-doc python-tk python2.7-doc binfmt-support
                                The following NEW packages will be installed:
                                  libpython2-stdlib python-is-python2 python2 python2-minimal python2.7
                                  python2.7-minimal
                                0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
                                Need to get 1,597 kB of archives.
                                After this operation, 4,538 kB of additional disk space will be used.
                                Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7-minimal amd64 2.7.18-1~20.04.1 [1,285 kB]
                                Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python2-minimal amd64 2.7.17-2ubuntu4 [27.5 kB]
                                Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python2.7 amd64 2.7.18-1~20.04.1 [248 kB]
                                Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libpython2-stdlib amd64 2.7.17-2ubuntu4 [7,072 B]
                                Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python2 amd64 2.7.17-2ubuntu4 [26.5 kB]
                                Get:6 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 python-is-python2 all 2.7.17-4 [2,496 B]
                                Fetched 1,597 kB in 0s (3,691 kB/s)
                                Selecting previously unselected package python2.7-minimal.
                                (Reading database ... 
                                (Reading database ... 5%
                                (Reading database ... 10%
                                (Reading database ... 15%
                                (Reading database ... 20%
                                (Reading database ... 25%
                                (Reading database ... 30%
                                (Reading database ... 35%
                                (Reading database ... 40%
                                (Reading database ... 45%
                                (Reading database ... 50%
                                (Reading database ... 55%
                                (Reading database ... 60%
                                (Reading database ... 65%
                                (Reading database ... 70%
                                (Reading database ... 75%
                                (Reading database ... 80%
                                (Reading database ... 85%
                                (Reading database ... 90%
                                (Reading database ... 95%
                                (Reading database ... 100%
                                (Reading database ... 219254 files and directories currently installed.)
                                Preparing to unpack .../python2.7-minimal_2.7.18-1~20.04.1_amd64.deb ...
                                Unpacking python2.7-minimal (2.7.18-1~20.04.1) ...
                                Selecting previously unselected package python2-minimal.
                                Preparing to unpack .../python2-minimal_2.7.17-2ubuntu4_amd64.deb ...
                                Unpacking python2-minimal (2.7.17-2ubuntu4) ...
                                Selecting previously unselected package python2.7.
                                Preparing to unpack .../python2.7_2.7.18-1~20.04.1_amd64.deb ...
                                Unpacking python2.7 (2.7.18-1~20.04.1) ...
                                Selecting previously unselected package libpython2-stdlib:amd64.
                                Preparing to unpack .../libpython2-stdlib_2.7.17-2ubuntu4_amd64.deb ...
                                Unpacking libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
                                Setting up python2.7-minimal (2.7.18-1~20.04.1) ...
                                Setting up python2-minimal (2.7.17-2ubuntu4) ...
                                Selecting previously unselected package python2.
                                (Reading database ... 
                                (Reading database ... 5%
                                (Reading database ... 10%
                                (Reading database ... 15%
                                (Reading database ... 20%
                                (Reading database ... 25%
                                (Reading database ... 30%
                                (Reading database ... 35%
                                (Reading database ... 40%
                                (Reading database ... 45%
                                (Reading database ... 50%
                                (Reading database ... 55%
                                (Reading database ... 60%
                                (Reading database ... 65%
                                (Reading database ... 70%
                                (Reading database ... 75%
                                (Reading database ... 80%
                                (Reading database ... 85%
                                (Reading database ... 90%
                                (Reading database ... 95%
                                (Reading database ... 100%
                                (Reading database ... 219310 files and directories currently installed.)
                                Preparing to unpack .../python2_2.7.17-2ubuntu4_amd64.deb ...
                                Unpacking python2 (2.7.17-2ubuntu4) ...
                                Selecting previously unselected package python-is-python2.
                                Preparing to unpack .../python-is-python2_2.7.17-4_all.deb ...
                                Unpacking python-is-python2 (2.7.17-4) ...
                                Setting up python2.7 (2.7.18-1~20.04.1) ...
                                Setting up libpython2-stdlib:amd64 (2.7.17-2ubuntu4) ...
                                Setting up python2 (2.7.17-2ubuntu4) ...
                                Setting up python-is-python2 (2.7.17-4) ...
                                Processing triggers for mime-support (3.64ubuntu1) ...
                                Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
                                Processing triggers for man-db (2.9.1-1) ...
                                Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
                                [[ "$(python --version 2>&1)" == "Python 2.7."* ]] || die "Expecting python version to be 2.7.x"
                                
                                # https://docs.docker.com/engine/installation/linux/ubuntulinux/
                                echo "==> Installing Docker"
                                ==> Installing Docker
                                
                                # create systemd drop-in file. if you channge options here, be sure to fixup installer.sh as well
                                mkdir -p /etc/systemd/system/docker.service.d
                                echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables" > /etc/systemd/system/docker.service.d/cloudron.conf
                                
                                # there are 3 packages for docker - containerd, CLI and the daemon
                                readonly docker_version=20.10.12
                                curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.4.9-1_amd64.deb" -o /tmp/containerd.deb
                                curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb
                                curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb
                                # apt install with install deps (as opposed to dpkg -i)
                                apt install -y /tmp/containerd.deb  /tmp/docker-ce-cli.deb /tmp/docker.deb
                                
                                WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
                                
                                Reading package lists...
                                Building dependency tree...
                                Reading state information...
                                The following packages were automatically installed and are no longer required:
                                  chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi
                                  libgstreamer-plugins-bad1.0-0 libva-wayland2
                                Use 'sudo apt autoremove' to remove them.
                                The following additional packages will be installed:
                                  git git-man liberror-perl pigz
                                Suggested packages:
                                  aufs-tools cgroupfs-mount | cgroup-lite git-daemon-run | git-daemon-sysvinit
                                  git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
                                Recommended packages:
                                  docker-ce-rootless-extras docker-scan-plugin
                                The following NEW packages will be installed:
                                  containerd.io docker-ce docker-ce-cli git git-man liberror-perl pigz
                                0 upgraded, 7 newly installed, 0 to remove and 3 not upgraded.
                                Need to get 5,523 kB/92.1 MB of archives.
                                After this operation, 417 MB of additional disk space will be used.
                                Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 pigz amd64 2.4-1 [57.4 kB]
                                Get:2 /tmp/containerd.deb containerd.io amd64 1.4.9-1 [24.7 MB]
                                Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
                                Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.2 [884 kB]
                                Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.2 [4,554 kB]
                                Get:6 /tmp/docker-ce-cli.deb docker-ce-cli amd64 5:20.10.12~3-0~ubuntu-focal [40.7 MB]
                                Get:7 /tmp/docker.deb docker-ce amd64 5:20.10.12~3-0~ubuntu-focal [21.2 MB]
                                Fetched 5,523 kB in 1s (8,325 kB/s)
                                Selecting previously unselected package pigz.
                                (Reading database ... 
                                (Reading database ... 5%
                                (Reading database ... 10%
                                (Reading database ... 15%
                                (Reading database ... 20%
                                (Reading database ... 25%
                                (Reading database ... 30%
                                (Reading database ... 35%
                                (Reading database ... 40%
                                (Reading database ... 45%
                                (Reading database ... 50%
                                (Reading database ... 55%
                                (Reading database ... 60%
                                (Reading database ... 65%
                                (Reading database ... 70%
                                (Reading database ... 75%
                                (Reading database ... 80%
                                (Reading database ... 85%
                                (Reading database ... 90%
                                (Reading database ... 95%
                                (Reading database ... 100%
                                (Reading database ... 219342 files and directories currently installed.)
                                Preparing to unpack .../0-pigz_2.4-1_amd64.deb ...
                                Unpacking pigz (2.4-1) ...
                                Selecting previously unselected package containerd.io.
                                Preparing to unpack .../1-containerd.deb ...
                                Unpacking containerd.io (1.4.9-1) ...
                                Selecting previously unselected package docker-ce-cli.
                                Preparing to unpack .../2-docker-ce-cli.deb ...
                                Unpacking docker-ce-cli (5:20.10.12~3-0~ubuntu-focal) ...
                                Selecting previously unselected package docker-ce.
                                Preparing to unpack .../3-docker.deb ...
                                Unpacking docker-ce (5:20.10.12~3-0~ubuntu-focal) ...
                                Selecting previously unselected package liberror-perl.
                                Preparing to unpack .../4-liberror-perl_0.17029-1_all.deb ...
                                Unpacking liberror-perl (0.17029-1) ...
                                Selecting previously unselected package git-man.
                                Preparing to unpack .../5-git-man_1%3a2.25.1-1ubuntu3.2_all.deb ...
                                Unpacking git-man (1:2.25.1-1ubuntu3.2) ...
                                Selecting previously unselected package git.
                                Preparing to unpack .../6-git_1%3a2.25.1-1ubuntu3.2_amd64.deb ...
                                Unpacking git (1:2.25.1-1ubuntu3.2) ...
                                Setting up liberror-perl (0.17029-1) ...
                                Setting up containerd.io (1.4.9-1) ...
                                Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
                                Setting up docker-ce-cli (5:20.10.12~3-0~ubuntu-focal) ...
                                Setting up pigz (2.4-1) ...
                                Setting up git-man (1:2.25.1-1ubuntu3.2) ...
                                Setting up docker-ce (5:20.10.12~3-0~ubuntu-focal) ...
                                Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
                                Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
                                Job for docker.service failed because the control process exited with error code.
                                See "systemctl status docker.service" and "journalctl -xe" for details.
                                invoke-rc.d: initscript docker, action "start" failed.
                                ● docker.service - Docker Application Container Engine
                                     Loaded: loaded (]8;;file://ubuntu/lib/systemd/system/docker.service/lib/systemd/system/docker.service]8;;; enabled; vendor preset: enabled)
                                    Drop-In: /etc/systemd/system/docker.service.d
                                             └─]8;;file://ubuntu/etc/systemd/system/docker.service.d/cloudron.confcloudron.conf]8;;
                                     Active: activating (auto-restart) (Result: exit-code) since Fri 2022-03-25 12:48:30 CDT; 6ms ago
                                TriggeredBy: ● docker.socket
                                       Docs: ]8;;https://docs.docker.comhttps://docs.docker.com]8;;
                                    Process: 42189 ExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables (code=exited, status=1/FAILURE)
                                   Main PID: 42189 (code=exited, status=1/FAILURE)
                                dpkg: error processing package docker-ce (--configure):
                                 installed docker-ce package post-installation script subprocess returned error exit status 1
                                Setting up git (1:2.25.1-1ubuntu3.2) ...
                                Processing triggers for man-db (2.9.1-1) ...
                                Processing triggers for systemd (245.4-4ubuntu3.15) ...
                                Errors were encountered while processing:
                                 docker-ce
                                E: Sub-process /usr/bin/dpkg returned an error code (1)
                                
                                girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #15

                                @Rawlin It seems now docker is not installed (not a DNS issue anymore). What is the output of systemctl status docker.service and journalctl -xe ?

                                R 1 Reply Last reply
                                0
                                • girishG girish

                                  @Rawlin It seems now docker is not installed (not a DNS issue anymore). What is the output of systemctl status docker.service and journalctl -xe ?

                                  R Offline
                                  R Offline
                                  Rawlin
                                  wrote on last edited by
                                  #16

                                  @girish

                                  ● docker.service - Docker Application Container Engine
                                       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset>
                                      Drop-In: /etc/systemd/system/docker.service.d
                                               └─cloudron.conf
                                       Active: active (running) since Fri 2022-03-25 12:48:33 CDT; 7min ago
                                  TriggeredBy: ● docker.socket
                                         Docs: https://docs.docker.com
                                     Main PID: 43049 (dockerd)
                                        Tasks: 13
                                       Memory: 27.7M
                                       CGroup: /system.slice/docker.service
                                               └─43049 /usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt>
                                  
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443610168-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443653667-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443659767-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443849664-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.604200242-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.688098022-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.717088766-05:0>
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.717299162-05:0>
                                  Mar 25 12:48:33 ubuntu systemd[1]: Started Docker Application Container Engine.
                                  Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.775200652-05:0>
                                  lines 1-23/23 (END)
                                  
                                  
                                  
                                  -- Support: http://www.ubuntu.com/support
                                  -- 
                                  -- The unit UNIT has successfully entered the 'dead' state.
                                  Mar 25 12:56:14 ubuntu tracker-store[45367]: OK
                                  Mar 25 12:56:14 ubuntu systemd[1280]: tracker-store.service: Succeeded.
                                  -- Subject: Unit succeeded
                                  -- Defined-By: systemd
                                  -- Support: http://www.ubuntu.com/support
                                  -- 
                                  -- The unit UNIT has successfully entered the 'dead' state.
                                  Mar 25 12:56:23 ubuntu sudo[46581]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                  Mar 25 12:56:23 ubuntu sudo[46581]: pam_unix(sudo:session): session opened for >
                                  Mar 25 12:56:56 ubuntu rtkit-daemon[833]: Supervising 5 threads of 3 processes >
                                  Mar 25 12:56:56 ubuntu rtkit-daemon[833]: Supervising 5 threads of 3 processes >
                                  Mar 25 12:57:31 ubuntu sudo[46581]: pam_unix(sudo:session): session closed for >
                                  Mar 25 12:57:51 ubuntu sudo[46631]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                  Mar 25 12:57:51 ubuntu sudo[46631]: pam_unix(sudo:session): session opened for >
                                  Mar 25 12:58:12 ubuntu sudo[46631]: pam_unix(sudo:session): session closed for >
                                  Mar 25 12:58:15 ubuntu sudo[46638]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                  Mar 25 12:58:15 ubuntu sudo[46638]: pam_unix(sudo:session): session opened for >
                                  Mar 25 12:58:58 ubuntu sudo[46638]: pam_unix(sudo:session): session closed for >
                                  Mar 25 12:59:00 ubuntu sudo[46644]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                  Mar 25 12:59:00 ubuntu sudo[46644]: pam_unix(sudo:session): session opened for >
                                  lines 2469-2491/2491 (END)
                                  
                                  
                                  
                                  girishG 1 Reply Last reply
                                  0
                                  • R Rawlin

                                    @girish

                                    ● docker.service - Docker Application Container Engine
                                         Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset>
                                        Drop-In: /etc/systemd/system/docker.service.d
                                                 └─cloudron.conf
                                         Active: active (running) since Fri 2022-03-25 12:48:33 CDT; 7min ago
                                    TriggeredBy: ● docker.socket
                                           Docs: https://docs.docker.com
                                       Main PID: 43049 (dockerd)
                                          Tasks: 13
                                         Memory: 27.7M
                                         CGroup: /system.slice/docker.service
                                                 └─43049 /usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt>
                                    
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443610168-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443653667-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443659767-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.443849664-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.604200242-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.688098022-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.717088766-05:0>
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.717299162-05:0>
                                    Mar 25 12:48:33 ubuntu systemd[1]: Started Docker Application Container Engine.
                                    Mar 25 12:48:33 ubuntu dockerd[43049]: time="2022-03-25T12:48:33.775200652-05:0>
                                    lines 1-23/23 (END)
                                    
                                    
                                    
                                    -- Support: http://www.ubuntu.com/support
                                    -- 
                                    -- The unit UNIT has successfully entered the 'dead' state.
                                    Mar 25 12:56:14 ubuntu tracker-store[45367]: OK
                                    Mar 25 12:56:14 ubuntu systemd[1280]: tracker-store.service: Succeeded.
                                    -- Subject: Unit succeeded
                                    -- Defined-By: systemd
                                    -- Support: http://www.ubuntu.com/support
                                    -- 
                                    -- The unit UNIT has successfully entered the 'dead' state.
                                    Mar 25 12:56:23 ubuntu sudo[46581]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                    Mar 25 12:56:23 ubuntu sudo[46581]: pam_unix(sudo:session): session opened for >
                                    Mar 25 12:56:56 ubuntu rtkit-daemon[833]: Supervising 5 threads of 3 processes >
                                    Mar 25 12:56:56 ubuntu rtkit-daemon[833]: Supervising 5 threads of 3 processes >
                                    Mar 25 12:57:31 ubuntu sudo[46581]: pam_unix(sudo:session): session closed for >
                                    Mar 25 12:57:51 ubuntu sudo[46631]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                    Mar 25 12:57:51 ubuntu sudo[46631]: pam_unix(sudo:session): session opened for >
                                    Mar 25 12:58:12 ubuntu sudo[46631]: pam_unix(sudo:session): session closed for >
                                    Mar 25 12:58:15 ubuntu sudo[46638]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                    Mar 25 12:58:15 ubuntu sudo[46638]: pam_unix(sudo:session): session opened for >
                                    Mar 25 12:58:58 ubuntu sudo[46638]: pam_unix(sudo:session): session closed for >
                                    Mar 25 12:59:00 ubuntu sudo[46644]:   rawlin : TTY=pts/0 ; PWD=/home/rawlin ; U>
                                    Mar 25 12:59:00 ubuntu sudo[46644]: pam_unix(sudo:session): session opened for >
                                    lines 2469-2491/2491 (END)
                                    
                                    
                                    
                                    girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #17

                                    @Rawlin said in Help please failing setup of cloudron:

                                    Mar 25 12:56:14 ubuntu tracker-store[45367]: OK

                                    Are you installing on Ubuntu Desktop or Ubuntu Server ?

                                    It seems that docker is running fine, so it's not clear to me what is happening 😞 Is it possible for me to ssh and inspect the server? If so, would be great if you can write to me at support@cloudron.io and I can try to make a proper fix.

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

                                      So, what I found so far is:

                                      I can download things from all sites just fine, but not nginx!

                                      root@Ubuntu:/home/rawlin# curl https://screenshots.cloudron.io/ca.scrumblr.cloudronapp/1.png -o /tmp/foo
                                        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                       Dload  Upload   Total   Spent    Left  Speed
                                      100  403k  100  403k    0     0   376k      0  0:00:01  0:00:01 --:--:--  376k
                                      
                                      root@Ubuntu:/home/rawlin# curl -L http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~${ubuntu_codename}_amd64.deb -o /tmp/nginx.deb
                                        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                                       Dload  Upload   Total   Spent    Left  Speed
                                        1  833k    1 15646    0     0    259      0  0:54:54  0:01:00  0:53:54     0
                                      curl: (56) Recv failure: Connection reset by peer
                                      
                                      root@Ubuntu:/home/rawlin# wget http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~${ubuntu_codename}_amd64.deb
                                      --2022-03-25 17:39:28--  http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~focal_amd64.deb
                                      Resolving nginx.org (nginx.org)... 3.125.197.172, 52.58.199.22, 2a05:d014:edb:5702::6, ...
                                      Connecting to nginx.org (nginx.org)|3.125.197.172|:80... connected.
                                      HTTP request sent, awaiting response... 200 OK
                                      Length: 853262 (833K) [application/octet-stream]
                                      Saving to: ‘nginx_1.18.0-2~focal_amd64.deb’
                                      
                                      nginx_1.18.0-2~focal_amd64.deb       1%[>                                                                ]  15.28K  --.-KB/s    in 59s     
                                      
                                      2022-03-25 17:40:28 (264 B/s) - Read error at byte 15646/853262 (Connection reset by peer). Retrying.
                                      
                                      --2022-03-25 17:40:29--  (try: 2)  http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~focal_amd64.deb
                                      Connecting to nginx.org (nginx.org)|3.125.197.172|:80... connected.
                                      HTTP request sent, awaiting response... 206 Partial Content
                                      Length: 853262 (833K), 837616 (818K) remaining [application/octet-stream]
                                      Saving to: ‘nginx_1.18.0-2~focal_amd64.deb’
                                      
                                      nginx_1.18.0-2~focal_amd64.deb       3%[+>                                                               ]  30.53K  --.-KB/s    in 59s     
                                      
                                      2022-03-25 17:41:30 (264 B/s) - Read error at byte 31259/853262 (Connection reset by peer). Retrying.
                                      
                                      

                                      So, not a curl/wget issue, some network issue when downloading from nginx.org. Strange.

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

                                        I can download small files from nginx.org just fine, other files just stall.

                                        But looks like I found the issue. nginx.org resolves to 3.125.197.172, 52.58.199.22, 2a05:d014:edb:5702::6 . If I use the 3.125.197.172, it does not work. But 52.58.199.22 works!

                                        root@Ubuntu:/home/rawlin# wget http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~${ubuntu_codename}_amd64.deb
                                        --2022-03-25 17:50:02--  http://nginx.org/packages/ubuntu/pool/nginx/n/nginx/nginx_1.18.0-2~focal_amd64.deb
                                        Resolving nginx.org (nginx.org)... 52.58.199.22
                                        Connecting to nginx.org (nginx.org)|52.58.199.22|:80... connected.
                                        HTTP request sent, awaiting response... 200 OK
                                        Length: 853262 (833K) [application/octet-stream]
                                        Saving to: ‘nginx_1.18.0-2~focal_amd64.deb’
                                        
                                        nginx_1.18.0-2~focal_amd64.deb     100%[================================================================>] 833.26K  1.16MB/s    in 0.7s    
                                        
                                        2022-03-25 17:50:03 (1.16 MB/s) - ‘nginx_1.18.0-2~focal_amd64.deb’ saved [853262/853262]
                                        
                                        1 Reply Last reply
                                        0
                                        • girishG Offline
                                          girishG Offline
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #20

                                          The workaround here was simply to edit /etc/resolv.conf and put this:

                                          52.58.199.22 nginx.org
                                          

                                          Then, running the setup script again works.

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