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. Installation: init script failed

Installation: init script failed

Scheduled Pinned Locked Moved Unsolved Support
installation
7 Posts 3 Posters 802 Views 3 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.
    • A Offline
      A Offline
      aksanoble
      wrote on last edited by girish
      #1

      Hello!
      Cloudron new user here. I'm trying to setup Cloudron on a desktop machine at home. (Fresh Ubuntu installation along with Dual boot with windows). The installation script failed with the error init script failed.

      Didn't find anything obvious that failed in /var/log/cloudron-setup.log. What should I look for in that file to help debug.

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

        Generally not sure if this is a good idea, as Cloudron is a server OS essentially so It's designed to always run.
        For the actual installation, which Ubuntu version was used?

        1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • A Offline
          A Offline
          aksanoble
          wrote on last edited by
          #3

          My intent was to setup a server at home and keep it always on. Ubuntu 22.04. I have the log file handy with me and can share.

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

            Yes please attach it here so we can have a look.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aksanoble
              wrote on last edited by
              #5

              Adding the last few lines...

              echo "==> Ensuring python $python_package"
              ==> Ensuring python python3.10
              apt-get install -y --no-install-recommends $python_package   # Install python which is required for npm rebuild
              Reading package lists...
              Building dependency tree...
              Reading state information...
              python3.10 is already the newest version (3.10.12-1~22.04.2).
              python3.10 set to manually installed.
              0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
              
              # do not upgrade grub because it might prompt user and break this script
              echo "==> Enable memory accounting"
              ==> Enable memory accounting
              apt-get -y --no-upgrade --no-install-recommends install grub2-common
              Reading package lists...
              Building dependency tree...
              Reading state information...
              Skipping grub2-common, it is already installed and upgrade is not set.
              0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
              sed -e 's/^GRUB_CMDLINE_LINUX="\(.*\)"$/GRUB_CMDLINE_LINUX="\1 cgroup_enable=memory swapaccount=1 panic_on_oops=1 panic=5"/' -i /etc/default/grub
              update-grub
              Sourcing file `/etc/default/grub'
              Sourcing file `/etc/default/grub.d/init-select.cfg'
              Generating grub configuration file ...
              Found linux image: /boot/vmlinuz-6.2.0-26-generic
              Found initrd image: /boot/initrd.img-6.2.0-26-generic
              Found linux image: /boot/vmlinuz-5.15.0-82-generic
              Found initrd image: /boot/initrd.img-5.15.0-82-generic
              Found memtest86+ image: /boot/memtest86+.elf
              Found memtest86+ image: /boot/memtest86+.bin
              Warning: os-prober will not be executed to detect other bootable partitions.
              Systems on them will not be added to the GRUB boot configuration.
              Check GRUB_DISABLE_OS_PROBER documentation entry.
              done
              
              echo "==> Install collectd"
              ==> Install collectd
              # without this, libnotify4 will install gnome-shell
              apt-get install -y libnotify4 libcurl3-gnutls --no-install-recommends
              Reading package lists...
              Building dependency tree...
              Reading state information...
              libcurl3-gnutls is already the newest version (7.81.0-1ubuntu1.13).
              libcurl3-gnutls set to manually installed.
              libnotify4 is already the newest version (0.7.9-3ubuntu5.22.04.1).
              libnotify4 set to manually installed.
              0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
              # https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/1872281
              if [[ "${ubuntu_version}" == "22.04" ]]; then
                  readonly launchpad="https://launchpad.net/ubuntu/+source/collectd/5.12.0-9/+build/23189375/+files"
                  cd /tmp && wget -q "${launchpad}/collectd_5.12.0-9_amd64.deb" "${launchpad}/collectd-utils_5.12.0-9_amd64.deb" "${launchpad}/collectd-core_5.12.0-9_amd64.deb" "${launchpad}/libcollectdclient1_5.12.0-9_amd64.deb"
                  cd /tmp && apt install -y --no-install-recommends ./libcollectdclient1_5.12.0-9_amd64.deb ./collectd-core_5.12.0-9_amd64.deb ./collectd_5.12.0-9_amd64.deb ./collectd-utils_5.12.0-9_amd64.deb && rm -f /tmp/collectd_*.deb
                  echo -e "\nLD_PRELOAD=/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so" >> /etc/default/collectd
              else
                  if ! apt-get install -y --no-install-recommends collectd collectd-utils; then
                      # FQDNLookup is true in default debian config. The box code has a custom collectd.conf that fixes this
                      echo "Failed to install collectd, continuing anyway. Presumably because of http://mailman.verplant.org/pipermail/collectd/2015-March/006491.html"
                  fi
              
                  if [[ "${ubuntu_version}" == "20.04" ]]; then
                      echo -e "\nLD_PRELOAD=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so" >> /etc/default/collectd
                  fi
              fi
              
              
              1 Reply Last reply
              0
              • A Offline
                A Offline
                aksanoble
                wrote on last edited by
                #6

                Wondering if this is related to grub?

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

                  Looks like some collectd related failure (if those are the last log lines):

                      readonly launchpad="https://launchpad.net/ubuntu/+source/collectd/5.12.0-9/+build/23189375/+files"
                      cd /tmp && wget -q "${launchpad}/collectd_5.12.0-9_amd64.deb" "${launchpad}/collectd-utils_5.12.0-9_amd64.deb" "${launchpad}/collectd-core_5.12.0-9_amd64.deb" "${launchpad}/libcollectdclient1_5.12.0-9_amd64.deb"
                      cd /tmp && apt install -y --no-install-recommends ./libcollectdclient1_5.12.0-9_amd64.deb ./collectd-core_5.12.0-9_amd64.deb ./collectd_5.12.0-9_amd64.deb ./collectd-utils_5.12.0-9_amd64.deb && rm -f /tmp/collectd_*.deb
                      echo -e "\nLD_PRELOAD=/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so" >> /etc/default/collectd
                  

                  Can you run the above manually line by line and check if it works ?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search