CRC failed on file nextcloud-23.0.12.zip

Hello, I have an old Nextcloud version that I’m going through each upgrade revision one at a time from the CLI occ upgrade command and trying to get to the latest version.

21.02 → 21.0.9 → 22.2.10 → 23.0.12

However, I am on version 22.2.10 and cannot upgrade to 23.0.12 because of a CRC error on the file located at: https://download.nextcloud.com/server/releases/nextcloud-23.0.12.zip

I downloaded on my Windows box and confirm testing with 7zip that there is a CRC error on this file. Who do I contact to see if they can re-upload nextcloud-23.0.12.zip to that distro location?

Thanks

I can confirm. The nextcloud-23.0.12.zip hashes do not match with the provided ones on the download server but the nextcloud-23.0.12.tar.bz2 matches!

I would advice to run the upgrade step to 23.0.12 manualy using nextcloud-23.0.12.tar.bz2 like described → here ←


These are the steps to download the file and check the integrity:

version='23.0.12'
archive="nextcloud-$version.tar.bz2"
server='https://download.nextcloud.com/server/releases'
wget $server/$archive
# check integrity of downloaded file 
for hash in md5 sha256 sha512; do
    [ "$(eval ${hash}sum $archive | awk '{print $1}')" = "$(curl -s $server/$archive.$hash | awk '{print $1}')" ] && echo "$hash match" || echo "hash mismatch"
done

If you copy and paste the above code in your terminal, you will have the file nextcloud-23.0.12.tar.bz2 in your working directory and the check should have echoed:

md5 match
sha256 match
sha512 match

Now you can do the manual update from the code like described in the above linked manual.

Hope this helps,
much luck!

2 Likes

Thank you ernolf for your quick reponse and solution to try. I will have to schedule downtime for next weekend to attempt this again. I appreciate your guidance and will update if successful or not. Thanks!

Btw. You can also download the latest minor release of a major version by using latest-$version.tar.bz2. That way you don’t have to know the exact version number of the latest minor release…

Example for version 23:

wget https://download.nextcloud.com/server/releases/latest-23.tar.bz2

…this should then translate to the following, if you are using the steps posted by @ernolf:

version='23'
archive="latest-$version.tar.bz2"
server='https://download.nextcloud.com/server/releases'
wget $server/$archive
# check integrity of downloaded file 
for hash in md5 sha256 sha512; do
    [ "$(eval ${hash}sum $archive | awk '{print $1}')" = "$(curl -s $server/$archive.$hash | awk '{print $1}')" ] && echo "$hash match" || echo "hash mismatch"
done

@lildude97 @ernolf Did you notify the guys from Nextcloud? Either a bug report on Issues · nextcloud/server · GitHub
or if you consider it a potential security issue: security@nextcloud.com

3 Likes

Ernolf, you are the BEST! I manually downloaded the .tar.bz2 version and unzip and manually installed based on the article and I was able to proceed to upgrading through the next versions and so forth. I am on version 25.0.9 now thanks to you and still upgrading upwards. You are a life saver and you went beyond and help report the bug too! I can’t thank you enough and to bb77 also for advising on some additional tips.

2 Likes