Hello,
We recently got a new workstation to process cryoEM data. It came with CryoSPARC 5.0.6 preinstalled, with the master and worker configured on the same workstation. We changed the hostname from the manufacturer’s default (snXXXXXXXXXX) to something more palatable (hostname.university.internal). We used CryoSPARC without issue for several weeks after the hostname change, but now we are receiving the following error:
✕ UnauthorizedException: This command must run on the CryoSPARC master host, but there is a mismatch between the $CRYOSPARC_MASTER_HOSTNAME definition (hostname.university.internal) and the configured hostname of this host (Hostname.university.internal).
If, and only if, the command ran on the CryoSPARC master host, but the host is configured with a different hostname, consider the appropriate intervention for your circumstances:
1 Ensure $CRYOSPARC_MASTER_HOSTNAME and the output of command hostname -f match. CRYOSPARC_MASTER_HOSTNAME may be defined inside cryosparc_master/config.sh. Restart CryoSPARC after this change.
2 Or: re-run this command with the environment variable CRYOSPARC_FORCE_HOSTNAME=“true”. This setting bypasses an important safety check and may disrupt CryoSPARC function if used inappropriately.
The output of hostname -f and CRYOSPARC_MASTER_HOSTNAME match exactly, both show lower case hostname. Our university IT department also confirmed that they see lower case hostname on their registry.
When I enable CRYOSPARC_FORCE_HOSTNAME, the master will start and the web app is then accessible. However, when we attempt to run any job that requires the worker node, we get the following error:
Traceback (most recent call last): File “core/job_scheduling.py”, line 47, in core.job_scheduling.schedule_jobs File “core/job_scheduling.py”, line 283, in core.job_scheduling.schedule_job File “/home/cryosparc_user/software/cryosparc/cryosparc_master/core/jobs.py”, line 565, in launch_job return launch_job_on_node(job, target) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/cryosparc_user/software/cryosparc/cryosparc_master/core/jobs.py”, line 663, in launch_job_on_node return launch_job_on(job, target) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/cryosparc_user/software/cryosparc/cryosparc_master/core/jobs.py”, line 673, in launch_job_on pid = processing.exec_on( ^^^^^^^^^^^^^^^^^^^ File “/home/cryosparc_user/software/cryosparc/cryosparc_master/core/processing.py”, line 453, in exec_on raise ExecError(“SSH command failed”, **error_details) core.processing.ExecError: ssh user@hostname.university.internal ‘bash -c ‘"’“‘nohup /home/cryosparc_user/software/cryosparc/cryosparc_worker/bin/cryosparcw run --project P5 --job J97 --master hostname.university.internal --port 61000 --timeout 20000 --auth 2>/scr/nice_dataset/cool_target/J97/job.log >&2 & echo $!’”’"‘’: SSH command failed (code 255) Output: Error: ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory Host key verification failed.
I’ve tried setting CRYOSPARC_HOSTNAME_CHECK=”hostname.university.internal” in the config.sh file, which has not worked. I’ve also turned the workstation off overnight and disconnected all cables to see if a hard reboot would fix the issue, but it did not.
Is there anywhere else where this capitalization mismatch in the hostname could be coming from? I would like to avoid reinstalling if possible, but that’s the only other option I can think of currently.
Thanks so much!
Sincerely,
Mitch