No check for nextcloud tar file being fully downloaded

Creating a bug report/issue

Required Information

  • DietPi version: 8.5.1
  • Distro version: bullseye

Additional Information (if applicable)

  • Software title
    Nextcloud
  • Was the software title installed freshly or updated/migrated?
    Fresh installation
  • Can this issue be replicated on a fresh installation of DietPi?
    I am sure it can.

Steps to reproduce

  1. Start Nextcloud installation
  2. Interrupt connection with external networks while the latest.tar file is being downloaded
  3. The next command that is supposed to extract the tar file will fail

Expected behaviour

The script checks if the file is fully downloaded

Actual behaviour

The script fails and retrying the last command will just fail endlessly

Extra details

I was setting up the distro with a terrible internet connection. The LAN access was just fine. But sometimes connecting to repos and websites was really slow, somehow the download did not complete properly but the program still tried to extract the incomplete tar fileā€¦

Usually the installation process is not continuing until download (curl) finished successfully. @MichaIng any ideas how this could happen?

Ah yeah the background downloads are waited for but not error-handled. You should have seen an error message but no way to retry. Something we need to implement into the G_THREAT_WAIT function for failed commands.