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

progress indicator sometimes crashes #505

Open
samuelallan72 opened this issue Jul 19, 2024 · 0 comments
Open

progress indicator sometimes crashes #505

samuelallan72 opened this issue Jul 19, 2024 · 0 comments

Comments

@samuelallan72
Copy link
Contributor

Traceback (most recent call last):
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/cli.py", line 217, in entrypoint
    loop.run_until_complete(_run_command(args))
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/cli.py", line 203, in _run_command
    await run_upgrade(args)
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/cli.py", line 167, in run_upgrade
    upgrade_plan = await analyze_and_plan(args)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/cli.py", line 128, in analyze_and_plan
    progress_indicator.succeed()
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/halo/halo.py", line 532, in succeed
    return self.stop_and_persist(symbol=LogSymbols.SUCCESS.value, text=text)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/halo/halo.py", line 598, in stop_and_persist
    self.stop()
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/halo/halo.py", line 515, in stop
    self.clear()
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/halo/halo.py", line 393, in clear
    self._write("\r")
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/halo/halo.py", line 305, in _write
    self._stream.write(s)
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/colorama/ansitowin32.py", line 47, in write
    self.__convertor.write(text)
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/colorama/ansitowin32.py", line 179, in write
    self.wrapped.write(text)
BlockingIOError: [Errno 11] write could not complete without blocking

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/logging/__init__.py", line 1163, in emit
    stream.write(msg + self.terminator)
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/colorama/ansitowin32.py", line 47, in write
    self.__convertor.write(text)
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/lib/python3.12/site-packages/colorama/ansitowin32.py", line 179, in write
    self.wrapped.write(text)
BlockingIOError: [Errno 11] write could not complete without blocking
Call stack:
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/.venv/bin/cou", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/__main__.py", line 21, in main
    entrypoint()
  File "/home/ubuntu/proj/canonical/charmed-openstack-upgrader/cou/cli.py", line 250, in entrypoint
    logger.error("Unexpected error occurred.")
Message: 'Unexpected error occurred.'
Arguments: ()
2024-07-19 14:45:24 [ERROR] [Errno 11] write could not complete without blocking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant