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 Init script failed on Ubuntu 20.04 on Tencent Cloud

    Support
    installation
    3
    5
    271
    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.
    • D
      daguji last edited by

      Hi, I got this error on Tencent Cloud with Ubuntu 20.04, with a fresh server and a fresh server after command apt update apt upgrade. Both have the same error.

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

      the log file:

       libnet-smtp-ssl-perl libopts25 libosp5 libostyle1c2 libpackage-stash-perl
        libpackage-stash-xs-perl libpadwalker-perl libpaper-utils libpaper1
        libparams-classify-perl libparams-util-perl
        libparams-validationcompiler-perl libpdfbox-java libpixman-1-0 libptexenc1
        libreadonly-perl libref-util-perl libref-util-xs-perl librole-tiny-perl
        libsgmls-perl libsombok3 libspecio-perl libsub-exporter-perl
        libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl
        libsub-name-perl libsub-override-perl libsub-quote-perl libsynctex2
        libtcl8.6 libteckit0 libtexlua53 libtexluajit2 libthai-data libthai0
        libtie-ixhash-perl libtimedate-perl libtk8.6 libtry-tiny-perl
        libunicode-linebreak-perl liburi-perl libvariable-magic-perl libwoff1
        libwww-perl libwww-robotrules-perl libx11-protocol-perl libxcb-render0
        libxcursor1 libxdamage1 libxml-parser-perl libxml-twig-perl
        libxml-xpathengine-perl libxss1 libxstring-perl libyaml-tiny-perl
        libzzip-0-13 lmodern openjade opensp poppler-data preview-latex-style
        sgml-base sgml-data sgmlspl sntp squashfs-tools t1utils tcl tcl8.6 teckit
        tex-common tex-gyre texlive texlive-base texlive-bibtex-extra
        texlive-binaries texlive-extra-utils texlive-fonts-recommended
        texlive-formats-extra texlive-lang-greek texlive-latex-base
        texlive-latex-extra texlive-latex-recommended texlive-pictures
        texlive-plain-generic texlive-science texlive-xetex tipa tk tk8.6
        x11-xserver-utils xdg-utils xfonts-encodings xfonts-utils xml-core xmlto
        xsltproc
      Use 'apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      [[ "$(python --version 2>&1)" == "Python 2.7."* ]] || die "Expecting python version to be 2.7.x"
      Expecting python version to be 2.7.x
      
      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @daguji last edited by

        @daguji What does python --version print ? It should print Python 2.7.18 on ubuntu 20.04

        D 1 Reply Last reply Reply Quote 0
        • D
          daguji @girish last edited by

          @girish The version is Python 3.8.10, then how do I fix this?

          nebulon 1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff @daguji last edited by

            @daguji looks like the apt upgrade pulled in python 3 then. Can you reset the server and not run anything besides the Cloudron setup? The setup script will pull in any security updates and the exact package versions Cloudron expects.

            D 1 Reply Last reply Reply Quote 0
            • D
              daguji @nebulon last edited by

              @nebulon Thanks. I have solved this issue. The initial python version is 3.8, after switching to Python 2.7 the issue was solved.

              Reference this link: https://linuxconfig.org/ubuntu-20-04-python-version-switch-manager

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