Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 370, in send_raw
- with self._get_smtp_server(config, message['timeout'], local_hostname=local_hostname) as server:
- File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
- return next(self.gen)
- ^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 416, in _get_smtp_server
- with factory(
- ^^^^^^^^
- File "/usr/lib/python3.11/smtplib.py", line 255, in __init__
- (code, msg) = self.connect(host, port)
- ^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3.11/smtplib.py", line 341, in connect
- self.sock = self._get_socket(host, port, self.timeout)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3.11/smtplib.py", line 312, in _get_socket
- return socket.create_connection((host, port), timeout,
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3.11/socket.py", line 851, in create_connection
- raise exceptions[0]
- File "/usr/lib/python3.11/socket.py", line 836, in create_connection
- sock.connect(sa)
- OSError: [Errno 101] Network is unreachable
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3/dist-packages/middlewared/job.py", line 515, in run
- await self.future
- File "/usr/lib/python3/dist-packages/middlewared/job.py", line 562, in __run_body
- rv = await self.middleware.run_in_thread(self.method, *args)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/main.py", line 627, in run_in_thread
- return await self.run_in_executor(io_thread_pool_executor, method, *args, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/main.py", line 624, in run_in_executor
- return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
- result = self.fn(*self.args, **self.kwargs)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 178, in nf
- return func(*args, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 52, in nf
- res = f(*args, **kwargs)
- ^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 261, in send
- return self.send_raw(job, message, config)
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 178, in nf
- return func(*args, **kwargs)
- ^^^^^^^^^^^^^^^^^^^^^
- File "/usr/lib/python3/dist-packages/middlewared/plugins/mail.py", line 395, in send_raw
- raise CallError(f'Failed to send email: {e}')
- middlewared.service_exception.CallError: [EFAULT] Failed to send email: [Errno 101] Network is unreachable
Advertisement
Add Comment
Please, Sign In to add comment