Failed sending email from Django in production with mod_wsgi

46 views
Skip to first unread message

Jian Wu

unread,
Mar 20, 2021, 4:56:29 PMMar 20
to modwsgi
I have a Django project deployed in production using mod_wsgi. In development it was possible for user to fill out a form followed by submitting it to the backend. An email will then be generated and sent. When I tested it in development everything was fine and I received the email. However in production there is something wrong and when I inspect the error log I can't trace to the root cause of this error. My error logs is as below

[Sat Mar 20 12:03:22.861711 2021] [ssl:warn] [pid 60335:tid 140166867205184] AH01909: dimsum.dk:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.862505 2021] [ssl:warn] [pid 60335:tid 140166867205184] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.872164 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Mar 20 12:03:22.872658 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01909: dimsum.dk:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.873427 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.874386 2021] [mpm_event:notice] [pid 60337:tid 140166867205184] AH00489: Apache/2.4.41 (Ubuntu) mod_wsgi/4.7.1 Python/3.8 OpenSSL/1.1.1f configured -- resuming normal operations [Sat Mar 20 12:03:22.874411 2021] [core:notice] [pid 60337:tid 140166867205184] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /etc/wsgi-port-80/httpd.conf -D MOD_WSGI_VIRTUAL_HOST -D MOD_WSGI_REDIRECT_WWW -D MOD_WSGI_WITH_HTTPS -D MOD_WSGI_HTTPS_ONLY -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE' [Sat Mar 20 12:03:22.876860 2021] [wsgi:error] [pid 60338:tid 140166867205184] mod_wsgi (pid=60338): Unsupported locale setting en_US.UTF-8 specified for daemon process group localhost:80. Consider using 'C.UTF-8' as fallback setting. [Sat Mar 20 12:03:25.921917 2021] [wsgi:error] [pid 60338:tid 140166815540992] [remote 94.147.65.45:55853] Not Found: /None [Sat Mar 20 12:05:57.721263 2021] [wsgi:error] [pid 60338:tid 140166781970176] [remote 217.116.232.226:41268] Not Found: /wp-cron.php [Sat Mar 20 12:06:00.461375 2021] [wsgi:error] [pid 60338:tid 140166762936064] Exception in thread Thread-5: [Sat Mar 20 12:06:00.461451 2021] [wsgi:error] [pid 60338:tid 140166762936064] Traceback (most recent call last): [Sat Mar 20 12:06:00.461471 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:06:00.461991 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.run() [Sat Mar 20 12:06:00.462013 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:06:00.462299 2021] [wsgi:error] [pid 60338:tid 140166762936064] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:06:00.462314 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:06:00.462404 2021] [wsgi:error] [pid 60338:tid 140166762936064] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:06:00.462416 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:06:00.462594 2021] [wsgi:error] [pid 60338:tid 140166762936064] (code, msg) = self.connect(host, port) [Sat Mar 20 12:06:00.462619 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:06:00.462865 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:06:00.462880 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:06:00.463031 2021] [wsgi:error] [pid 60338:tid 140166762936064] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:06:00.463044 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:06:00.463332 2021] [wsgi:error] [pid 60338:tid 140166762936064] raise err [Sat Mar 20 12:06:00.463344 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:06:00.463614 2021] [wsgi:error] [pid 60338:tid 140166762936064] sock.connect(sa) [Sat Mar 20 12:06:00.463662 2021] [wsgi:error] [pid 60338:tid 140166762936064] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:06:00.464376 2021] [wsgi:error] [pid 60338:tid 140166771328768] Exception in thread Thread-4: [Sat Mar 20 12:06:00.464398 2021] [wsgi:error] [pid 60338:tid 140166771328768] Traceback (most recent call last): [Sat Mar 20 12:06:00.464407 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:06:00.464778 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.run() [Sat Mar 20 12:06:00.464801 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:06:00.465125 2021] [wsgi:error] [pid 60338:tid 140166771328768] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:06:00.465139 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:06:00.465237 2021] [wsgi:error] [pid 60338:tid 140166771328768] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:06:00.465254 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:06:00.465435 2021] [wsgi:error] [pid 60338:tid 140166771328768] (code, msg) = self.connect(host, port) [Sat Mar 20 12:06:00.465449 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:06:00.465601 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:06:00.465613 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:06:00.465798 2021] [wsgi:error] [pid 60338:tid 140166771328768] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:06:00.465814 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:06:00.466098 2021] [wsgi:error] [pid 60338:tid 140166771328768] raise err [Sat Mar 20 12:06:00.466109 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:06:00.466376 2021] [wsgi:error] [pid 60338:tid 140166771328768] sock.connect(sa) [Sat Mar 20 12:06:00.466399 2021] [wsgi:error] [pid 60338:tid 140166771328768] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:06:50.573258 2021] [authz_core:error] [pid 60339:tid 140166851704576] [client 162.158.88.227:50644] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-content [Sat Mar 20 12:08:44.669634 2021] [authz_core:error] [pid 60360:tid 140166853568256] [client 66.249.69.42:61821] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/cgi-bin [Sat Mar 20 12:08:46.349402 2021] [wsgi:error] [pid 60338:tid 140166762936064] Exception in thread Thread-7: [Sat Mar 20 12:08:46.349466 2021] [wsgi:error] [pid 60338:tid 140166762936064] Traceback (most recent call last): [Sat Mar 20 12:08:46.349504 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:08:46.349948 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.run() [Sat Mar 20 12:08:46.349962 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:08:46.350230 2021] [wsgi:error] [pid 60338:tid 140166762936064] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:08:46.350242 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:08:46.350326 2021] [wsgi:error] [pid 60338:tid 140166762936064] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:08:46.350338 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:08:46.350474 2021] [wsgi:error] [pid 60338:tid 140166762936064] (code, msg) = self.connect(host, port) [Sat Mar 20 12:08:46.350485 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:08:46.350635 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:08:46.350657 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:08:46.350805 2021] [wsgi:error] [pid 60338:tid 140166762936064] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:08:46.350817 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:08:46.351130 2021] [wsgi:error] [pid 60338:tid 140166762936064] raise err [Sat Mar 20 12:08:46.351142 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:08:46.351415 2021] [wsgi:error] [pid 60338:tid 140166762936064] sock.connect(sa) [Sat Mar 20 12:08:46.351441 2021] [wsgi:error] [pid 60338:tid 140166762936064] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:08:46.351763 2021] [wsgi:error] [pid 60338:tid 140166771328768] Exception in thread Thread-6: [Sat Mar 20 12:08:46.351780 2021] [wsgi:error] [pid 60338:tid 140166771328768] Traceback (most recent call last): [Sat Mar 20 12:08:46.351789 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:08:46.352097 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.run() [Sat Mar 20 12:08:46.352110 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:08:46.352372 2021] [wsgi:error] [pid 60338:tid 140166771328768] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:08:46.352383 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:08:46.352461 2021] [wsgi:error] [pid 60338:tid 140166771328768] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:08:46.352471 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:08:46.352602 2021] [wsgi:error] [pid 60338:tid 140166771328768] (code, msg) = self.connect(host, port) [Sat Mar 20 12:08:46.352613 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:08:46.352761 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:08:46.352772 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:08:46.352977 2021] [wsgi:error] [pid 60338:tid 140166771328768] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:08:46.352991 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:08:46.353275 2021] [wsgi:error] [pid 60338:tid 140166771328768] raise err [Sat Mar 20 12:08:46.353286 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:08:46.353564 2021] [wsgi:error] [pid 60338:tid 140166771328768] sock.connect(sa) [Sat Mar 20 12:08:46.353585 2021] [wsgi:error] [pid 60338:tid 140166771328768] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:09:46.791958 2021] [authz_core:error] [pid 60360:tid 140166853302016] [client 203.183.42.106:47210] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-login.php [Sat Mar 20 12:09:47.594817 2021] [authz_core:error] [pid 60339:tid 140166852237056] [client 159.203.82.176:56366] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-login.php [Sat Mar 20 12:10:05.577965 2021] [wsgi:error] [pid 60338:tid 140166781970176] [remote 91.134.201.164:36460] Not Found: /wp-login.php [Sat Mar 20 12:10:41.763227 2021] [wsgi:error] [pid 60338:tid 140166815540992] [remote 67.23.100.84:19350] Not Found: /wp-login.php

Graham Dumpleton

unread,
Mar 20, 2021, 5:04:07 PMMar 20
to mod...@googlegroups.com
The error says:

TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:06:50.573258 2021] [authz_core:error] [pid 60339:tid 140166851704576] [client 162.158.88.227:50644] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-content

This implies that your production machine doesn't have the appropriate network access to the email server it is trying to use to send email.

Graham

On 21 Mar 2021, at 2:54 am, Jian Wu <jian...@gmail.com> wrote:

I have a Django project deployed in production using mod_wsgi. In development it was possible for user to fill out a form followed by submitting it to the backend. An email will then be generated and sent. When I tested it in development everything was fine and I received the email. However in production there is something wrong and when I inspect the error log I can't trace to the root cause of this error. My error logs is as below

[Sat Mar 20 12:03:22.861711 2021] [ssl:warn] [pid 60335:tid 140166867205184] AH01909: dimsum.dk:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.862505 2021] [ssl:warn] [pid 60335:tid 140166867205184] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.872164 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Mar 20 12:03:22.872658 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01909: dimsum.dk:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.873427 2021] [ssl:warn] [pid 60337:tid 140166867205184] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name [Sat Mar 20 12:03:22.874386 2021] [mpm_event:notice] [pid 60337:tid 140166867205184] AH00489: Apache/2.4.41 (Ubuntu) mod_wsgi/4.7.1 Python/3.8 OpenSSL/1.1.1f configured -- resuming normal operations [Sat Mar 20 12:03:22.874411 2021] [core:notice] [pid 60337:tid 140166867205184] AH00094: Command line: 'apache2 (mod_wsgi-express) -f /etc/wsgi-port-80/httpd.conf -D MOD_WSGI_VIRTUAL_HOST -D MOD_WSGI_REDIRECT_WWW -D MOD_WSGI_WITH_HTTPS -D MOD_WSGI_HTTPS_ONLY -D MOD_WSGI_MPM_ENABLE_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_EVENT_MODULE -D MOD_WSGI_MPM_EXISTS_WORKER_MODULE -D MOD_WSGI_MPM_EXISTS_PREFORK_MODULE' [Sat Mar 20 12:03:22.876860 2021] [wsgi:error] [pid 60338:tid 140166867205184] mod_wsgi (pid=60338): Unsupported locale setting en_US.UTF-8 specified for daemon process group localhost:80. Consider using 'C.UTF-8' as fallback setting. [Sat Mar 20 12:03:25.921917 2021] [wsgi:error] [pid 60338:tid 140166815540992] [remote 94.147.65.45:55853] Not Found: /None [Sat Mar 20 12:05:57.721263 2021] [wsgi:error] [pid 60338:tid 140166781970176] [remote 217.116.232.226:41268] Not Found: /wp-cron.php [Sat Mar 20 12:06:00.461375 2021] [wsgi:error] [pid 60338:tid 140166762936064] Exception in thread Thread-5: [Sat Mar 20 12:06:00.461451 2021] [wsgi:error] [pid 60338:tid 140166762936064] Traceback (most recent call last): [Sat Mar 20 12:06:00.461471 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:06:00.461991 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.run() [Sat Mar 20 12:06:00.462013 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:06:00.462299 2021] [wsgi:error] [pid 60338:tid 140166762936064] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:06:00.462314 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:06:00.462404 2021] [wsgi:error] [pid 60338:tid 140166762936064] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:06:00.462416 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:06:00.462594 2021] [wsgi:error] [pid 60338:tid 140166762936064] (code, msg) = self.connect(host, port) [Sat Mar 20 12:06:00.462619 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:06:00.462865 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:06:00.462880 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:06:00.463031 2021] [wsgi:error] [pid 60338:tid 140166762936064] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:06:00.463044 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:06:00.463332 2021] [wsgi:error] [pid 60338:tid 140166762936064] raise err [Sat Mar 20 12:06:00.463344 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:06:00.463614 2021] [wsgi:error] [pid 60338:tid 140166762936064] sock.connect(sa) [Sat Mar 20 12:06:00.463662 2021] [wsgi:error] [pid 60338:tid 140166762936064] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:06:00.464376 2021] [wsgi:error] [pid 60338:tid 140166771328768] Exception in thread Thread-4: [Sat Mar 20 12:06:00.464398 2021] [wsgi:error] [pid 60338:tid 140166771328768] Traceback (most recent call last): [Sat Mar 20 12:06:00.464407 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:06:00.464778 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.run() [Sat Mar 20 12:06:00.464801 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:06:00.465125 2021] [wsgi:error] [pid 60338:tid 140166771328768] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:06:00.465139 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:06:00.465237 2021] [wsgi:error] [pid 60338:tid 140166771328768] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:06:00.465254 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:06:00.465435 2021] [wsgi:error] [pid 60338:tid 140166771328768] (code, msg) = self.connect(host, port) [Sat Mar 20 12:06:00.465449 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:06:00.465601 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:06:00.465613 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:06:00.465798 2021] [wsgi:error] [pid 60338:tid 140166771328768] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:06:00.465814 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:06:00.466098 2021] [wsgi:error] [pid 60338:tid 140166771328768] raise err [Sat Mar 20 12:06:00.466109 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:06:00.466376 2021] [wsgi:error] [pid 60338:tid 140166771328768] sock.connect(sa) [Sat Mar 20 12:06:00.466399 2021] [wsgi:error] [pid 60338:tid 140166771328768] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:06:50.573258 2021] [authz_core:error] [pid 60339:tid 140166851704576] [client 162.158.88.227:50644] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-content [Sat Mar 20 12:08:44.669634 2021] [authz_core:error] [pid 60360:tid 140166853568256] [client 66.249.69.42:61821] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/cgi-bin [Sat Mar 20 12:08:46.349402 2021] [wsgi:error] [pid 60338:tid 140166762936064] Exception in thread Thread-7: [Sat Mar 20 12:08:46.349466 2021] [wsgi:error] [pid 60338:tid 140166762936064] Traceback (most recent call last): [Sat Mar 20 12:08:46.349504 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:08:46.349948 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.run() [Sat Mar 20 12:08:46.349962 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:08:46.350230 2021] [wsgi:error] [pid 60338:tid 140166762936064] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:08:46.350242 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:08:46.350326 2021] [wsgi:error] [pid 60338:tid 140166762936064] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:08:46.350338 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:08:46.350474 2021] [wsgi:error] [pid 60338:tid 140166762936064] (code, msg) = self.connect(host, port) [Sat Mar 20 12:08:46.350485 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:08:46.350635 2021] [wsgi:error] [pid 60338:tid 140166762936064] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:08:46.350657 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:08:46.350805 2021] [wsgi:error] [pid 60338:tid 140166762936064] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:08:46.350817 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:08:46.351130 2021] [wsgi:error] [pid 60338:tid 140166762936064] raise err [Sat Mar 20 12:08:46.351142 2021] [wsgi:error] [pid 60338:tid 140166762936064] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:08:46.351415 2021] [wsgi:error] [pid 60338:tid 140166762936064] sock.connect(sa) [Sat Mar 20 12:08:46.351441 2021] [wsgi:error] [pid 60338:tid 140166762936064] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:08:46.351763 2021] [wsgi:error] [pid 60338:tid 140166771328768] Exception in thread Thread-6: [Sat Mar 20 12:08:46.351780 2021] [wsgi:error] [pid 60338:tid 140166771328768] Traceback (most recent call last): [Sat Mar 20 12:08:46.351789 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner [Sat Mar 20 12:08:46.352097 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.run() [Sat Mar 20 12:08:46.352110 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/threading.py", line 870, in run [Sat Mar 20 12:08:46.352372 2021] [wsgi:error] [pid 60338:tid 140166771328768] self._target(*self._args, **self._kwargs) [Sat Mar 20 12:08:46.352383 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/home/jianwu/HD_website/website/website/Modules/emailMessage.py", line 71, in sendEmailNow_Thread [Sat Mar 20 12:08:46.352461 2021] [wsgi:error] [pid 60338:tid 140166771328768] smtpObj = smtplib.SMTP(host=cred['email']['host'], port = cred['email']['port']) [Sat Mar 20 12:08:46.352471 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 253, in __init__ [Sat Mar 20 12:08:46.352602 2021] [wsgi:error] [pid 60338:tid 140166771328768] (code, msg) = self.connect(host, port) [Sat Mar 20 12:08:46.352613 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 339, in connect [Sat Mar 20 12:08:46.352761 2021] [wsgi:error] [pid 60338:tid 140166771328768] self.sock = self._get_socket(host, port, self.timeout) [Sat Mar 20 12:08:46.352772 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/smtplib.py", line 308, in _get_socket [Sat Mar 20 12:08:46.352977 2021] [wsgi:error] [pid 60338:tid 140166771328768] return socket.create_connection((host, port), timeout, [Sat Mar 20 12:08:46.352991 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 808, in create_connection [Sat Mar 20 12:08:46.353275 2021] [wsgi:error] [pid 60338:tid 140166771328768] raise err [Sat Mar 20 12:08:46.353286 2021] [wsgi:error] [pid 60338:tid 140166771328768] File "/usr/lib/python3.8/socket.py", line 796, in create_connection [Sat Mar 20 12:08:46.353564 2021] [wsgi:error] [pid 60338:tid 140166771328768] sock.connect(sa) [Sat Mar 20 12:08:46.353585 2021] [wsgi:error] [pid 60338:tid 140166771328768] TimeoutError: [Errno 110] Connection timed out [Sat Mar 20 12:09:46.791958 2021] [authz_core:error] [pid 60360:tid 140166853302016] [client 203.183.42.106:47210] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-login.php [Sat Mar 20 12:09:47.594817 2021] [authz_core:error] [pid 60339:tid 140166852237056] [client 159.203.82.176:56366] AH01630: client denied by server configuration: /etc/wsgi-port-80/htdocs/wp-login.php [Sat Mar 20 12:10:05.577965 2021] [wsgi:error] [pid 60338:tid 140166781970176] [remote 91.134.201.164:36460] Not Found: /wp-login.php [Sat Mar 20 12:10:41.763227 2021] [wsgi:error] [pid 60338:tid 140166815540992] [remote 67.23.100.84:19350] Not Found: /wp-login.php

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/8ab5d1ed-4fc0-4228-a1d4-87af60eb24d8n%40googlegroups.com.

Jian Wu

unread,
Mar 20, 2021, 6:22:45 PMMar 20
to modwsgi
Yes you are absolutely right. I am surprised because things worked fine in my personal laptop and I am deploying my Django using the Ubuntu provided by Linode. I will create a ticket with their support to find out what it takes to configure the server properly. Thanks a lot for pointing this out!
Reply all
Reply to author
Forward
0 new messages