Guest User

Untitled

a guest
Sep 8th, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 370, in send_raw
  3. with self._get_smtp_server(config, message['timeout'], local_hostname=local_hostname) as server:
  4. File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
  5. return next(self.gen)
  6. ^^^^^^^^^^^^^^
  7. File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 416, in _get_smtp_server
  8. with factory(
  9. ^^^^^^^^
  10. File "/usr/lib/python3.11/smtplib.py", line 255, in __init__
  11. (code, msg) = self.connect(host, port)
  12. ^^^^^^^^^^^^^^^^^^^^^^^^
  13. File "/usr/lib/python3.11/smtplib.py", line 341, in connect
  14. self.sock = self._get_socket(host, port, self.timeout)
  15. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  16. File "/usr/lib/python3.11/smtplib.py", line 312, in _get_socket
  17. return socket.create_connection((host, port), timeout,
  18. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19. File "/usr/lib/python3.11/socket.py", line 851, in create_connection
  20. raise exceptions[0]
  21. File "/usr/lib/python3.11/socket.py", line 836, in create_connection
  22. sock.connect(sa)
  23. OSError: [Errno 101] Network is unreachable
  24.  
  25. During handling of the above exception, another exception occurred:
  26.  
  27. Traceback (most recent call last):
  28. File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
  29. await self.future
  30. File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
  31. rv = await self.middleware.run_in_thread(self.method, *args)
  32. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  33. File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, in run_in_thread
  34. return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
  35. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  36. File "/usr/lib/python3/dist-packages/middlewared/main.py", line 624, in run_in_executor
  37. return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  38. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  39. File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
  40. result = self.fn(*self.args, **self.kwargs)
  41. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  42. File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 178, in nf
  43. return func(*args, **kwargs)
  44. ^^^^^^^^^^^^^^^^^^^^^
  45. File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 52, in nf
  46. res = f(*args, **kwargs)
  47. ^^^^^^^^^^^^^^^^^^
  48. File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 261, in send
  49. return self.send_raw(job, message, config)
  50. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  51. File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 178, in nf
  52. return func(*args, **kwargs)
  53. ^^^^^^^^^^^^^^^^^^^^^
  54. File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 395, in send_raw
  55. raise CallError(f'Failed to send email: {e}')
  56. middlewared.service_exception.CallError: [EFAULT] Failed to send email: [Errno 101] Network is unreachable
  57.  
Advertisement
Add Comment
Please, Sign In to add comment