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

Fix Unhandled Error involving the shutdown command #110

Open
seisatsu opened this issue Oct 10, 2022 · 3 comments
Open

Fix Unhandled Error involving the shutdown command #110

seisatsu opened this issue Oct 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@seisatsu
Copy link
Owner

This sometimes happens:

Traceback (most recent call last):
  File "/var/www/dennismud.xyz/Dennis/server.py", line 352, in <module>
    sys.exit(main())
  File "/var/www/dennismud.xyz/Dennis/server.py", line 335, in main
    reactor.run()
  File "/usr/local/lib/python3.9/dist-packages/twisted/internet/base.py", line 1315, in run
    self.mainLoop()
  File "/usr/local/lib/python3.9/dist-packages/twisted/internet/base.py", line 1325, in mainLoop
    reactorBaseSelf.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/local/lib/python3.9/dist-packages/twisted/internet/base.py", line 991, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/local/lib/python3.9/dist-packages/txaio/_common.py", line 136, in _notify_bucket
    notify_one_chunk(calls, self._chunk_size, max(0.0, delay_ms))
  File "/usr/local/lib/python3.9/dist-packages/txaio/_common.py", line 130, in notify_one_chunk
    raise RuntimeError(msg)
builtins.RuntimeError: Error(s) processing call_later bucket:
'NoneType' object has no attribute 'shutdown'```
@seisatsu seisatsu added the bug Something isn't working label Oct 10, 2022
@seisatsu
Copy link
Owner Author

This appears to always start with a connection failure:
2022-12-21T14:21:56.039998-6000 [websocket#info] Client failed to connect: tcp4:172.58.36.26:41506

The traceback error in the first comment occurs when the "failed" client tries to send a command.

@seisatsu
Copy link
Owner Author

I shut down the server after seeing this error and tried to start it again, and found that the SSL cert is expired. This is the likely root cause of the connection failures. Something about connection failures is being mishandled.

@seisatsu
Copy link
Owner Author

Related to #115.

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