"mail_html" not in sys.module error

Description

This message is showing up in my TrueNAS Scale web GUI, but my system is able to send the test mail via Alerts > Email > Send Test Mail:

Problem/Justification

None

Impact

None

Activity

Show:

Bug Clerk February 10, 2022 at 12:08 PM

peter ge February 9, 2022 at 8:42 PM

What's your idea behind this?

Did you expect wrong permissions on any of the files?

peter ge February 9, 2022 at 5:13 PM

root@truenas[~]# ls -alR /tmp/mako
/tmp/mako:
total 0
drwxr-xr-x  4 root root  80 Jan  7 19:06 .
drwxrwxrwt 11 root root 420 Feb  9 18:06 ..
drwxr-xr-x  3 root root  80 Jan  7 19:06 templates
drwxr-xr-x  3 root root  60 Jan  2 15:23 usr

/tmp/mako/templates:
total 4
drwxr-xr-x 3 root root   80 Jan  7 19:06 .
drwxr-xr-x 4 root root   80 Jan  7 19:06 ..
drwxr-xr-x 2 root root   60 Jan  7 19:06 _pycache_
rw------ 1 root root 1121 Jan  7 19:06 mail.html.py

/tmp/mako/templates/_pycache_:
total 4
drwxr-xr-x 2 root root  60 Jan  7 19:06 .
drwxr-xr-x 3 root root  80 Jan  7 19:06 ..
rw------ 1 root root 987 Jan  7 19:06 mail.html.cpython-39.pyc

/tmp/mako/usr:
total 0
drwxr-xr-x 3 root root 60 Jan  2 15:23 .
drwxr-xr-x 4 root root 80 Jan  7 19:06 ..
drwxr-xr-x 3 root root 60 Jan  2 15:23 lib

/tmp/mako/usr/lib:
total 0
drwxr-xr-x 3 root root 60 Jan  2 15:23 .
drwxr-xr-x 3 root root 60 Jan  2 15:23 ..
drwxr-xr-x 3 root root 60 Jan  2 15:23 python3

/tmp/mako/usr/lib/python3:
total 0
drwxr-xr-x 3 root root 60 Jan  2 15:23 .
drwxr-xr-x 3 root root 60 Jan  2 15:23 ..
drwxr-xr-x 3 root root 60 Jan  2 15:23 dist-packages

/tmp/mako/usr/lib/python3/dist-packages:
total 0
drwxr-xr-x 3 root root 60 Jan  2 15:23 .
drwxr-xr-x 3 root root 60 Jan  2 15:23 ..
drwxr-xr-x 3 root root 60 Jan  2 15:23 middlewared

/tmp/mako/usr/lib/python3/dist-packages/middlewared:
total 0
drwxr-xr-x  3 root root  60 Jan  2 15:23 .
drwxr-xr-x  3 root root  60 Jan  2 15:23 ..
drwxr-xr-x 10 root root 260 Feb  5 11:33 etc_files

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files:
total 12
drwxr-xr-x 10 root root  260 Feb  5 11:33 .
drwxr-xr-x  3 root root   60 Jan  2 15:23 ..
drwxr-xr-x  2 root root  100 Jan  2 15:24 _pycache_
drwxr-xr-x  3 root root   60 Jan  2 15:25 cni
drwxr-xr-x  3 root root   80 Jan  7 19:04 cron.d
drwxr-xr-x  3 root root  140 Feb  6 14:26 default
drwxr-xr-x  3 root root   80 Feb  5 11:33 ganesha
rw------  1 root root 2618 Jan  2 15:24 group.mako.py
drwxr-xr-x  4 root root  180 Jan  2 15:25 local
rw------  1 root root 2878 Jan  2 15:24 master.passwd.mako.py
drwxr-xr-x  3 root root   80 Jan  2 15:25 security
rw------  1 root root 1783 Jan  2 15:24 shadow.mako.py
drwxr-xr-x  3 root root   60 Jan  2 15:24 systemd

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/_pycache_:
total 12
drwxr-xr-x  2 root root  100 Jan  2 15:24 .
drwxr-xr-x 10 root root  260 Feb  5 11:33 ..
rw------  1 root root 2147 Jan  2 15:24 group.mako.cpython-39.pyc
rw------  1 root root 1824 Jan  2 15:24 master.passwd.mako.cpython-39.pyc
rw------  1 root root 1437 Jan  2 15:24 shadow.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni:
total 0
drwxr-xr-x  3 root root  60 Jan  2 15:25 .
drwxr-xr-x 10 root root 260 Feb  5 11:33 ..
drwxr-xr-x  4 root root  80 Jan  2 15:25 net.d

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni/net.d:
total 0
drwxr-xr-x 4 root root 80 Jan  2 15:25 .
drwxr-xr-x 3 root root 60 Jan  2 15:25 ..
drwxr-xr-x 3 root root 80 Jan  2 15:25 kube-router.d
drwxr-xr-x 3 root root 80 Jan  2 15:25 multus.d

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni/net.d/kube-router.d:
total 4
drwxr-xr-x 3 root root   80 Jan  2 15:25 .
drwxr-xr-x 4 root root   80 Jan  2 15:25 ..
drwxr-xr-x 2 root root   60 Jan  2 15:25 _pycache_
rw------ 1 root root 2443 Jan  2 15:25 kubeconfig.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni/net.d/kube-router.d/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  2 15:25 .
drwxr-xr-x 3 root root   80 Jan  2 15:25 ..
rw------ 1 root root 2007 Jan  2 15:25 kubeconfig.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni/net.d/multus.d:
total 4
drwxr-xr-x 3 root root   80 Jan  2 15:25 .
drwxr-xr-x 4 root root   80 Jan  2 15:25 ..
drwxr-xr-x 2 root root   60 Jan  2 15:25 _pycache_
rw------ 1 root root 2300 Jan  2 15:25 multus.kubeconfig.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cni/net.d/multus.d/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  2 15:25 .
drwxr-xr-x 3 root root   80 Jan  2 15:25 ..
rw------ 1 root root 1928 Jan  2 15:25 multus.kubeconfig.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cron.d:
total 8
drwxr-xr-x  3 root root   80 Jan  7 19:04 .
drwxr-xr-x 10 root root  260 Feb  5 11:33 ..
drwxr-xr-x  2 root root   60 Jan  7 19:04 _pycache_
rw------  1 root root 6140 Jan  7 19:04 middlewared.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/cron.d/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  7 19:04 .
drwxr-xr-x 3 root root   80 Jan  7 19:04 ..
rw------ 1 root root 3709 Jan  7 19:04 middlewared.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/default:
total 16
drwxr-xr-x  3 root root  140 Feb  6 14:26 .
drwxr-xr-x 10 root root  260 Feb  5 11:33 ..
drwxr-xr-x  2 root root  120 Feb  6 14:26 _pycache_
rw------  1 root root 2366 Feb  2 21:52 keyboard.mako.py
rw------  1 root root 1549 Feb  5 11:33 nfs-common.mako.py
rw------  1 root root 2451 Jan  2 15:24 rrdcached.mako.py
rw------  1 root root 1818 Feb  6 14:26 smartmontools.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/default/_pycache_:
total 16
drwxr-xr-x 2 root root  120 Feb  6 14:26 .
drwxr-xr-x 3 root root  140 Feb  6 14:26 ..
rw------ 1 root root 1758 Feb  2 21:52 keyboard.mako.cpython-39.pyc
rw------ 1 root root 1344 Feb  5 11:33 nfs-common.mako.cpython-39.pyc
rw------ 1 root root 1933 Jan  2 15:24 rrdcached.mako.cpython-39.pyc
rw------ 1 root root 1674 Feb  6 14:26 smartmontools.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/ganesha:
total 16
drwxr-xr-x  3 root root    80 Feb  5 11:33 .
drwxr-xr-x 10 root root   260 Feb  5 11:33 ..
drwxr-xr-x  2 root root    60 Feb  5 11:33 _pycache_
rw------  1 root root 13316 Feb  5 11:33 ganesha.conf.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/ganesha/_pycache_:
total 8
drwxr-xr-x 2 root root   60 Feb  5 11:33 .
drwxr-xr-x 3 root root   80 Feb  5 11:33 ..
rw------ 1 root root 6113 Feb  5 11:33 ganesha.conf.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/local:
total 32
drwxr-xr-x  4 root root  180 Jan  2 15:25 .
drwxr-xr-x 10 root root  260 Feb  5 11:33 ..
drwxr-xr-x  2 root root  140 Jan  2 15:25 _pycache_
drwxr-xr-x  3 root root   80 Jan  2 15:24 avahi
rw------  1 root root 8959 Jan  2 15:23 collectd.conf.mako.py
rw------  1 root root 2047 Jan  2 15:25 smb4.conf.mako.py
rw------  1 root root 7259 Jan  2 15:25 smb4_share.conf.mako.py
rw------  1 root root 2227 Jan  2 15:23 smbusername.map.mako.py
rw------  1 root root 1858 Jan  2 15:24 wsdd.conf.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/local/_pycache_:
total 28
drwxr-xr-x 2 root root  140 Jan  2 15:25 .
drwxr-xr-x 4 root root  180 Jan  2 15:25 ..
rw------ 1 root root 5753 Jan  2 15:23 collectd.conf.mako.cpython-39.pyc
rw------ 1 root root 1672 Jan  2 15:25 smb4.conf.mako.cpython-39.pyc
rw------ 1 root root 4149 Jan  2 15:25 smb4_share.conf.mako.cpython-39.pyc
rw------ 1 root root 1549 Jan  2 15:23 smbusername.map.mako.cpython-39.pyc
rw------ 1 root root 1500 Jan  2 15:24 wsdd.conf.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/local/avahi:
total 4
drwxr-xr-x 3 root root   80 Jan  2 15:24 .
drwxr-xr-x 4 root root  180 Jan  2 15:25 ..
drwxr-xr-x 2 root root   60 Jan  2 15:24 _pycache_
rw------ 1 root root 3645 Jan  2 15:24 avahi-daemon.conf.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/local/avahi/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  2 15:24 .
drwxr-xr-x 3 root root   80 Jan  2 15:24 ..
rw------ 1 root root 2770 Jan  2 15:24 avahi-daemon.conf.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/security:
total 4
drwxr-xr-x  3 root root   80 Jan  2 15:25 .
drwxr-xr-x 10 root root  260 Feb  5 11:33 ..
drwxr-xr-x  2 root root   60 Jan  2 15:25 _pycache_
rw------  1 root root 1824 Jan  2 15:25 pam_winbind.conf.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/security/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  2 15:25 .
drwxr-xr-x 3 root root   80 Jan  2 15:25 ..
rw------ 1 root root 1468 Jan  2 15:25 pam_winbind.conf.mako.cpython-39.pyc

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/systemd:
total 0
drwxr-xr-x  3 root root  60 Jan  2 15:24 .
drwxr-xr-x 10 root root 260 Feb  5 11:33 ..
drwxr-xr-x  3 root root  60 Jan  2 15:24 system

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/systemd/system:
total 0
drwxr-xr-x 3 root root 60 Jan  2 15:24 .
drwxr-xr-x 3 root root 60 Jan  2 15:24 ..
drwxr-xr-x 3 root root 80 Jan  2 15:24 docker.service.d

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/systemd/system/docker.service.d:
total 4
drwxr-xr-x 3 root root   80 Jan  2 15:24 .
drwxr-xr-x 3 root root   60 Jan  2 15:24 ..
drwxr-xr-x 2 root root   60 Jan  2 15:24 _pycache_
rw------ 1 root root 1833 Jan  2 15:24 http-proxy.conf.mako.py

/tmp/mako/usr/lib/python3/dist-packages/middlewared/etc_files/systemd/system/docker.service.d/_pycache_:
total 4
drwxr-xr-x 2 root root   60 Jan  2 15:24 .
drwxr-xr-x 3 root root   80 Jan  2 15:24 ..
rw------ 1 root root 1524 Jan  2 15:24 http-proxy.conf.mako.cpython-39.pyc

Vladimir Vinogradenko February 9, 2022 at 12:43 PM

please post the output of

ls -alR /tmp/mako

peter ge February 8, 2022 at 6:18 PM

Another Python Error showed up...

Complete

Details

Assignee

Reporter

Labels

Impact

Medium

Time remaining

0m

Affects versions

Priority

Katalon Platform

Created February 7, 2022 at 3:33 PM
Updated July 1, 2022 at 5:54 PM
Resolved February 10, 2022 at 7:16 PM