Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Update failing with error

Trying to patch our cluster this morning from 3.2.1 to 3.3.0.

When following the online upgrade guide I get errors trying to update. Below is just part of the error messages. Is something happening with the repo this morning?

 

Get:4 http://archive.petasan.org/repo_v3 petasan-v3/updates amd64 ceph-osd amd64 17.2.7-1petasan [18.7 MB]               

Err:4 http://archive.petasan.org/repo_v3 petasan-v3/updates amd64 ceph-osd amd64 17.2.7-1petasan                         

  File has unexpected size (4183876 != 18657804). Mirror sync in progress? [IP: 67.20.112.233 443]

  Hashes of expected file:

   - SHA256:c838be170acf9f374a0168a4f0f6f2e720c2c9819d1ce977b645ea0dd9136923

   - SHA1:d28d8b3a4e2f16aab57a160f160f0884cc1fe57d [weak]

   - MD5Sum:2fa7b3e53781cf9df0937eb58897813c [weak]

   - Filesize:18657804 [weak]

Fetched 139 MB in 6s (22.4 MB/s)                                                                                         

W: https://archive.petasan.org/repo_v3/pool/updates/c/ceph/ceph-base_17.2.7-1petasan_amd64.deb: Automatically disabled Acquire::http::Pipeline-Depth due to incorrect response from server/proxy. (man 5 apt.conf)

E: Failed to fetch https://archive.petasan.org/repo_v3/pool/updates/c/ceph/python3-rgw_17.2.7-1petasan_amd64.deb  File has unexpected size (153736 != 4183876). Mirror sync in progress? [IP: 67.20.112.233 443]

   Hashes of expected file:

    - SHA256:1d410ea29704a724fd780c67dea33d0809531b3a5c103973330b82c7b2f94128

    - SHA1:eb07c369cf033d3930196efac3f12ea9ba079f4a [weak]

    - MD5Sum:7582ba4e4f8dbec7f118f49d519e263e [weak]

    - Filesize:4183876 [weak]

E: Failed to fetch https://archive.petasan.org/repo_v3/pool/updates/c/ceph/ceph-osd_17.2.7-1petasan_amd64.deb  File has unexpected size (18657804 != 153736). Mirror sync in progress? [IP: 67.20.112.233 443]

 

 

Thanks,
Neil

i just tried it and it is working. maybe a network glitch..

I did try again a little while ago and it was working….
I did two of six nodes...

When I did the 3rd node (petasan4) it failed and now I appear to be stuck.

It failed part way during the /opt/petasan/scripts/online-upgrades/update.sh script, i pasted the output from that below since it is long.

if I try to run the script again, i get an error that says petasan isn't installed:

root@petasan4:~# /opt/petasan/scripts/online-updates/update.sh 

No current version of PetaSAN installed.

 

My cluster health is still ok currently, this node is not serving any iscsi paths, but not sure what i should do...

Current state of system is:
3 nodes running 3.2.1
2 nodes running 3.3.0
1 node that seems to be up, but is in the state described above and shown below.

EDIT -
Did some clean up, searched in here for help, and i think it is working again.

Was able to re-run the script and it looks like installed properly this time.

 

look at the content of the online-upgrades/update.sh, it fetches a script online which it then runs. download that script and modify it to remove the PetaSAN installed version checks and run it yourself, It is mostly apt update / upgrade but with some checks and pacthes. Also make sure your connection is stable. apt system should handle re-running a stuck upgrade with no issues. If you experience a lot of connection issues in future it may be best to setup a local repositoty with synced content.

That is basically what I did, read through the script, figured out where it failed, did some cleanup  and re-ran the updates.  It all finished and I was able to patch the other nodes and get everything up.