Database: ERROR (spawn error)

HI,

I have this error when I try to restart cryosparc.

Starting cryoSPARC System master process..
CryoSPARC is not already running.
database: ERROR (spawn error)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py", line 1149, in database_names
    "listDatabases")["databases"]]
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/database.py", line 491, in command
    with client._socket_for_reads(read_preference) as (sock_info, slave_ok):
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py", line 859, in _socket_for_reads
    with self._get_socket(read_preference) as sock_info:
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/mongo_client.py", line 823, in _get_socket
    server = self._get_topology().select_server(selector)
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/topology.py", line 214, in select_server
    address))
  File "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/python2.7/site-packages/pymongo/topology.py", line 189, in select_servers
    self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: localhost:39001: [Errno 111] Connection refused

I have try to stop it and check with ps -ax | grep “supervisord” and there is no process.

This is the cryosparc status:

bash-4.2$ cryosparcm status
----------------------------------------------------------------------------
CryoSPARC System master node installed at
/home/binshtem/software/cryosparc/cryosparc2_master
Current cryoSPARC version: v2.12.4
----------------------------------------------------------------------------

cryosparcm is not running.

----------------------------------------------------------------------------

global config variables:

export CRYOSPARC_LICENSE_ID="xxxxxx"
export CRYOSPARC_MASTER_HOSTNAME="xxxxxxx"
export CRYOSPARC_DB_PATH="/home/xxxxxx/software/cryosparc/cryosparc2_database"
export CRYOSPARC_BASE_PORT=39000
export CRYOSPARC_DEVELOP=false
export CRYOSPARC_INSECURE=false

cryosparcm process status after restart with error:

app                              STOPPED   Not started
app_dev                          STOPPED   Not started
command_core                     STOPPED   Not started
command_proxy                    STOPPED   Not started
command_rtp                      STOPPED   Not started
command_vis                      STOPPED   Not started
database                         FATAL     Exited too quickly (process log may have details)
watchdog_dev                     STOPPED   Not started
webapp                           STOPPED   Not started
webapp_dev                       STOPPED   Not started 

this is the database log:

2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] MongoDB starting : pid=36141 port=39001 dbpath=/home/binshtem/software/cryosparc/cryosparc2_database 64-bit host=cryogpu2.csb.vanderbilt.edu
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] db version v3.4.10-4-g67ee356c6b
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] git version: 67ee356c6be377cda547d16423daef5beb4e8377
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2p  14 Aug 2018
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] allocator: tcmalloc
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] modules: none
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] build environment:
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten]     distarch: x86_64
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten]     target_arch: x86_64
2020-01-02T10:21:25.033-0600 I CONTROL  [initandlisten] options: { net: { port: 39001 }, replication: { oplogSizeMB: 64, replSet: "meteor" }, storage: { dbPath: "/home/binshtem/software/cryosparc/cryosparc2_database", journal: { enabled: false }, wiredTiger: { engineConfig: { cacheSizeGB: 4.0 } } } }
2020-01-02T10:21:25.036-0600 W -        [initandlisten] Detected unclean shutdown - /home/binshtem/software/cryosparc/cryosparc2_database/mongod.lock is not empty.
2020-01-02T10:21:25.072-0600 I -        [initandlisten] Detected data files in /home/binshtem/software/cryosparc/cryosparc2_database created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2020-01-02T10:21:25.072-0600 W STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
2020-01-02T10:21:25.073-0600 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=4096M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),,log=(enabled=false),
2020-01-02T10:21:25.087-0600 E STORAGE  [initandlisten] WiredTiger error (0) [1577982085:87787][36141:0x2ac87000be00], file:WiredTiger.wt, connection: WiredTiger.turtle: encountered an illegal file format or internal value
2020-01-02T10:21:25.087-0600 E STORAGE  [initandlisten] WiredTiger error (-31804) [1577982085:87825][36141:0x2ac87000be00], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic
2020-01-02T10:21:25.087-0600 I -        [initandlisten] Fatal Assertion 28558 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 361
2020-01-02T10:21:25.087-0600 I -        [initandlisten] 

***aborting after fassert() failure


2020-01-02T10:21:25.095-0600 F -        [initandlisten] Got signal: 6 (Aborted).

 0x55c81c8b5d6b 0x55c81c8b4fe6 0x55c81c8b54c3 0x2ac870f805e0 0x2ac8711c21f7 0x2ac8711c38e8 0x55c81bad4887 0x55c81c5ac597 0x55c81badee75 0x55c81badf08c 0x55c81badf2f5 0x55c81d2ac9d7 0x55c81d2ab1d9 0x55c81d260893 0x55c81d2eb974 0x55c81d2ebf1f 0x55c81d2ec1cc 0x55c81d26e8a9 0x55c81d2e1618 0x55c81d2aa8fe 0x55c81d2aa9eb 0x55c81d25ce6a 0x55c81c591685 0x55c81c5899ca 0x55c81c46f50a 0x55c81bae0bab 0x2ac8711aec05 0x55c81bb44cff
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"55C81B495000","o":"1420D6B","s":"_ZN5mongo15printStackTraceERSo"},{"b":"55C81B495000","o":"141FFE6"},{"b":"55C81B495000","o":"14204C3"},{"b":"2AC870F71000","o":"F5E0"},{"b":"2AC87118D000","o":"351F7","s":"gsignal"},{"b":"2AC87118D000","o":"368E8","s":"abort"},{"b":"55C81B495000","o":"63F887","s":"_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj"},{"b":"55C81B495000","o":"1117597"},{"b":"55C81B495000","o":"649E75","s":"__wt_eventv"},{"b":"55C81B495000","o":"64A08C","s":"__wt_err"},{"b":"55C81B495000","o":"64A2F5","s":"__wt_panic"},{"b":"55C81B495000","o":"1E179D7","s":"__wt_turtle_read"},{"b":"55C81B495000","o":"1E161D9","s":"__wt_metadata_search"},{"b":"55C81B495000","o":"1DCB893","s":"__wt_conn_btree_open"},{"b":"55C81B495000","o":"1E56974","s":"__wt_session_get_btree"},{"b":"55C81B495000","o":"1E56F1F","s":"__wt_session_get_btree"},{"b":"55C81B495000","o":"1E571CC","s":"__wt_session_get_btree_ckpt"},{"b":"55C81B495000","o":"1DD98A9","s":"__wt_curfile_open"},{"b":"55C81B495000","o":"1E4C618"},{"b":"55C81B495000","o":"1E158FE","s":"__wt_metadata_cursor_open"},{"b":"55C81B495000","o":"1E159EB","s":"__wt_metadata_cursor"},{"b":"55C81B495000","o":"1DC7E6A","s":"wiredtiger_open"},{"b":"55C81B495000","o":"10FC685","s":"_ZN5mongo18WiredTigerKVEngineC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb"},{"b":"55C81B495000","o":"10F49CA"},{"b":"55C81B495000","o":"FDA50A","s":"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{"b":"55C81B495000","o":"64BBAB","s":"main"},{"b":"2AC87118D000","o":"21C05","s":"__libc_start_main"},{"b":"55C81B495000","o":"6AFCFF"}],"processInfo":{ "mongodbVersion" : "3.4.10-4-g67ee356c6b", "gitVersion" : "67ee356c6be377cda547d16423daef5beb4e8377", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "3.10.0-957.27.2.el7.x86_64", "version" : "#1 SMP Mon Jul 29 17:46:05 UTC 2019", "machine" : "x86_64" }, "somap" : [ { "b" : "55C81B495000", "elfType" : 3, "buildId" : "A14732EAAA95508462633A5030B501E08B1B106F" }, { "b" : "7FFF486D6000", "elfType" : 3, "buildId" : "88212B24946DE81A7B05A4F4422F5A8B37CBD908" }, { "b" : "2AC86FE12000", "path" : "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/libpython2.7.so.1.0", "elfType" : 3 }, { "b" : "2AC870014000", "path" : "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/../lib/libssl.so.1.0.0", "elfType" : 3 }, { "b" : "2AC87028A000", "path" : "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/../lib/libcrypto.so.1.0.0", "elfType" : 3 }, { "b" : "2AC8706EF000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "6D322588B36D2617C03C0F3B93677E62FCFFDA81" }, { "b" : "2AC8708F7000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "1E42EBFB272D37B726F457D6FE3C33D2B094BB69" }, { "b" : "2AC870AFB000", "path" : "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/../lib/libstdc++.so.6", "elfType" : 3 }, { "b" : "2AC870C6F000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "808BD35686C193F218A5AAAC6194C49214CFF379" }, { "b" : "2AC86FFF5000", "path" : "/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/../lib/libgcc_s.so.1", "elfType" : 3 }, { "b" : "2AC870F71000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "A48D21B2578A8381FBD8857802EAA660504248DC" }, { "b" : "2AC87118D000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "95FF02A4BEBABC573C7827A66D447F7BABDDAA44" }, { "b" : "2AC871550000", "path" : "/lib64/libutil.so.1", "elfType" : 3, "buildId" : "C1CAEB92FAB92F5D9AFBA13867535EFD4BB55055" }, { "b" : "2AC86FDF0000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "22FA66DA7D14C88BF36C69454A357E5F1DEFAE4E" } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x3B) [0x55c81c8b5d6b]
 mongod(+0x141FFE6) [0x55c81c8b4fe6]
 mongod(+0x14204C3) [0x55c81c8b54c3]
 libpthread.so.0(+0xF5E0) [0x2ac870f805e0]
 libc.so.6(gsignal+0x37) [0x2ac8711c21f7]
 libc.so.6(abort+0x148) [0x2ac8711c38e8]
 mongod(_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj+0x0) [0x55c81bad4887]
 mongod(+0x1117597) [0x55c81c5ac597]
 mongod(__wt_eventv+0x3E4) [0x55c81badee75]
 mongod(__wt_err+0xA0) [0x55c81badf08c]
 mongod(__wt_panic+0x2F) [0x55c81badf2f5]
 mongod(__wt_turtle_read+0x227) [0x55c81d2ac9d7]
 mongod(__wt_metadata_search+0x99) [0x55c81d2ab1d9]
 mongod(__wt_conn_btree_open+0x73) [0x55c81d260893]
 mongod(__wt_session_get_btree+0xE4) [0x55c81d2eb974]
 mongod(__wt_session_get_btree+0x68F) [0x55c81d2ebf1f]
 mongod(__wt_session_get_btree_ckpt+0x14C) [0x55c81d2ec1cc]
 mongod(__wt_curfile_open+0x169) [0x55c81d26e8a9]
 mongod(+0x1E4C618) [0x55c81d2e1618]
 mongod(__wt_metadata_cursor_open+0x6E) [0x55c81d2aa8fe]
 mongod(__wt_metadata_cursor+0x4B) [0x55c81d2aa9eb]
 mongod(wiredtiger_open+0x183A) [0x55c81d25ce6a]
 mongod(_ZN5mongo18WiredTigerKVEngineC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb+0x815) [0x55c81c591685]
 mongod(+0x10F49CA) [0x55c81c5899ca]
 mongod(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x69A) [0x55c81c46f50a]
 mongod(main+0xE9B) [0x55c81bae0bab]
 libc.so.6(__libc_start_main+0xF5) [0x2ac8711aec05]
 mongod(+0x6AFCFF) [0x55c81bb44cff]
-----  END BACKTRACE  -----

Thanks

updata…

I have try to do “cryosparcm update --overrid” to see if it fix the problem the install was successful but on restart I still got database: ERROR (spawn error)
Then I try to rename the cryosparc2_database to cryosparc2_database.old
Now the restart IS successful but I can’t login and I don’t have all my db.

Hi @Elad,

Do you have any recent database backups?
This error is usually caused by a disk fault that causes corruption.

Can you try the following:

  1. make a complete copy of your cryosparc2_database.old directory as a backup and keep it safe
  2. stop all cryosparc processes and remove the new cryosparc2_database directory that you created that has an empty database (no users and no data)
  3. rename the cryosparc2_database.old directory back to cryosparc2_database
  4. cd into the cryosparc2_database directory that has all your original database files
  5. run the following bash commands
eval $(cryosparcm env)
mongod --dbpath ./ --repair

This should attempt to repair your database. If the process completes successfully you should be able to start cryosparc normally again.

Please let us know what happens.

By the way, as a plan B, you can always start a new cryosparc instance/database and then import your projects from your old instance using the import project functionality. This does not require your old database to be operational, but you do need all the intact project directories from the old instance.

Hi,
Thanks you for your reply.
I have done all the steps but when I run the commands on step 5 from within the cryosparc2_database directory I get this:

bash-4.2$ eval $(cryosparcm status)
bash: eval: --: invalid option
eval: usage: eval [arg …]

Sorry! that was a typo. Should be
eval $(cryosparcm env)

Thanks, So I have try the first option and it wasn’t successful :frowning:
this is the output:

bash-4.2$ eval $(cryosparcm env)
bash-4.2$ mongod --dbpath ./ --repair
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] MongoDB starting : pid=38942 port=27017 dbpath=./ 64-bit host=cryogpu2.csb.vanderbilt.edu
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] db version v3.4.10-4-g67ee356c6b
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] git version: 67ee356c6be377cda547d16423daef5beb4e8377
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2p 14 Aug 2018
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] allocator: tcmalloc
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] modules: none
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] build environment:
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] distarch: x86_64
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] target_arch: x86_64
2020-01-07T09:40:51.590-0600 I CONTROL [initandlisten] options: { repair: true, storage: { dbPath: “./” } }
2020-01-07T09:40:51.595-0600 W - [initandlisten] Detected unclean shutdown - ./mongod.lock is not empty.
2020-01-07T09:40:51.630-0600 I - [initandlisten] Detected data files in ./ created by the ‘wiredTiger’ storage engine, so setting the active storage engine to ‘wiredTiger’.
2020-01-07T09:40:51.631-0600 W STORAGE [initandlisten] Recovering data from the last clean checkpoint.
2020-01-07T09:40:51.632-0600 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=257430M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),log=(enabled=false),
2020-01-07T09:40:51.651-0600 E STORAGE [initandlisten] WiredTiger error (0) [1578411651:651363][38942:0x2b680d844e00], file:WiredTiger.wt, connection: WiredTiger.turtle: encountered an illegal file format or internal value
2020-01-07T09:40:51.651-0600 E STORAGE [initandlisten] WiredTiger error (-31804) [1578411651:651445][38942:0x2b680d844e00], file:WiredTiger.wt, connection: the process must exit and restart: WT_PANIC: WiredTiger library panic
2020-01-07T09:40:51.651-0600 I - [initandlisten] Fatal Assertion 28558 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 361
2020-01-07T09:40:51.651-0600 I - [initandlisten]

***aborting after fassert() failure

2020-01-07T09:40:51.660-0600 F - [initandlisten] Got signal: 6 (Aborted).

0x55cd815a6d6b 0x55cd815a5fe6 0x55cd815a64c3 0x2b680e7b95e0 0x2b680e9fb1f7 0x2b680e9fc8e8 0x55cd807c5887 0x55cd8129d597 0x55cd807cfe75 0x55cd807d008c 0x55cd807d02f5 0x55cd81f9d9d7 0x55cd81f9c1d9 0x55cd81f51893 0x55cd81fdc974 0x55cd81fdcf1f 0x55cd81fdd1cc 0x55cd81f5f8a9 0x55cd81fd2618 0x55cd81f9b8fe 0x55cd81f9b9eb 0x55cd81f4de6a 0x55cd81282685 0x55cd8127a9ca 0x55cd8116050a 0x55cd807d1bab 0x2b680e9e7c05 0x55cd80835cff
----- BEGIN BACKTRACE -----
{“backtrace”:[{“b”:“55CD80186000”,“o”:“1420D6B”,“s”:"_ZN5mongo15printStackTraceERSo"},{“b”:“55CD80186000”,“o”:“141FFE6”},{“b”:“55CD80186000”,“o”:“14204C3”},{“b”:“2B680E7AA000”,“o”:“F5E0”},{“b”:“2B680E9C6000”,“o”:“351F7”,“s”:“gsignal”},{“b”:“2B680E9C6000”,“o”:“368E8”,“s”:“abort”},{“b”:“55CD80186000”,“o”:“63F887”,“s”:"_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj"},{“b”:“55CD80186000”,“o”:“1117597”},{“b”:“55CD80186000”,“o”:“649E75”,“s”:"__wt_eventv"},{“b”:“55CD80186000”,“o”:“64A08C”,“s”:"__wt_err"},{“b”:“55CD80186000”,“o”:“64A2F5”,“s”:"__wt_panic"},{“b”:“55CD80186000”,“o”:“1E179D7”,“s”:"__wt_turtle_read"},{“b”:“55CD80186000”,“o”:“1E161D9”,“s”:"__wt_metadata_search"},{“b”:“55CD80186000”,“o”:“1DCB893”,“s”:"__wt_conn_btree_open"},{“b”:“55CD80186000”,“o”:“1E56974”,“s”:"__wt_session_get_btree"},{“b”:“55CD80186000”,“o”:“1E56F1F”,“s”:"__wt_session_get_btree"},{“b”:“55CD80186000”,“o”:“1E571CC”,“s”:"__wt_session_get_btree_ckpt"},{“b”:“55CD80186000”,“o”:“1DD98A9”,“s”:"__wt_curfile_open"},{“b”:“55CD80186000”,“o”:“1E4C618”},{“b”:“55CD80186000”,“o”:“1E158FE”,“s”:"__wt_metadata_cursor_open"},{“b”:“55CD80186000”,“o”:“1E159EB”,“s”:"__wt_metadata_cursor"},{“b”:“55CD80186000”,“o”:“1DC7E6A”,“s”:“wiredtiger_open”},{“b”:“55CD80186000”,“o”:“10FC685”,“s”:"_ZN5mongo18WiredTigerKVEngineC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb"},{“b”:“55CD80186000”,“o”:“10F49CA”},{“b”:“55CD80186000”,“o”:“FDA50A”,“s”:"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{“b”:“55CD80186000”,“o”:“64BBAB”,“s”:“main”},{“b”:“2B680E9C6000”,“o”:“21C05”,“s”:"__libc_start_main"},{“b”:“55CD80186000”,“o”:“6AFCFF”}],“processInfo”:{ “mongodbVersion” : “3.4.10-4-g67ee356c6b”, “gitVersion” : “67ee356c6be377cda547d16423daef5beb4e8377”, “compiledModules” : [], “uname” : { “sysname” : “Linux”, “release” : “3.10.0-957.27.2.el7.x86_64”, “version” : “#1 SMP Mon Jul 29 17:46:05 UTC 2019”, “machine” : “x86_64” }, “somap” : [ { “b” : “55CD80186000”, “elfType” : 3, “buildId” : “A14732EAAA95508462633A5030B501E08B1B106F” }, { “b” : “7FFC34CA6000”, “elfType” : 3, “buildId” : “88212B24946DE81A7B05A4F4422F5A8B37CBD908” }, { “b” : “2B680D64B000”, “path” : “/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/lib/libpython2.7.so.1.0”, “elfType” : 3 }, { “b” : “2B680D84D000”, “path” : “/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/…/lib/libssl.so.1.0.0”, “elfType” : 3 }, { “b” : “2B680DAC3000”, “path” : “/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/…/lib/libcrypto.so.1.0.0”, “elfType” : 3 }, { “b” : “2B680DF28000”, “path” : “/lib64/librt.so.1”, “elfType” : 3, “buildId” : “6D322588B36D2617C03C0F3B93677E62FCFFDA81” }, { “b” : “2B680E130000”, “path” : “/lib64/libdl.so.2”, “elfType” : 3, “buildId” : “1E42EBFB272D37B726F457D6FE3C33D2B094BB69” }, { “b” : “2B680E334000”, “path” : “/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/…/lib/libstdc++.so.6”, “elfType” : 3 }, { “b” : “2B680E4A8000”, “path” : “/lib64/libm.so.6”, “elfType” : 3, “buildId” : “808BD35686C193F218A5AAAC6194C49214CFF379” }, { “b” : “2B680D82E000”, “path” : “/home/binshtem/software/cryosparc/cryosparc2_master/deps/anaconda/bin/…/lib/libgcc_s.so.1”, “elfType” : 3 }, { “b” : “2B680E7AA000”, “path” : “/lib64/libpthread.so.0”, “elfType” : 3, “buildId” : “A48D21B2578A8381FBD8857802EAA660504248DC” }, { “b” : “2B680E9C6000”, “path” : “/lib64/libc.so.6”, “elfType” : 3, “buildId” : “95FF02A4BEBABC573C7827A66D447F7BABDDAA44” }, { “b” : “2B680ED89000”, “path” : “/lib64/libutil.so.1”, “elfType” : 3, “buildId” : “C1CAEB92FAB92F5D9AFBA13867535EFD4BB55055” }, { “b” : “2B680D629000”, “path” : “/lib64/ld-linux-x86-64.so.2”, “elfType” : 3, “buildId” : “22FA66DA7D14C88BF36C69454A357E5F1DEFAE4E” } ] }}
mongod(_ZN5mongo15printStackTraceERSo+0x3B) [0x55cd815a6d6b]
mongod(+0x141FFE6) [0x55cd815a5fe6]
mongod(+0x14204C3) [0x55cd815a64c3]
libpthread.so.0(+0xF5E0) [0x2b680e7b95e0]
libc.so.6(gsignal+0x37) [0x2b680e9fb1f7]
libc.so.6(abort+0x148) [0x2b680e9fc8e8]
mongod(_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj+0x0) [0x55cd807c5887]
mongod(+0x1117597) [0x55cd8129d597]
mongod(__wt_eventv+0x3E4) [0x55cd807cfe75]
mongod(__wt_err+0xA0) [0x55cd807d008c]
mongod(__wt_panic+0x2F) [0x55cd807d02f5]
mongod(__wt_turtle_read+0x227) [0x55cd81f9d9d7]
mongod(__wt_metadata_search+0x99) [0x55cd81f9c1d9]
mongod(__wt_conn_btree_open+0x73) [0x55cd81f51893]
mongod(__wt_session_get_btree+0xE4) [0x55cd81fdc974]
mongod(__wt_session_get_btree+0x68F) [0x55cd81fdcf1f]
mongod(__wt_session_get_btree_ckpt+0x14C) [0x55cd81fdd1cc]
mongod(__wt_curfile_open+0x169) [0x55cd81f5f8a9]
mongod(+0x1E4C618) [0x55cd81fd2618]
mongod(__wt_metadata_cursor_open+0x6E) [0x55cd81f9b8fe]
mongod(__wt_metadata_cursor+0x4B) [0x55cd81f9b9eb]
mongod(wiredtiger_open+0x183A) [0x55cd81f4de6a]
mongod(_ZN5mongo18WiredTigerKVEngineC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mbbbb+0x815) [0x55cd81282685]
mongod(+0x10F49CA) [0x55cd8127a9ca]
mongod(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x69A) [0x55cd8116050a]
mongod(main+0xE9B) [0x55cd807d1bab]
libc.so.6(__libc_start_main+0xF5) [0x2b680e9e7c05]
mongod(+0x6AFCFF) [0x55cd80835cff]
----- END BACKTRACE -----
Aborted (core dumped)
I’ll try the plan B.

Thanks,

In the end I went to plan B and re-install a new cryosparc and import the project and now all working.

Thanks for the help.

I ran into a similar problem, but ended up restoring a backup from a few weeks ago. The database is now missing a few jobs from one of my projects, but all of the job directories are still in tact. I tried importing the project but got the following error

Unable to import project: exported project directory /[…]/P9 is already being used by P9

If I try importing just the jobs it gives this error:

Import Job Error in P9: Job is not located inside project directory. Please move the job folder into /[…]/P9/imports

Any suggestions for how to restore this project?

Thanks

Hi @Ablakely,

First, I’d suggest making a copy of the project you want to re-import into cryoSPARC. Move this copy to a different location. Then, use that directory to import your project again. You shouldn’t see the error message about the project directory path being used by another project, and it should import as a new project at that point.

Restarting the workstation seems convenient for me to solve the problem

2 Likes

Agree, ran into the same error today when updated to 3.1.0 from 3.0.1. The error still exits after “chown -R username: username cryosparcm_database”. Surprisingly, the reboot solved the problem.

Hi Stephan,

I got a similar error but did nothing of updating, re-installing, just accidentally get this error this morning. I checked there were no other running CS jobs or accounts.
Below is my error when inputting cryosparcm start:

“Starting cryoSPARC System master process…
CryoSPARC is not already running.
database: ERROR (spawn error)”

Rebooting the system works every time for me.

I run into these errors a few times:

Earlier, every time, this got taken care of by following.

  1. ps -ax | grep cryosparc

  2. cryosparcm stop

  3. Again, run ps -ax | grep cryosparc if you get any processes running, then you can take two actions
    a) killall -u $(whoami) python on workstation or HPC, this should kill all processes; however, if you again find any processes running in the background after checking ps -ax | grep cryosparc, then try using step b)
    b) Shut down the workstation or request the HPC administrator to kill all your processes or request them to restart your login again.

  4. Once restart of master node executed, take the advised procedure in this thread as follows:

a) Take a backup of your cryosparc_database in another directory, then change the present cryosparc_database name as cryosparc_database.old/cryosparc_database_old.
b) restart your cryosparc instance using cryosparcm start; this will create a new cryosparc_database.
c) The new database may not be useful as this may not have any information about any users or data saved and analyzed earlier. Now delete new database and change the cryosparc_database.old/cryosparc_database_old as cryosparc_database. Make sure your backup database has the same memory. Before going further, make sure you have a backup of cryosparc_database.old/cryosparc_database_old in another directory.
d) Enter the cryosparc_database and run following two commands separately as follows
eval $(cryosparcm env)
mongod --dbpath ./ --repair

These steps may repair your database error and restore your database and previous up and running cryosparc instance completely.

I hope this may be useful. Thanks to the several related Threads and Developers. I could restore mine, and I am sure you may also be able to restore your cryosparc instance up and running!

1 Like

Thanks @rajssai. A few comments with those in mind who may encounter a similar issue in the future.

I’d discourage using killall -u $(whoami) in this context, as the command may terminate jobs unrelated to cryosparc and may not terminate relevant cryosparc processes, depending on how the computer and cryosparc are configured. Termination of relevant processes is discussed in another thread.

Only after ensuring that all relevant processes have in fact be terminated
(ps -eopid,cmd | grep 'cryosparc\|mongo' is your friend), check for and, if necessary, remove leftover /tmp/mongodb-*.sock and /tmp/cryosparc-supervisor-*.sock that belonged to the cryosparc process just terminated. Be careful, problems may arise if lock files belonging to an active cryosparc instance are removed.

After the relevant old processes and lock files are gone, try restarting your cryosparc instance using cryosparcm start or systemd, as appropriate given your cryosparc setup.

If the attempted cryosparc startup fails, you may need to repair the database as discussed on the forum. If you are unsure about the underlying cause of the failure, please ask for help on this forum.
[Edited 2022-03-23 to include ‘mongo’ in grep filter]

4 Likes

Dear @wtempel thanks for the reply.

I was referring for workstation and HPC when we could not able to stop our processes and this is where the command killall -u $(whoami) python comes handy as this kills all python based processes. I agrees that when you use killall -u $(whoami) this may kills all the processes apart from cryosparc as well.

Rest of your response I agrees completely. The above mentioned steps I have compiled from several " [Database: ERROR (spawn error)" troubleshooting requests and tested on my workstation as well as HPC. Hope this may help.

2 Likes

Hello,

I tried all the previous steps to repair the database, as pointed out by @rajssai in the previous post but after the last command

mongod --dbpath ./ --repair

I get this error:

$mongod --dbpath ./ --repair
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] MongoDB starting : pid=366148 port=27017 dbpath=./ 64-bit host=gates
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] db version v3.6.23
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] git version: d352e6a4764659e0d0350ce77279de3c1f243e5c
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] allocator: tcmalloc
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] modules: none
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] build environment:
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten]     distarch: x86_64
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten]     target_arch: x86_64
2023-03-27T16:10:35.448-0400 I CONTROL  [initandlisten] options: { repair: true, storage: { dbPath: "./" } }
2023-03-27T16:10:35.450-0400 I -        [initandlisten] Detected data files in ./ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2023-03-27T16:10:35.451-0400 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=128258M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),compatibility=(release="3.0",require_max="3.0"),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),,log=(enabled=false),
2023-03-27T16:10:35.642-0400 E STORAGE  [initandlisten] WiredTiger error (0) [1679947835:642158][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_block_read_off, 291: WiredTiger.wt: read checksum error for 32768B block at offset 28672: block header checksum of 2860100197 doesn't match expected checksum of 1288696480 Raw: [1679947835:642158][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_block_read_off, 291: WiredTiger.wt: read checksum error for 32768B block at offset 28672: block header checksum of 2860100197 doesn't match expected checksum of 1288696480
2023-03-27T16:10:35.642-0400 E STORAGE  [initandlisten] WiredTiger error (0) [1679947835:642294][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_bm_corrupt_dump, 144: {28672, 32768, 1288696480}: (chunk 1 of 32): 00 00 00 00




[…]





2023-03-27T16:10:35.646-0400 E STORAGE  [initandlisten] WiredTiger error (-31802) [1679947835:646602][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_block_read_off, 302: WiredTiger.wt: fatal read error: WT_ERROR: non-specific WiredTiger error Raw: [1679947835:646602][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_block_read_off, 302: WiredTiger.wt: fatal read error: WT_ERROR: non-specific WiredTiger error
2023-03-27T16:10:35.646-0400 E STORAGE  [initandlisten] WiredTiger error (-31804) [1679947835:646611][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_panic, 523: the process must exit and restart: WT_PANIC: WiredTiger library panic Raw: [1679947835:646611][366148:0x15555535ba40], file:WiredTiger.wt, WT_CURSOR.next: __wt_panic, 523: the process must exit and restart: WT_PANIC: WiredTiger library panic
2023-03-27T16:10:35.646-0400 F -        [initandlisten] Fatal Assertion 50853 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 420
2023-03-27T16:10:35.646-0400 F -        [initandlisten] \n\n***aborting after fassert() failure\n\n
2023-03-27T16:10:35.662-0400 F -        [initandlisten] Got signal: 6 (Aborted).

 0x5555577f9f21 0x5555577f9139 0x5555577f961d 0x1555541f2c20 0x155553e5237f 0x155553e3cdb5 0x555555edddec 0x555555fb8d76 0x55555602aad1 0x555555e7aa94 0x555555e7aeb4 0x5555560e13b5 0x5555560e14f5 0x555556055020 0x55555605baa2 0x55555607607d 0x5555560e684f 0x555556097d3c 0x555556043531 0x5555560439e0 0x555555fce1e7 0x555555fcaca3 0x555555f97cf6 0x555555f79aec 0x555556189fb6 0x555555f565b8 0x555555f5963c 0x555555edfbc9 0x155553e3e493 0x555555f41741
----- BEGIN BACKTRACE -----
{"backtrace":[{"b":"555555554000","o":"22A5F21","s":"_ZN5mongo15printStackTraceERSo"},{"b":"555555554000","o":"22A5139"},{"b":"555555554000","o":"22A561D"},{"b":"1555541E0000","o":"12C20"},{"b":"155553E1B000","o":"3737F","s":"gsignal"},{"b":"155553E1B000","o":"21DB5","s":"abort"},{"b":"555555554000","o":"989DEC","s":"_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj"},{"b":"555555554000","o":"A64D76"},{"b":"555555554000","o":"AD6AD1"},{"b":"555555554000","o":"926A94","s":"__wt_err_func"},{"b":"555555554000","o":"926EB4","s":"__wt_panic"},{"b":"555555554000","o":"B8D3B5","s":"__wt_block_read_off"},{"b":"555555554000","o":"B8D4F5","s":"__wt_bm_read"},{"b":"555555554000","o":"B01020","s":"__wt_bt_read"},{"b":"555555554000","o":"B07AA2","s":"__wt_page_in_func"},{"b":"555555554000","o":"B2207D"},{"b":"555555554000","o":"B9284F","s":"__wt_btcur_next"},{"b":"555555554000","o":"B43D3C"},{"b":"555555554000","o":"AEF531"},{"b":"555555554000","o":"AEF9E0","s":"__wt_txn_recover"},{"b":"555555554000","o":"A7A1E7","s":"__wt_connection_workers"},{"b":"555555554000","o":"A76CA3","s":"wiredtiger_open"},{"b":"555555554000","o":"A43CF6","s":"_ZN5mongo18WiredTigerKVEngineC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mmbbbb"},{"b":"555555554000","o":"A25AEC"},{"b":"555555554000","o":"C35FB6","s":"_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv"},{"b":"555555554000","o":"A025B8"},{"b":"555555554000","o":"A0563C","s":"_ZN5mongo11mongoDbMainEiPPcS1_"},{"b":"555555554000","o":"98BBC9","s":"main"},{"b":"155553E1B000","o":"23493","s":"__libc_start_main"},{"b":"555555554000","o":"9ED741"}],"processInfo":{ "mongodbVersion" : "3.6.23", "gitVersion" : "d352e6a4764659e0d0350ce77279de3c1f243e5c", "compiledModules" : [], "uname" : { "sysname" : "Linux", "release" : "4.18.0-348.20.1.el8_5.x86_64", "version" : "#1 SMP Thu Mar 10 20:59:28 UTC 2022", "machine" : "x86_64" }, "somap" : [ { "b" : "555555554000", "elfType" : 3, "buildId" : "B0818C001F2B63D4533D208F68F08AE2A599CA9E" }, { "b" : "155555551000", "path" : "linux-vdso.so.1", "elfType" : 3, "buildId" : "79A99C4AA671C212B088B7FD97EA601F9F14DB2C" }, { "b" : "155554FBD000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/libpython3.7m.so", "elfType" : 3 }, { "b" : "1555554C9000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/libtiff.so", "elfType" : 3 }, { "b" : "155554DA6000", "path" : "/lib64/libresolv.so.2", "elfType" : 3, "buildId" : "B190C46CD2CE82F2C1F030142D945ACAA1946F72" }, { "b" : "155554B9E000", "path" : "/lib64/librt.so.1", "elfType" : 3, "buildId" : "1EF3AA34E6B1403103E628348A87DB0494E64238" }, { "b" : "15555499A000", "path" : "/lib64/libdl.so.2", "elfType" : 3, "buildId" : "CA8FFB6C6EA5182E04EFDFCEF423B5DC46CACA45" }, { "b" : "155554618000", "path" : "/lib64/libm.so.6", "elfType" : 3, "buildId" : "2EFC23C053DB1F618F9F41AB7095CE2BB07291D8" }, { "b" : "155554400000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/cryosparc_compute/libs/libgcc_s.so.1", "elfType" : 3 }, { "b" : "1555541E0000", "path" : "/lib64/libpthread.so.0", "elfType" : 3, "buildId" : "8055DF0C5CFC153731FF4D55684B251DD02295AA" }, { "b" : "155553E1B000", "path" : "/lib64/libc.so.6", "elfType" : 3, "buildId" : "7EBD6A6492C96641505669F2E8AFA63E05A9128F" }, { "b" : "155555327000", "path" : "/lib64/ld-linux-x86-64.so.2", "elfType" : 3, "buildId" : "FAD80EB2E3150AB220BED355EB108B870DA792EF" }, { "b" : "155553C17000", "path" : "/lib64/libutil.so.1", "elfType" : 3, "buildId" : "33C2CC1C336B65F6BD655F2250D3A4E68B8791C7" }, { "b" : "15555542B000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/./libwebp.so.7", "elfType" : 3 }, { "b" : "155555360000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/./libzstd.so.1", "elfType" : 3 }, { "b" : "155553BEE000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/./liblzma.so.5", "elfType" : 3 }, { "b" : "155553BB0000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/./libjpeg.so.9", "elfType" : 3 }, { "b" : "155553B96000", "path" : "/cm/shared/apps/cryosparc/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/./libz.so.1", "elfType" : 3 } ] }}
 mongod(_ZN5mongo15printStackTraceERSo+0x41) [0x5555577f9f21]
 mongod(+0x22A5139) [0x5555577f9139]
 mongod(+0x22A561D) [0x5555577f961d]
 libpthread.so.0(+0x12C20) [0x1555541f2c20]
 libc.so.6(gsignal+0x10F) [0x155553e5237f]
 libc.so.6(abort+0x127) [0x155553e3cdb5]
 mongod(_ZN5mongo32fassertFailedNoTraceWithLocationEiPKcj+0x0) [0x555555edddec]
 mongod(+0xA64D76) [0x555555fb8d76]
 mongod(+0xAD6AD1) [0x55555602aad1]
 mongod(__wt_err_func+0x90) [0x555555e7aa94]
 mongod(__wt_panic+0x3F) [0x555555e7aeb4]
 mongod(__wt_block_read_off+0x585) [0x5555560e13b5]
 mongod(__wt_bm_read+0x135) [0x5555560e14f5]
 mongod(__wt_bt_read+0x210) [0x555556055020]
 mongod(__wt_page_in_func+0x1A72) [0x55555605baa2]
 mongod(+0xB2207D) [0x55555607607d]
 mongod(__wt_btcur_next+0x69F) [0x5555560e684f]
 mongod(+0xB43D3C) [0x555556097d3c]
 mongod(+0xAEF531) [0x555556043531]
 mongod(__wt_txn_recover+0x450) [0x5555560439e0]
 mongod(__wt_connection_workers+0x37) [0x555555fce1e7]
 mongod(wiredtiger_open+0x1BD3) [0x555555fcaca3]
 mongod(_ZN5mongo18WiredTigerKVEngineC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PNS_11ClockSourceES8_mmbbbb+0x8D6) [0x555555f97cf6]
 mongod(+0xA25AEC) [0x555555f79aec]
 mongod(_ZN5mongo20ServiceContextMongoD29initializeGlobalStorageEngineEv+0x266) [0x555556189fb6]
 mongod(+0xA025B8) [0x555555f565b8]
 mongod(_ZN5mongo11mongoDbMainEiPPcS1_+0x26C) [0x555555f5963c]
 mongod(main+0x9) [0x555555edfbc9]
 libc.so.6(__libc_start_main+0xF3) [0x155553e3e493]
 mongod(+0x9ED741) [0x555555f41741]
-----  END BACKTRACE  -----
Aborted (core dumped)

I would really appreciate any help with this.

Thanks,
Gab

Welcome to the forum @gabcerutti.
I think these are your options:

1 Like

Thank you @wtempel, fortunately we had a recent database backup that we were able to restore.

1 Like