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

fatbuildctld crash on StopIteration on unexpected end of task output #147

Closed
rezib opened this issue Sep 5, 2023 · 0 comments
Closed

fatbuildctld crash on StopIteration on unexpected end of task output #147

rezib opened this issue Sep 5, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rezib
Copy link
Contributor

rezib commented Sep 5, 2023

fatbuildrctl may crash on unexpected end of task output:

$ fatbuildrctl --uri https://build.rackslab.io/devs watch c5bddf58-9094-488d-905c-71f7ea2ebad8
…
▿▿▿▿▿▿▿ 〚 lintian static analysis 〛 ▿▿▿▿▿▿▿
su: warning: cannot change directory to /nonexistent: No such file or directory
E: slurm-web changes: bad-distribution-in-changes-file bookworm
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 294, in _console_generator
    msg = ConsoleMessage.read(**kwargs)
  File "/usr/lib/python3/dist-packages/fatbuildr/console/__init__.py", line 101, in read
    buffer = reader(struct.calcsize('HI'))
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 282, in reader
    buffer = next(iterator)
StopIteration

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

Traceback (most recent call last):
  File "/usr/bin/fatbuildrctl", line 33, in <module>
    sys.exit(load_entry_point('Fatbuildr==2.1.0.dev57', 'console_scripts', 'fatbuildrctl')())
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/__init__.py", line 34, in run
    cls()
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 437, in __init__
    args.func(args)
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1112, in _run_watch
    self._watch_task(task_id, interactive=False)
  File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrctl.py", line 1092, in _watch_task
    tty_console_renderer(self.connection.watch(task))
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 309, in tty_console_renderer
    for msg in console_generator:
  File "/usr/lib/python3/dist-packages/fatbuildr/console/client.py", line 285, in console_http_client
    yield from _console_generator(False, reader=reader)
RuntimeError: generator raised StopIteration
@rezib rezib added the bug Something isn't working label Sep 5, 2023
@rezib rezib added this to the v2.1.0 milestone Sep 5, 2023
@rezib rezib self-assigned this Sep 5, 2023
@rezib rezib closed this as completed in f597109 Mar 4, 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
Projects
None yet
Development

No branches or pull requests

1 participant