Update from 4.2 to 4.5.1 failed

Correct. But I am surprised the update failed under these circumstances. You can try the following in a fresh shell under the cryosparc account:

eval $( /home/cryosparc/cryosparc_worker/bin/cryosparcw env)
cd /home/cryosparc/cryosparc_worker/
curl -L https://get.cryosparc.com/download/worker-v4.5.1/$CRYOSPARC_LICENSE_ID -o cryosparc_worker.tar.gz
./bin/cryosparcw update

I you see
Successfully updated. after running these commands, you can

  1. exit the shell (to avoid inadvertently running commands inside the loaded CryoSPARC environment)
  2. try the worker test again