Hello,
I would like to change the location of a project directory and I am following the instructions listed here: https://discuss.cryosparc.com/t/change-the-output-directory-of-a-job-workspace/2381
However, when I run the cryosparcm icli
command, I get the following errors:
> Python 2.7.15 |Anaconda, Inc.| (default, Oct 10 2018, 21:32:13)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 5.1.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
> *** client.py: command (http:// my.server.edu:39005/api) did not reply within timeout of 300 seconds, attempt 1 of
> *** client.py: command (http:// my.server.edu:39005/api) did not reply within timeout of 300 seconds, attempt 2 of
> *** client.py: command (http:// my.server.edu:39005/api) did not reply within timeout of 300 seconds, attempt 3 of
> ---------------------------------------------------------------------------
> ConnectionError Traceback (most recent call last)
> /opt/cryosparc/cryosparc2_master/setup_client_ipython.py in <module>()
> 18 rtp_port=int(os.environ['CRYOSPARC_COMMAND_RTP_PORT'])
> 19 cli = client.CommandClient(host=host, port=port)
> ---> 20 rtp = client.CommandClient(host=host, port=rtp_port)
> 21
> 22 from pymongo import MongoClient
>
> /opt/cryosparc/cryosparc2_master/cryosparc2_compute/client.pyc in __init__(self, host, port, url, timeout)
> 31 self.url = "http://%s:%s%s" % (host, str(port), url)
> 32 self.timeout = timeout
> ---> 33 self._reload()
> 34 def _get_callable(self, key):
> 35 def func(*args, **kwargs):
>
> /opt/cryosparc/cryosparc2_master/cryosparc2_compute/client.pyc in _reload(self)
> 59 return func
> 60 def _reload(self):
> ---> 61 system = self._get_callable('system.describe')()
> 62 self.endpoints = [p['name'] for p in system['procs']]
> 63 for key in self.endpoints:
>
> /opt/cryosparc/cryosparc2_master/cryosparc2_compute/client.pyc in func(*args, **kwargs)
> 47 while not done:
> 48 try:
> ---> 49 r = requests.post(self.url, data = json.dumps(data, cls=NumpyEncoder), headers = header,
> 50 res = r.json()
> 51 done = True
>
> /opt/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/api.pyc in post(url, data, json,
> 114 """
> 115
> --> 116 return request('post', url, data=data, json=json, **kwargs)
> 117
> 118
>
> /opt/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/api.pyc in request(method, url, *
> 58 # cases, and look like a memory leak in others.
> 59 with sessions.Session() as session:
> ---> 60 return session.request(method=method, url=url, **kwargs)
> 61
> 62
>
> /opt/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/sessions.pyc in request(self, meth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
> 531 }
> 532 send_kwargs.update(settings)
> --> 533 resp = self.send(prep, **send_kwargs)
> 534
> 535 return resp
>
> /opt/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/sessions.pyc in send(self, reques
> 644
> 645 # Send the request
> --> 646 r = adapter.send(request, **kwargs)
> 647
> 648 # Total elapsed time of the request (approximately)
>
> /opt/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/requests/adapters.pyc in send(self, reques
> 514 raise SSLError(e, request=request)
> 515
> --> 516 raise ConnectionError(e, request=request)
> 517
> 518 except ClosedPoolError as e:
>
> ConnectionError: HTTPConnectionPool(host='my.server.edu', port=39005): Max retries exceeded with url: /api (Causenection object at 0x7feb55985050>: Failed to establish a new connection: [Errno 111] Connection refused',))
If I run cryosparcm status
, I get the following:
> ----------------------------------------------------------------------------
> CryoSPARC System master node installed at
> /opt/cryosparc/cryosparc2_master
> Current cryoSPARC version: v2.11.0
> ----------------------------------------------------------------------------
>
> cryosparcm process status:
>
> app STOPPED Not started
> app_dev STOPPED Not started
> command_core RUNNING pid 32752, uptime 0:25:44
> command_proxy RUNNING pid 32781, uptime 0:25:41
> command_rtp STOPPED Not started
> command_vis STARTING
> database RUNNING pid 32676, uptime 0:25:46
> watchdog_dev STOPPED Not started
> webapp RUNNING pid 32788, uptime 0:25:40
> webapp_dev STOPPED Not started
>
> ----------------------------------------------------------------------------
>
> global config variables:
>
> export CRYOSPARC_LICENSE_ID="xxxxxxxx"
> export CRYOSPARC_MASTER_HOSTNAME="my.server.edu"
> export CRYOSPARC_DB_PATH="/opt/cryosparc/cryosparc2_database"
> export CRYOSPARC_BASE_PORT=39000
> export CRYOSPARC_DEVELOP=false
> export CRYOSPARC_INSECURE=false
Any help would be appreciated. Thanks!