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

Unhandled exception #86

Open
jkotrady opened this issue Feb 8, 2025 · 0 comments
Open

Unhandled exception #86

jkotrady opened this issue Feb 8, 2025 · 0 comments

Comments

@jkotrady
Copy link

jkotrady commented Feb 8, 2025

Hello, getting unhandled excetions:

Unhandled Error
Traceback (most recent call last):
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/posixbase.py", line 486, in _doReadOrWrite
    why = selectable.doWrite()
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/base.py", line 1345, in doWrite
    raise RuntimeError("doWrite called on a %s" % reflect.qual(self.__class__))
builtins.RuntimeError: doWrite called on a twisted.internet.tcp.Port

Unhandled Error
Traceback (most recent call last):
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/posixbase.py", line 486, in _doReadOrWrite
    why = selectable.doWrite()
builtins.AttributeError: '_SIGCHLDWaker' object has no attribute 'doWrite'

when I tried to stop it, it mention:

Exception ignored when trying to write to the signal wakeup fd:
Traceback (most recent call last):
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/base.py", line 829, in sigTerm
    def sigTerm(self, number: int, frame: Optional[FrameType] = None) -> None:

OSError: [Errno 9] Bad file descriptor
Process Process-7:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/honeypots/ldap_server.py", line 96, in server_main
    reactor.run()
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/base.py", line 699, in run
    self._signals.uninstall()
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/_signals.py", line 196, in uninstall
    d.uninstall()
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/_signals.py", line 252, in uninstall
    self._removeInternalReader(self._childWaker)
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/base.py", line 692, in _removeInternalReader
    self.removeReader(reader)
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/epollreactor.py", line 178, in removeReader
    self._remove(
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/epollreactor.py", line 153, in _remove
    fd = xer.fileno()
         ^^^^^^^^^^^^
  File "/root/honeypot-service/venv/lib/python3.12/site-packages/twisted/internet/_signals.py", line 369, in <lambda>
    self.fileno = lambda: self.i
                          ^^^^^^
AttributeError: '_SIGCHLDWaker' object has no attribute 'i'

I guess, it is related to LDAP, after disabling, was working normally, but it is only guess.

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