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

Error during shutdown #201

Closed
kroese opened this issue Mar 11, 2024 · 3 comments
Closed

Error during shutdown #201

kroese opened this issue Mar 11, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@kroese
Copy link

kroese commented Mar 11, 2024

Yet another error during shutdown using the latest master code:

Traceback (most recent call last):
  File "/usr/sbin/wsdd", line 1985, in main
    aio_loop.run_forever()                                           File "/usr/lib/python3.11/asyncio/base_events.py", line 608, in run_forever
    self._run_once()
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1936, in _run_once
    handle._run()
  File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/sbin/wsdd", line 1749, in sigterm_handler
    sys.exit(0)
SystemExit: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/sbin/wsdd", line 2001, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/sbin/wsdd", line 1991, in main
    nm.cleanup()
  File "/usr/sbin/wsdd", line 1568, in cleanup
    super().cleanup()
  File "/usr/sbin/wsdd", line 1397, in cleanup
    self.teardown()
  File "/usr/sbin/wsdd", line 1381, in teardown
    self.aio_loop.run_until_complete(asyncio.gather(*self.teardown_tasks))
  File "/usr/lib/python3.11/asyncio/base_events.py", line 633, in run_until_complete
    future = tasks.ensure_future(future, loop=self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/tasks.py", line 659, in ensure_future
    return _ensure_future(coro_or_future, loop=loop)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/tasks.py", line 665, in _ensure_future
    raise ValueError('The future belongs to a different loop than 'ValueError: The future belongs to a different loop than the one specified as the loop argument
@christgau
Copy link
Owner

Any hints to reproduce? Same as in #196?

@christgau christgau added the need more infos More information is required to proceed with this issue label Mar 11, 2024
@kroese
Copy link
Author

kroese commented Mar 11, 2024

Yes same pkill -f wsdd command.

The hint to reproduce may be that the network interface specified by --interface most likely did not exist / was not active.

But wsdd should refuse to start or otherwise exit gracefully in that situation, instead of crashing.

@christgau
Copy link
Owner

But wsdd should refuse to start [if interface does not exists or is not active]

No, it should not. Wsdd is able to handle to handle interface addition/removal and address changes (e.g. due to changed connections/network).

or otherwise exit gracefully in that situation

Yes. I agree.

@christgau christgau added bug Something isn't working and removed need more infos More information is required to proceed with this issue labels Mar 31, 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

2 participants