Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlecryoSPARC log with error
CryoSPARC is not already running.
If you would like to restart, use cryosparcm restart
Starting cryoSPARC System master process..
CryoSPARC is not already running.
database: ERROR (spawn error)

In such case you shouldshould check logs for errors

  • main log in  ~/.cryosparc/log/run/command_core.log

    Code Block
    titledatabase log
    less ~/.cryosparc/log/run/command_core.log 


  • supervisor log in  ~/.cryosparc/log/run/supervisord.log

    Code Block
    titledatabase log
    less ~/.cryosparc/log/run/supervisord.log 


  • database log in ~/.cryosparc/log/run/database.log

    check your database log in 

    Code Block
    titledatabase log
    less ~/.cryosparc/log/run/database.log 


  • if there is information that database is  "node is not in primary or recovering state" i.e. below


    Code Block
    titlecryoSPARC log with error
    AssertionError: {'code': 500, 'data': None, 'message': "OtherError: node is not in primary or recovering state, full error:
    {'ok': 0.0, 'errmsg': 'node is not in primary or recovering state', 'code': 13436, 'codeName': 'NotMasterOrSecondary'}

    then:

    • you have to move current cryoSPARC database


      Code Block
      titledatabase log
      mv ~/.cryosparc/cryosparc_database ~/.cryosparc/cryosparc_database-$(date+"%Y-%m-%d")


    • rerun  configuration of cryoSPARC to rebuild database

    • import projects that you want working with