Status check emails empty after upgrading to v0.16

Hello everyone,

I am having issues with MiAB. I deployed the package on a fresh Ubuntu 14.04 LTS KVM VPS when it was v0.15a. Everything was working absolutely fine.

Then 0.16 came and I decided to upgrade. The upgrade went well, but soon afterwards, I found that the nightly status checks were generating truncated emails.

Back in 0.15a, I used to get:

mailbox.technofaq.org – Previously:

:heavy_multiplication_x: Your box’s reverse DNS is currently radio.samizdatsounds.org, but
it should be mailbox.technofaq.org. Your ISP or cloud provider
will have instructions on setting up reverse DNS for your box.

mailbox.technofaq.org – Currently:

✓ Reverse DNS is set correctly at ISP. [198.91.88.112 ↦
mailbox.technofaq.org]

pranavsuri.com – Added

✓ Nameservers are set correctly at registrar.
[ns1.mailbox.technofaq.org; ns2.mailbox.technofaq.org]
✓ Domain’s email is directed to this domain. [pranavsuri.com ↦ 10
mailbox.technofaq.org]
{…}

Now I get:
System – Previously:

Any pointers as to how to debug this issue will be helpful.

I have tried re running the v0.16 setup multiple times and rebooting the VPS, but to no avail.

On the command line-

cd mailinabox
sudo management/status_checks.py

See if it outputs all of the checks.

Meanwhile I rolled back to v0.15a with:
cd mailinabox
git checkout v0.15a
setup/start.sh

My status check emails are working fine again. Here’s an output:
mailbox.technofaq.org – Previously:

:heavy_multiplication_x: Your box’s reverse DNS is currently radio.samizdatsounds.org, but
it should be mailbox.technofaq.org. Your ISP or cloud provider
will have instructions on setting up reverse DNS for your box.

mailbox.technofaq.org – Currently:

✓ Reverse DNS is set correctly at ISP. [198.91.88.112 ↦
mailbox.technofaq.org]

And, Josh, as you’ve requested, here is the output of status_checks.py. It is the same for both v0.15a and v0.16:

root@mailbox:~/mailinabox# management/status_checks.py

System

Traceback (most recent call last):
File “management/status_checks.py”, line 917, in
run_checks(False, env, ConsoleOutput(), pool)
File “management/status_checks.py”, line 25, in run_checks
if not run_services_checks(env, output, pool):
File “management/status_checks.py”, line 97, in run_services_checks
output.print_ok(“All system services are running.”)
File “management/status_checks.py”, line 859, in print_ok
self.print_block(message, first_line="\u2713 ")
File “management/status_checks.py”, line 868, in print_block
print(first_line, end=’’, file=self.buf)
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\u2713’ in position 0: ordinal not in range(128)

I had the same problem - was able to fix by adding:

PYTHONIOENCODING=utf-8

to /etc/environment

This should be fixed in the next update:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.