Worker cannot connect to master by "KeyError: 'USER'" in standalone installation

Hi,

I’m trying to install cryoSPARC 2.15 in standalone mode.

While installation of worker and master was successful (according to the output log), but a connection of worker to master failed in the later step of the standalone installation.

 Connecting the cryoSPARC worker to the master...

 ---------------------------------------------------------------
  CRYOSPARC CONNECT --------------------------------------------
 ---------------------------------------------------------------
  Attempting to register worker 04857851e4b6 to command 04857851e4b6:39002
Traceback (most recent call last):
  File "bin/connect.py", line 84, in <module>
    print     "  Connecting as unix user %s" % (os.environ['USER'])
  File "/home/csparc/softwares/cryosparc/cryosparc2_worker/deps/anaconda/lib/python2.7/UserDict.py", line 40, in __getitem__
    raise KeyError(key)
KeyError: 'USER'

Has anyone experienced the same error?

Thank you,
Kotaro Tanaka

Sorry, this was a dockerfile specific problem.

The problem was solved by explicitly specifying the USER environmental variable via ENV USER (user name).

Thanks for the update @kttn!