Update to v4.1.2 fail

Any idea of the error below?

Successfully updated master to version v4.1.2.
===================================================
 
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 "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 48, in configure_mongo
    initialize_replica_set()
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 87, in initialize_replica_set
    admin_db = try_get_pymongo_admin_db(mongo_client)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 249, in try_get_pymongo_admin_db
    admin_db.command(({'serverStatus': 1}))
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py", line 827, in command
    with self.__client._socket_for_reads(read_preference, session) as (sock_info, secondary_ok):
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1478, in _socket_for_reads
    server = self._select_server(read_preference, session)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1436, in _select_server
    server = topology.select_server(server_selector)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 250, in select_server
    return random.choice(self.select_servers(selector, server_selection_timeout, address))
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 211, in select_servers
    server_descriptions = self._select_servers_loop(selector, server_timeout, address)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 226, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:39007: [Errno 111] Connection refused, Timeout: 20.0s, Topology Description: <TopologyDescription id: 63d4270dc7973ea34e2e0105, topology_type: Single, servers: [<ServerDescription ('localhost', 39007) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:39007: [Errno 111] Connection refused')>]>
[2023-01-27T11:34:44-0800] Error configuring database. Most recent database log lines:
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] git version: d352e6a4764659e0d0350ce77279de3c1f243e5c
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] modules: none
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] build environment:
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten]     distarch: x86_64
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] options: { net: { port: 39007 }, replication: { oplogSizeMB: 64, replSet: "meteor" }, storage: { dbPath: "/home/groups/brunger/software/cryosparc/cryosparc_database", journal: { enabled: false } } }
2023-01-27T11:33:30.811-0800 I STORAGE  [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /home/groups/brunger/software/cryosparc/cryosparc_database directory, terminating
2023-01-27T11:33:30.811-0800 I CONTROL  [initandlisten] now exiting
2023-01-27T11:33:30.811-0800 I CONTROL  [initandlisten] shutting down with code:100

There may be orphaned CryoSPARC and database processes.
Under the Linux account that runs this CryoSPARC instance, you may try these commands.

Then re-try
cryosparcm start
If this does not work, please post the error message(s) here.

1 Like

Does this mean any job is running? How to kill the CS-related processes that is still running?

$ ps xww | grep -e cryosparc -e mongo
 7249 pts/0    S+     0:00 grep --color=auto -e cryosparc -e mongo

This indicates no CryoSPARC-related were found. Had their been any running processes, one could kill them like so:
kill 12345
where 12345 would correspond to the number in the first column of ps results.
ps xww only shows results for the current user. Was the search performed under the correct Linux account (that runs CryoSPARC processes)? To also display database processes for other accounts, you may run
ps axuww | grep mongo

No other running jobs or users. I’m the only one.

I restarted everything, cryosparcm start still doesn’t work

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 "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 48, in configure_mongo
    initialize_replica_set()
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 87, in initialize_replica_set
    admin_db = try_get_pymongo_admin_db(mongo_client)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/cryosparc_compute/database_management.py", line 249, in try_get_pymongo_admin_db
    admin_db.command(({'serverStatus': 1}))
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/database.py", line 827, in command
    with self.__client._socket_for_reads(read_preference, session) as (sock_info, secondary_ok):
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1478, in _socket_for_reads
    server = self._select_server(read_preference, session)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/mongo_client.py", line 1436, in _select_server
    server = topology.select_server(server_selector)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 250, in select_server
    return random.choice(self.select_servers(selector, server_selection_timeout, address))
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 211, in select_servers
    server_descriptions = self._select_servers_loop(selector, server_timeout, address)
  File "/home/groups/brunger/software/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/pymongo/topology.py", line 226, in _select_servers_loop
    raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:39007: [Errno 111] Connection refused, Timeout: 20.0s, Topology Description: <TopologyDescription id: 63d4694f5a1b6a7f2a2b5f44, topology_type: Single, servers: [<ServerDescription ('localhost', 39007) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:39007: [Errno 111] Connection refused')>]>
[2023-01-27T16:17:26-0800] Error configuring database. Most recent database log lines:
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] git version: d352e6a4764659e0d0350ce77279de3c1f243e5c
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] modules: none
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] build environment:
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten]     distarch: x86_64
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] options: { net: { port: 39007 }, replication: { oplogSizeMB: 64, replSet: "meteor" }, storage: { dbPath: "/home/groups/brunger/software/cryosparc/cryosparc_database", journal: { enabled: false } } }
2023-01-27T16:16:13.001-0800 I STORAGE  [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /home/groups/brunger/software/cryosparc/cryosparc_database directory, terminating
2023-01-27T16:16:13.001-0800 I CONTROL  [initandlisten] now exiting
2023-01-27T16:16:13.001-0800 I CONTROL  [initandlisten] shutting down with code:10

Are there any error messages in the database log:
cryosparcm log database
?

I had the same problem. We had started with an early version cryosparc 3, gone through several updates, updating to 4.1.1 broke everything. A clean install of 4.1.2 worked, but couldn’t load the database. The solution was to manually import each project to the new (empty) database.

Any idea?

$ cryosparcm log database

2023-01-27T10:14:56.327-0800 I REPL     [rsSync] conducting a dry run election to see if we could be elected. current term: 184
2023-01-27T10:14:56.327-0800 I REPL     [replexec-0] dry election run succeeded, running for election in term 185
2023-01-27T10:14:56.342-0800 I REPL     [replexec-0] election succeeded, assuming primary role in term 185
2023-01-27T10:14:56.342-0800 I REPL     [replexec-0] transition to PRIMARY from SECONDARY
2023-01-27T10:14:56.342-0800 I REPL     [replexec-0] Resetting sync source to empty, which was :27017
2023-01-27T10:14:56.342-0800 I REPL     [replexec-0] Entering primary catch-up mode.
2023-01-27T10:14:56.342-0800 I REPL     [replexec-0] Exited primary catch-up mode.
2023-01-27T10:14:58.329-0800 I REPL     [rsSync] transition to primary complete; database writes are now permitted
2023-01-27T10:19:56.568-0800 I COMMAND  [LogicalSessionCacheReap] command config.transactions command: find { find: "transactions", filter: { lastWriteDate: { $lt: new Date(1674841796325) } }, projection: { _id: 1 }, sort: { _id: 1 }, $db: "config" } planSummary: IXSCAN { _id: 1 } keysExamined:2 docsExamined:2 cursorExhausted:1 numYields:0 nreturned:2 reslen:387 locks:{ Global: { acquireCount: { r: 2 } }, Database: { acquireCount: { r: 1 } }, Collection: { acquireCount: { r: 1 } } } protocol:op_msg 242ms
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] MongoDB starting : pid=24752 port=39007 dbpath=/home/groups/brunger/software/cryosparc/cryosparc_database 64-bit host=sh02-04n16.int
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] db version v3.6.23
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] git version: d352e6a4764659e0d0350ce77279de3c1f243e5c
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] modules: none
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] build environment:
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten]     distarch: x86_64
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2023-01-27T11:33:30.807-0800 I CONTROL  [initandlisten] options: { net: { port: 39007 }, replication: { oplogSizeMB: 64, replSet: "meteor" }, storage: { dbPath: "/home/groups/brunger/software/cryosparc/cryosparc_database", journal: { enabled: false } } }
2023-01-27T11:33:30.811-0800 I STORAGE  [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /home/groups/brunger/software/cryosparc/cryosparc_database directory, terminating
2023-01-27T11:33:30.811-0800 I CONTROL  [initandlisten] now exiting
2023-01-27T11:33:30.811-0800 I CONTROL  [initandlisten] shutting down with code:100
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] MongoDB starting : pid=11685 port=39007 dbpath=/home/groups/brunger/software/cryosparc/cryosparc_database 64-bit host=sh02-04n16.int
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] db version v3.6.23
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] git version: d352e6a4764659e0d0350ce77279de3c1f243e5c
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] allocator: tcmalloc
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] modules: none
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] build environment:
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten]     distarch: x86_64
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten]     target_arch: x86_64
2023-01-27T16:16:12.984-0800 I CONTROL  [initandlisten] options: { net: { port: 39007 }, replication: { oplogSizeMB: 64, replSet: "meteor" }, storage: { dbPath: "/home/groups/brunger/software/cryosparc/cryosparc_database", journal: { enabled: false } } }
2023-01-27T16:16:13.001-0800 I STORAGE  [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the lock file: /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /home/groups/brunger/software/cryosparc/cryosparc_database directory, terminating
2023-01-27T16:16:13.001-0800 I CONTROL  [initandlisten] now exiting
2023-01-27T16:16:13.001-0800 I CONTROL  [initandlisten] shutting down with code:100
2023-01-28T00:19:59.784-0800 I STORAGE  [WT RecordStoreThread: local.oplog.rs] WiredTiger record store oplog truncation finished in: 0ms

Thanks for your hint. Can I know how you import each project to an empty database?

From “Attach Project” select the directory that contains the jobs for that project, then let it run for a minute or two as it sets everything up. The project will be renumbered to match the new database, ie; what is shown as P1 in my session was originally P24 in the old database. Internal job numbers, references, links are all maintained, so you can still call back to jobs run before importing the database.

I hope this works for you

:joy:my CS Gui can’t even open now. But thanks anyway, I feel like I might re-install the CS soon.

To get v4.1.2 to properly install I had to delete all files, clear out anything left in /temp,delete the SSD cache, restart the computer, and then install a clean download. You may want to do that as well if you’re going to reinstall. Good luck.

Is the

/home/groups/brunger/software/cryosparc/cryosparc_database

directory stored on a network filesystem and could there be a database process running on another using this directory?
What is the output of

ls -al /home/groups/brunger/software/cryosparc/cryosparc_database

?

The directory is on a computer cluster. I don’t see any other process is running using this directory.
Here is the ls -al output

total 20365560
drwxr-sr-x 3 ccw0820 brunger        7069 Jan 31 13:17 .
drwxr-sr-x 7 ccw0820 brunger         495 Jun  1  2022 ..
-rw-rw-r-- 1 ccw0820 brunger      106496 Jan 27 10:14 collection-0-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger    11104256 Jan 10 16:20 collection-0-4039306727538930133.wt
-rw------- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-0-4209365177483192506.wt
-rw------- 1 ccw0820 brunger       16384 Jan 27 10:14 collection-0-4607506287394546064.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 collection-0--94212111250710247.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 10 11:47 collection-0-996715459705957105.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-12-2550593298158042604.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 collection-12--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger 17568190464 Jan 10 23:22 collection-1-3096634536284929393.wt
-rw-rw-r-- 1 ccw0820 brunger      274432 Jan 12 12:22 collection-14-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 12 12:22 collection-16-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 12 17:57 collection-18-2550593298158042604.wt
-rw------- 1 ccw0820 brunger       36864 Jan 27 10:15 collection-20--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger       53248 Jan 12 12:22 collection-21-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-2-2550593298158042604.wt
-rw------- 1 ccw0820 brunger       36864 Jan 11 08:34 collection-2-4209365177483192506.wt
-rw------- 1 ccw0820 brunger       16384 Jan 27 10:14 collection-2-4607506287394546064.wt
-rw-rw-r-- 1 ccw0820 brunger    20811776 Jan 14 16:47 collection-26-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger   292302848 Jan 10 23:22 collection-35-2550593298158042604.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 collection-3--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger    10469376 Jan 10 23:22 collection-41-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger    71397376 Jan 31 13:17 collection-4-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger    37449728 Dec 30 16:31 collection-44-2550593298158042604.wt
-rw------- 1 ccw0820 brunger       32768 Jan 27 10:19 collection-4-4607506287394546064.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 collection-50-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       16384 Jan 27 10:14 collection-5-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 collection-55-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Jan 12 12:22 collection-58-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger      106496 Jan 12 12:25 collection-61-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 12 12:22 collection-63-2550593298158042604.wt
-rw------- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-6-4607506287394546064.wt
-rw------- 1 ccw0820 brunger        4096 Jan 12 12:22 collection-6--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 collection-72-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-7-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 collection-77-2550593298158042604.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 27 10:14 collection-9-2550593298158042604.wt
drwxrwsr-x 2 ccw0820 brunger        2477 Jan 31 13:17 diagnostic.data
-rw-r--r-- 1 ccw0820 brunger       32768 Jan 27 10:14 index-0--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       32768 Dec 27 17:40 index-0--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger     3293184 Dec 30 16:31 index-10--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-10--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger     1642496 Dec 30 16:31 index-11--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-11--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Oct  5 14:59 index-12--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Oct  3 17:00 index-1--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger    35057664 Jan 10 23:22 index-13--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 index-13--547222755524742657.wt
-rw------- 1 ccw0820 brunger       36864 Jan  2 15:00 index-1-4209365177483192506.wt
-rw-r--r-- 1 ccw0820 brunger     9506816 Jan 10 23:22 index-14--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-14--547222755524742657.wt
-rw------- 1 ccw0820 brunger       16384 Jan 27 10:14 index-1-4607506287394546064.wt
-rw-r--r-- 1 ccw0820 brunger     9588736 Jan 10 23:22 index-15--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       32768 Dec 27 17:42 index-1--547222755524742657.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-15--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger    24072192 Jan 10 23:22 index-16--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-16--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger    24100864 Jan 10 23:22 index-17--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-17--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-18--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 index-18--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jan 12 12:24 index-19--3203297181512801496.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 May 18  2022 index-1--94212111250710247.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-19--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan  1 00:31 index-1-996715459705957105.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-20--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-21--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       36864 Jan 27 10:15 index-21--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-22--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       12288 Jan 27 10:17 index-22--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 27 10:14 index-2--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-23--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger     1589248 Jan 10 23:22 index-24--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger     1744896 Jan 10 23:22 index-25--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       53248 Jan 10 23:14 index-2--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger     1593344 Jan 10 23:22 index-26--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger      512000 Jan 10 23:22 index-27--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger     3809280 Jan 10 23:22 index-28--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger      876544 Jan 10 16:11 index-29--3203297181512801496.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 May 18  2022 index-2--94212111250710247.wt
-rw-r--r-- 1 ccw0820 brunger     2547712 Jan 10 16:11 index-30--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger      442368 Jan 10 16:11 index-31--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       69632 Jan 10 23:14 index-32--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       16384 Jun  4  2021 index-3--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       53248 Jan 12 12:22 index-33--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       24576 Jan 10 11:47 index-3-4209365177483192506.wt
-rw-r--r-- 1 ccw0820 brunger       53248 Jan 10 23:14 index-34--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       16384 Jan 27 10:14 index-3-4607506287394546064.wt
-rw-r--r-- 1 ccw0820 brunger       45056 Jan 10 23:14 index-35--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       45056 Jan 12 12:22 index-36--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       53248 Jan 12 12:22 index-37--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       45056 Jan 12 12:22 index-38--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       61440 Jan 10 23:14 index-39--3203297181512801496.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 May 18  2022 index-3--94212111250710247.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-40--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-41--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       61440 Jan 12 12:24 index-42--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       16384 Jun  4  2021 index-4--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Dec 27 17:40 index-43--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       36864 Jan 27 10:15 index-4-4209365177483192506.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 12 12:22 index-44--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-45--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 index-4--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-46--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       16384 Jun  4  2021 index-47--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-48--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-49--3203297181512801496.wt
-rw-rw-r-- 1 ccw0820 brunger        4096 Oct  3 15:51 index-4--94212111250710247.wt
-rw-r--r-- 1 ccw0820 brunger       32768 Jan 10 11:47 index-50--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-51--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       32768 Aug 16 16:03 index-52--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 27 10:14 index-5--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 10 11:47 index-53--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Jan 12 12:35 index-5-4209365177483192506.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-54--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       20480 Jan 27 10:29 index-5-4607506287394546064.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jan 12 12:26 index-55--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 index-5--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 12 12:35 index-56--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jan 12 12:35 index-57--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-58--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger        4096 Jun  4  2021 index-59--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Dec 30 15:55 index-60--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 12 12:24 index-61--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 10 11:47 index-62--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       16384 Jun  4  2021 index-6--3203297181512801496.wt
-rw-r--r-- 1 ccw0820 brunger       36864 Jan 12 12:24 index-63--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-6-4209365177483192506.wt
-rw-r--r-- 1 ccw0820 brunger     4059136 Dec 30 16:31 index-7--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       16384 Oct  3 17:00 index-7-4607506287394546064.wt
-rw------- 1 ccw0820 brunger        4096 Oct  5 14:59 index-7--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger    52133888 Dec 30 16:31 index-8--3203297181512801496.wt
-rw------- 1 ccw0820 brunger       16384 Jan 27 10:14 index-8-4607506287394546064.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-8--547222755524742657.wt
-rw-r--r-- 1 ccw0820 brunger     1601536 Dec 30 16:31 index-9--3203297181512801496.wt
-rw------- 1 ccw0820 brunger        4096 Oct  3 17:01 index-9--547222755524742657.wt
-rw-rw-r-- 1 ccw0820 brunger       45056 Jan 27 10:14 _mdb_catalog.wt
-rw-r--r-- 1 ccw0820 brunger           6 Jan 27 10:14 mongod.lock
-rw-rw-r-- 1 ccw0820 brunger       36864 Jan 31 13:17 sizeStorer.wt
-rw-rw-r-- 1 ccw0820 brunger          95 Feb 24  2021 storage.bson
-rw-rw-r-- 1 ccw0820 brunger          49 Feb 24  2021 WiredTiger
-rw------- 1 ccw0820 brunger        4096 Jan 27 10:14 WiredTigerLAS.wt
-rw-rw-r-- 1 ccw0820 brunger          21 Feb 24  2021 WiredTiger.lock
-rw------- 1 ccw0820 brunger        1065 Jan 31 13:17 WiredTiger.turtle
-rw-rw-r-- 1 ccw0820 brunger      311296 Jan 31 13:17 WiredTiger.wt

Did you ensure this directory is not accessed by any other computers to which this directory is also exported? Finding out why

Unable to lock the lock file: /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock

occurs may enable an easy fix and reduce the chance of this same Unable to lock the lock file: problem recurring after one has gone through the effort of importing each project to a new database.

I’m sorry, I don’t quite understand. How to fix this “Unable to lock”?

Some old database process on this or another computer may be blocking the new database process from “locking” the mongod.lock file. The old database process needs to be identified.
What are the outputs of these commands:

fuser /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock
grep -v LICENSE_ID  /home/groups/brunger/software/cryosparc/cryosparc_master/config.sh

The replies are

/home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock:  4469
#export CRYOSPARC_MASTER_HOSTNAME="sh02-15n06.int"
export CRYOSPARC_MASTER_HOSTNAME="sh02-04n16.int"
#export CRYOSPARC_MASTER_HOSTNAME="sh03-16n07.int"
export CRYOSPARC_DB_PATH="/home/groups/brunger/software/cryosparc/cryosparc_database"
export CRYOSPARC_BASE_PORT=39006
export CRYOSPARC_DEVELOP=false
export CRYOSPARC_INSECURE=false
export CRYOSPARC_CLICK_WRAP=true
export CRYOSPARC_FORCE_HOSTNAME=true

What is the output of

ps axuww  | grep 4469

(assuming that the output of

fuser /home/groups/brunger/software/cryosparc/cryosparc_database/mongod.lock

has not changed)