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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Installation fails on netcup Ubuntu 26.04 image: /etc/default/grub missing
Everything related to the PHP CVE and eMudhra Cert Please read our Security issue thread - PHP and eMudhra cert compromise.

Installation fails on netcup Ubuntu 26.04 image: /etc/default/grub missing

Scheduled Pinned Locked Moved Solved Support
installationcloudron
4 Posts 3 Posters 51 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.
  • BushidoB
    BushidoB
    Bushido
    wrote last edited by girish
    #1

    Hi,

    I tried to install Cloudron on a fresh netcup root server (AMD EPYC 9645, 8 dedicated cores, 16 GB RAM, 512 GB NVMe) using netcup's own image "Ubuntu 26.04.1 UEFI amd64 (Minimal)".

    The setup script (Cloudron 10.1.6) fails during "Installing base dependencies" with:

    Init script failed. See /var/log/cloudron-setup.log for details
    

    The end of /var/log/cloudron-setup.log shows:

    ==> Enable memory accounting
    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
    sed: can't read /etc/default/grub: No such file or directory
    

    What I found on the server:

    • GRUB is installed and used (/boot/grub and /boot/efi/EFI/ubuntu exist, systemd-boot is not installed)
    • /etc/default/grub does not exist
    • /etc/default/grub.d/ and /etc/default/grub.ucf-dist do exist

    So it seems netcup's image ships its GRUB settings only in grub.d and leaves out the main config file.

    Running the script a second time is not possible, because nginx/docker/nodejs are now already installed ("Please start with a fresh Ubuntu install").

    My plan is to reinstall the image and run this before cloudron-setup:

    cp /etc/default/grub.ucf-dist /etc/default/grub
    

    Questions:

    1. Is this a safe workaround, or is there a better way?
    2. Could the setup script handle a missing /etc/default/grub (e.g. create it or fall back to /etc/default/grub.d/)?

    Thanks!

    jdaviescoatesJ 1 Reply Last reply
    1
    • BushidoB Bushido

      Hi,

      I tried to install Cloudron on a fresh netcup root server (AMD EPYC 9645, 8 dedicated cores, 16 GB RAM, 512 GB NVMe) using netcup's own image "Ubuntu 26.04.1 UEFI amd64 (Minimal)".

      The setup script (Cloudron 10.1.6) fails during "Installing base dependencies" with:

      Init script failed. See /var/log/cloudron-setup.log for details
      

      The end of /var/log/cloudron-setup.log shows:

      ==> Enable memory accounting
      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
      sed: can't read /etc/default/grub: No such file or directory
      

      What I found on the server:

      • GRUB is installed and used (/boot/grub and /boot/efi/EFI/ubuntu exist, systemd-boot is not installed)
      • /etc/default/grub does not exist
      • /etc/default/grub.d/ and /etc/default/grub.ucf-dist do exist

      So it seems netcup's image ships its GRUB settings only in grub.d and leaves out the main config file.

      Running the script a second time is not possible, because nginx/docker/nodejs are now already installed ("Please start with a fresh Ubuntu install").

      My plan is to reinstall the image and run this before cloudron-setup:

      cp /etc/default/grub.ucf-dist /etc/default/grub
      

      Questions:

      1. Is this a safe workaround, or is there a better way?
      2. Could the setup script handle a missing /etc/default/grub (e.g. create it or fall back to /etc/default/grub.d/)?

      Thanks!

      jdaviescoatesJ
      jdaviescoatesJ
      jdaviescoates
      Super Fan
      wrote last edited by
      #2

      @Bushido I've his this in the past. It's part of why I moved away from Netcup and back to Hetzner. In short, I think your safest bet is to install one of the full Ubuntu images before installing Cloudron. A bit of a pain as they don't make that a simple as you'd expect (and really we'd expect their own image to not he so stripped down in the first place)

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      3
      • girishG
        girishG
        girish
        Staff
        wrote last edited by
        #3

        I have removed that portion of code altogether. It was added very early during Cloudron 5-6 timeframe. As a hack, you can just touch /etc/default/grub and then install Cloudron.

        1 Reply Last reply
        1
        • girishG girish has marked this topic as solved
        • BushidoB
          BushidoB
          Bushido
          wrote last edited by
          #4

          @jdaviescoates Thank you so much, your advice was spot on!

          I reinstalled the server with the full Ubuntu 26.04 Server from netcup's DVD drive (ISO install via the SCP console, "Ubuntu Server" instead of "minimized"), ran a full apt upgrade, and after that cloudron-setup went through without any issues.

          For anyone else hitting this on netcup: the "Minimal" images in the SCP are missing /etc/default/grub (and possibly more), so going the ISO route is the safest bet.

          Really appreciate you taking the time to share your experience. It saved me a lot of frustration!

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          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