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


    Cloudron Forum

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

    Solved Installation Issues

    Support
    installation
    3
    3
    296
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • kdev
      kdev last edited by girish

      So I tried installing Cloudron but I'm getting this error:

      => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
      

      Logs:

      Running cloudron-setup with args : --
      Hit:1 http://asi-fs-d.contabo.net/ubuntu focal InRelease
      Hit:2 http://asi-fs-d.contabo.net/ubuntu focal-updates InRelease
      Hit:3 http://asi-fs-d.contabo.net/ubuntu focal-backports InRelease
      Hit:4 https://cli.github.com/packages stable InRelease
      Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
      Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
      Hit:7 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
      Hit:8 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu focal InRelease
      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.5).
      software-properties-common is already the newest version (0.98.9.5).
      ubuntu-standard is already the newest version (1.450.2).
      0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up docker-ce (5:20.10.3~3-0~ubuntu-focal) ...
      
      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://asi-fs-d.contabo.net/ubuntu focal InRelease
      Hit:2 http://asi-fs-d.contabo.net/ubuntu focal-updates InRelease
      Hit:3 http://asi-fs-d.contabo.net/ubuntu focal-backports InRelease
      Hit:4 https://cli.github.com/packages stable InRelease
      Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
      Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease
      Hit:7 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
      Hit:8 https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu focal InRelease
      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 have been kept back:
        docker-ce-cli
      The following packages will be upgraded:
        containerd.io docker-ce
      2 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      Need to get 53.2 MB of archives.
      After this operation, 1,345 kB of additional disk space will be used.
      Get:1 https://download.docker.com/linux/ubuntu focal/stable amd64 containerd.io amd64 1.4.6-1 [28.3 MB]
      Get:2 https://download.docker.com/linux/ubuntu focal/stable amd64 docker-ce amd64 5:20.10.7~3-0~ubuntu-focal [24.8 MB]
      Fetched 53.2 MB in 2s (23.8 MB/s)
      (Reading database ... 113695 files and directories currently installed.)
      Preparing to unpack .../containerd.io_1.4.6-1_amd64.deb ...
      Unpacking containerd.io (1.4.6-1) over (1.4.3-1) ...
      Preparing to unpack .../docker-ce_5%3a20.10.7~3-0~ubuntu-focal_amd64.deb ...
      Unpacking docker-ce (5:20.10.7~3-0~ubuntu-focal) over (5:20.10.3~3-0~ubuntu-focal) ...
      Setting up containerd.io (1.4.6-1) ...
      Setting up docker-ce (5:20.10.7~3-0~ubuntu-focal) ...
      Processing triggers for man-db (2.9.1-1) ...
      Processing triggers for systemd (245.4-4ubuntu3.7) ...
      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")
      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 \
          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).
      ipset is already the newest version (7.5-1~exp1).
      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.5).
      gpg is already the newest version (2.2.19-3ubuntu2.1).
      linux-generic is already the newest version (5.4.0.77.80).
      mysql-server-8.0 is already the newest version (8.0.25-0ubuntu0.20.04.1).
      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.2).
      tzdata is already the newest version (2021a-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).
      0 upgraded, 0 newly installed, 0 to remove and 1 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...
      nginx is already the newest version (1.18.0-2~focal).
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      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).
      0 upgraded, 0 newly installed, 0 to remove and 1 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=14.15.4
      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...
      python-is-python2 is already the newest version (2.7.17-4).
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      [[ "$(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" > /etc/systemd/system/docker.service.d/cloudron.conf
      
      # there are 3 packages for docker - containerd, CLI and the daemon
      readonly docker_version=20.10.3
      curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.4.3-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...
      docker-ce-cli is already the newest version (5:20.10.3~3-0~ubuntu-focal).
      Suggested packages:
        aufs-tools cgroupfs-mount | cgroup-lite
      The following packages will be DOWNGRADED:
        containerd.io docker-ce
      0 upgraded, 0 newly installed, 2 downgraded, 0 to remove and 0 not upgraded.
      E: Packages were downgraded and -y was used without --allow-downgrades.
      
      girish 1 Reply Last reply Reply Quote 0
      • scooke
        scooke last edited by

        I can't pinpoint anything specifically, but the places where it says something is being downgraded, or that an item already exists, tells me that this is not a clean/fresh VPS. Cloudron must be installed on a clean/fresh VPS, without anything already installed (except for any possible additional users); not even a firewall should be installed!

        https://docs.cloudron.io/installation/ The first line on this page instructs that it needs a fresh VPS. Looks like you need to reinstall the OS and start over, but it shouldn't take long.

        A life lived in fear is a life half-lived

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

          @kdev Indeed as @scooke mentioned it seems that docker is already installed on the server. Can you uninstall it and try again? In general, Cloudron must be installed on a fresh Ubuntu 20.04 without docker etc.

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