tilde-lab / aiida-crystal-dft

AiiDA plugin for the ab initio modeling suite CRYSTAL, developed in Turin University
MIT License
3 stars 4 forks source link

AiiDA's UNKNOWN_ERROR #67

Closed blokhin closed 1 year ago

blokhin commented 1 year ago
$ verdi process report 6953

2022-12-18 05:34:14 [1794 | REPORT]: [6953|BaseCrystalWorkChain|init_inputs]: CrH/194: Phonon frequencies: is_magnetic is set, guessing magnetism
2022-12-18 05:34:37 [1797 | REPORT]: [6953|BaseCrystalWorkChain|retrieve_results]: The calculations failed with exit message: Unknown error
2022-12-18 05:34:37 [1798 | REPORT]: [6953|BaseCrystalWorkChain|on_except]: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/aiida/common/extendeddicts.py", line 51, in __getattr__
    return self[attr]
KeyError: 'UNKNOWN_ERROR'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/plumpy/process_states.py", line 228, in execute
    result = self.run_fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/dist-packages/aiida/engine/processes/workchains/workchain.py", line 252, in _do_step
    finished, stepper_result = self._stepper.step()
  File "/usr/local/lib/python3.9/dist-packages/plumpy/workchains.py", line 295, in step
    finished, result = self._child_stepper.step()
  File "/usr/local/lib/python3.9/dist-packages/plumpy/workchains.py", line 246, in step
    return True, self._fn(self._workchain)
  File "/usr/local/lib/python3.9/dist-packages/aiida_crystal_dft/workflows/base.py", line 173, in retrieve_results
    return self.exit_codes.UNKNOWN_ERROR
  File "/usr/local/lib/python3.9/dist-packages/aiida/common/extendeddicts.py", line 54, in __getattr__
    raise AttributeError(errmsg)
AttributeError: 'ExitCodesNamespace' object has no attribute 'UNKNOWN_ERROR'
blokhin commented 1 year ago

@ansobolev do you have any idea? :flushed:

blokhin commented 1 year ago

Ah, I see, we just don't handle it here: https://github.com/tilde-lab/aiida-crystal-dft/blob/48479480b6e5de4df4127f62d9f07233260ba161/aiida_crystal_dft/calculations/common.py#L64-L83