Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-informative errors if yascheduler fails #63

Open
blokhin opened this issue Aug 21, 2022 · 5 comments
Open

Non-informative errors if yascheduler fails #63

blokhin opened this issue Aug 21, 2022 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@blokhin
Copy link
Member

blokhin commented Aug 21, 2022

The reason of below is that yasubmit scripts fails, but there is no clue for that in the traceback...

...
[172|MPDSStructureWorkChain|on_except]: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/aiida/orm/utils/managers.py", line 91, in _get_node_by_link_label
    node = attribute_dict[label]
KeyError: 'output_structure'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/aiida/orm/utils/managers.py", line 139, in __getattr__
    return self._get_node_by_link_label(label=name)
  File "/usr/local/lib/python3.9/dist-packages/aiida/orm/utils/managers.py", line 118, in _get_node_by_link_label
    raise NotExistent from exception
aiida.common.exceptions.NotExistent

The above exception was the direct cause of the following exception:

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 528, in step
    finished, result = self._child_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 428, in step
    finished, retval = self._child_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/mpds_aiida/workflows/crystal.py", line 279, in check_and_get_results
    self.ctx.optimized_structure = calc.outputs.output_structure
  File "/usr/local/lib/python3.9/dist-packages/aiida/orm/utils/managers.py", line 145, in __getattr__
    raise NotExistentAttributeError(
aiida.common.exceptions.NotExistentAttributeError: Node<178> does not have an output with link label 'output_structure'
@blokhin blokhin added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Aug 21, 2022
@ansobolev
Copy link
Member

What is the output of ‘yasubmit‘ when it fails?

@blokhin
Copy link
Member Author

blokhin commented Aug 22, 2022

@ansobolev unfortunately it’s not available to me, since it’s called by AiiDA (not sure, if it’s logged elsewhere)

@ansobolev
Copy link
Member

We can parse yasubmit output and see if it fails. But to do that we have to know what is the output of a failed script.

@blokhin
Copy link
Member Author

blokhin commented Sep 21, 2022

@ansobolev do you have any ideas on that?

@ansobolev
Copy link
Member

The problem is that if you run yasubmit manually, it works normally

@blokhin blokhin removed the help wanted Extra attention is needed label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Development

No branches or pull requests

2 participants