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

    Init script failed every Time

    Support
    installation
    3
    11
    440
    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.
    • K
      Kirakodo last edited by girish

      Good Morning,
      I'm running into script failed error while installing Cloudron:

      ##############################################
               Cloudron Setup (latest)
      ##############################################
      
       Follow setup logs in a second terminal with:
       $ tail -f /var/log/cloudron-setup.log
      
       Join us at https://forum.cloudron.io for any questions.
      
      => Updating apt and installing script dependencies
      => Checking version
      => Downloading version 7.0.3 ...
      => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
      root@h2939339:~# tail -f /var/log/cloudron-setup.log
      /etc/kernel/postinst.d/initramfs-tools:
      update-initramfs: Generating /boot/initrd.img-5.4.0-90-generic
      E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
      update-initramfs: failed for /boot/initrd.img-5.4.0-90-generic with 1.
      run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
      dpkg: Fehler beim Bearbeiten des Paketes linux-image-5.4.0-90-generic (--configure):
       »installiertes linux-image-5.4.0-90-generic-Skript des Paketes post-installation«-Unterprozess gab den Fehlerwert 1 zurück
      Fehler traten auf beim Bearbeiten von:
       linux-image-5.4.0-90-generic
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      

      I have a VM Server from Strato with the newest ubuntu installed end ever get this problem
      What can I do?

      BrutalBirdie 1 Reply Last reply Reply Quote 0
      • BrutalBirdie
        BrutalBirdie Staff @Kirakodo last edited by

        @kirakodo
        Personal opinion incomming: Don't use Strato.

        Did you try a clean up of apt?

        apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade
        

        Like my work? Consider donating a beer 🍻 Cheers!

        1 Reply Last reply Reply Quote 0
        • K
          Kirakodo last edited by

          I have tried this now but I get the same error

          BrutalBirdie 1 Reply Last reply Reply Quote 0
          • BrutalBirdie
            BrutalBirdie Staff @Kirakodo last edited by

            @kirakodo If this is a fresh VM and there is no data to be lost can you try this?

            apt remove initramfs-tools
            
            apt clean
            
            apt install initramfs-tools
            

            Like my work? Consider donating a beer 🍻 Cheers!

            K 1 Reply Last reply Reply Quote 0
            • K
              Kirakodo @BrutalBirdie last edited by

              @brutalbirdie ok I tried but the cloudron install faild but with a difrent error

              
              ##############################################
                       Cloudron Setup (latest)
              ##############################################
              
               Follow setup logs in a second terminal with:
               $ tail -f /var/log/cloudron-setup.log
              
               Join us at https://forum.cloudron.io for any questions.
              
              => Updating apt and installing script dependencies
              => Checking version
              => Downloading version 7.0.3 ...
              => Installing base dependencies and downloading docker images (this takes some time) ...Init script failed. See /var/log/cloudron-setup.log for details
              root@h2939339:~# tail -f /var/log/cloudron-setup.log
              Created symlink /etc/systemd/system/emergency.target.wants/grub-initrd-fallback.service → /lib/systemd/system/grub-initrd-fallback.service.
              Created symlink /etc/systemd/system/sleep.target.wants/grub-initrd-fallback.service → /lib/systemd/system/grub-initrd-fallback.service.
              update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
              grub2-common (2.04-1ubuntu26.13) wird eingerichtet ...
              Trigger für systemd (245.4-4ubuntu3.13) werden verarbeitet ...
              Trigger für man-db (2.9.1-1) werden verarbeitet ...
              Trigger für install-info (6.7.0.dfsg.2-5) werden verarbeitet ...
              Trigger für libc-bin (2.31-0ubuntu9.2) werden verarbeitet ...
              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
              
              
              K 1 Reply Last reply Reply Quote 0
              • K
                Kirakodo @Kirakodo last edited by

                @kirakodo and when i now try the setup I get

                Error: Some packages like nginx/docker/nodejs are already installed. Cloudron requires specific versions of these packages and will install them as part of it's installation. Please start with a fresh Ubuntu install and run this script again.
                
                
                BrutalBirdie 1 Reply Last reply Reply Quote 0
                • BrutalBirdie
                  BrutalBirdie Staff @Kirakodo last edited by BrutalBirdie

                  @kirakodo
                  You should really start with a fresh VM as the message suggests.
                  And when you reset the VM the first thing you should do is a apt-get update and apt-get upgrade and a reboot

                  Like my work? Consider donating a beer 🍻 Cheers!

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    Kirakodo @BrutalBirdie last edited by

                    @brutalbirdie ok i did it but i get the same error what i postet at first

                    BrutalBirdie 1 Reply Last reply Reply Quote 1
                    • K
                      Kirakodo last edited by

                      Finaly I solved the problem
                      What I did after I mage a fresch ubuntu:

                      apt-get auto-remove && apt-get clean && apt-get update && apt-get upgrade
                      apt remove initramfs-tools
                      apt clean
                      apt install initramfs-tools
                      sudo apt-get --reinstall install grub-pc
                      apt clean
                      reboot
                      
                      wget https://cloudron.io/cloudron-setup
                      chmod +x cloudron-setup
                      ./cloudron-setup
                      

                      This works for me

                      robi 1 Reply Last reply Reply Quote 2
                      • BrutalBirdie
                        BrutalBirdie Staff @Kirakodo last edited by

                        @kirakodo said in Init script failed every Time:

                        ok i did it but i get the same error what i postet at first

                        This indicated the the VM from Strato is bad in the first palce. More so the VM Ubuntu Image.
                        If they even fail to deliver a working Ubuntu from the get go, big red flag!

                        Like I said, personal opinion, don't use Strato!

                        Like my work? Consider donating a beer 🍻 Cheers!

                        1 Reply Last reply Reply Quote 0
                        • robi
                          robi @Kirakodo last edited by

                          @kirakodo what is the output of this command that tests IO on your system?

                           dd if=/dev/zero of=/tmp/test1.img bs=1G count=1 oflag=dsync ; rm /tmp/test1.img
                          
                          

                          Life of Advanced Technology

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