Hello cryosparc Team,
Version used: 4.0.3
We face some issues during cryosparcm start in the last few versions on one of our machines.
The command checkdb
is executed, but the previous start database
ports did not start, yet.
For example:
$ cryosparcm start
Starting cryoSPARC System master process..
CryoSPARC is not already running.
configuring database
configuration complete
database: started
exception: connect failed
ERROR: Could not check database configuration - is the database running?
Start the database with the following command:
/opt/development/cryosparc_3.1/cryosparc_master/bin/cryosparcm restart
Then re-run checkdb
I could fix this issue by adding the same code used after start command_core
while ! python -m bin.minicurl http://$CRYOSPARC_MASTER_HOSTNAME:$CRYOSPARC_MONGO_PORT --auth; do
sleep 1
done
I added this to every start database
call in cryosparcm
in
- start)
- backup)
- restore)
- changeport)
Now additionally, we have a similar delay issue in cryosparcm start
$ cryosparcm start
Starting cryoSPARC System master process..
CryoSPARC is not already running.
configuring database
configuration complete
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/development/cryosparc_3.1/cryosparc_master/cryosparc_compute/database_management.py", line 68, in configure_mongo
mongod.wait(5)
File "/opt/development/cryosparc_3.1/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/subprocess.py", line 1019, in wait
return self._wait(timeout=timeout)
File "/opt/development/cryosparc_3.1/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.7/subprocess.py", line 1645, in _wait
raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command '['mongod', '--dbpath', '/home/stabrin/CRYOSPARC', '--port', '39001', '--oplogSize', '64', '--replSet', 'meteor', '--nojournal']' timed out after 5 seconds
Again, I was able to fix this by increasing the timeout from 5
to 60
seconds.
Would it be possible to include those changes into cryosparc core?
I needed to make those changes manually for the last versions, but it is painful ^^
Additionally, it breaks the cryosparcm update
procedure and does no longer update the worker automatically in a single-workstation setup.
Thank you for your help
Best,
Markus