Hello, I tried to start my cryosparc using the command “cryosparcm start”, but I got an error that the system could not get database status (after 3 attempts) .It reported the problem was induced by pymongo.errors.OperationFailure: there are no users authenticated. could you give some advices to solve this problem.
[1901110494@sk1-cryoem cryosparc_master]$ cryosparcm restart
CryoSPARC is running.
Stopping cryoSPARC
Shut down
Starting cryoSPARC System master process..
CryoSPARC is not already running.
configuring database
Warning: Could not get database status (attempt 1/3)
Warning: Could not get database status (attempt 2/3)
Warning: Could not get database status (attempt 3/3)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/cryosparc_compute/database_management.py", line 48, in configure_mongo
initialize_replica_set()
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/cryosparc_compute/database_management.py", line 87, in initialize_replica_set
admin_db = try_get_pymongo_db(mongo_client)
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/cryosparc_compute/database_management.py", line 250, in try_get_pymongo_db
admin_db.command(({'serverStatus': 1}))
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py", line 828, in command
return self._command(
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py", line 703, in _command
return sock_info.command(
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/pool.py", line 740, in command
return command(
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/network.py", line 177, in command
helpers._check_command_response(
File "/gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/helpers.py", line 180, in _check_command_response
raise OperationFailure(errmsg, code, response, max_wire_version)
pymongo.errors.OperationFailure: there are no users authenticated, full error: {'operationTime': Timestamp(1705381056, 1), 'ok': 0.0, 'errmsg': 'there are no users authenticated', 'code': 13, 'codeName': 'Unauthorized', '$clusterTime': {'clusterTime': Timestamp(1705381056, 1), 'signature': {'hash': b'5M\xeb\xb6\xeeU\x9b5M\xd9\xfc\x11\x932\xfe6Y\xdc\xccJ', 'keyId': 7286404029024829442}}}
[2024-01-16T12:57:46+0800] Error configuring database. Most recent database log lines:
2024-01-16T12:57:33.353+0800 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_database/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /gpfs/share/home/1901110494/cryosparc_lastest/cryosparc_database directory, terminating
2024-01-16T12:57:33.354+0800 I CONTROL [initandlisten] now exiting
2024-01-16T12:57:33.354+0800 I CONTROL [initandlisten] shutting down with code:100
2024-01-16T12:57:36.336+0800 I NETWORK [listener] connection accepted from 127.0.0.1:45508 #967 (135 connections now open)
2024-01-16T12:57:36.336+0800 I NETWORK [conn967] received client metadata from 127.0.0.1:45508 conn967: { driver: { name: "PyMongo", version: "3.13.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-693.el7.x86_64" }, platform: "CPython 3.8.15.final.0" }
2024-01-16T12:57:36.337+0800 I NETWORK [listener] connection accepted from 127.0.0.1:45510 #968 (136 connections now open)
2024-01-16T12:57:36.338+0800 I NETWORK [conn968] received client metadata from 127.0.0.1:45510 conn968: { driver: { name: "PyMongo", version: "3.13.0" }, os: { type: "Linux", name: "Linux", architecture: "x86_64", version: "3.10.0-693.el7.x86_64" }, platform: "CPython 3.8.15.final.0" }
2024-01-16T12:57:46.351+0800 I ACCESS [conn968] Unauthorized: not authorized on admin to execute command { endSessions: [ { id: UUID("195147ae-f60a-42d8-9c43-c505bd4f3a43") } ], $clusterTime: { clusterTime: Timestamp(1705381056, 1), signature: { hash: BinData(0, 354DEBB6EE559B354DD9FC119332FE3659DCCC4A), keyId: 7286404029024829442 } }, $db: "admin", $readPreference: { mode: "primaryPreferred" } }
2024-01-16T12:57:46.351+0800 I NETWORK [conn968] end connection 127.0.0.1:45510 (135 connections now open)
2024-01-16T12:57:46.351+0800 I NETWORK [conn967] end connection 127.0.0.1:45508 (134 connections now open)