Status Checks can not work

It says: Something went wrong, sorry.

I can log in and log out. I can send and receive mails. But I can not check status.

Here’s some output:

root@box:~/mailinabox/management# ./status_checks.py 
rndc: connect failed: 127.0.0.1#953: connection refused
Traceback (most recent call last):
  File "./status_checks.py", line 633, in <module>
    run_checks(env, ConsoleOutput())
  File "./status_checks.py", line 22, in run_checks
    shell('check_call', ["/usr/sbin/rndc", "flush"])
  File "/root/mailinabox/management/utils.py", line 149, in shell
    ret = getattr(subprocess, method)(cmd_args, **kwargs)
  File "/usr/lib/python3.4/subprocess.py", line 557, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/rndc', 'flush']' returned non-zero exit status 1

root@box:~# rndc flush
rndc: connect failed: 127.0.0.1#953: connection refused

root@box:~# netstat -tunpa | grep nsd
tcp        0      0 216.189.149.179:53      0.0.0.0:*               LISTEN      8093/nsd        
tcp        0      0 127.0.0.1:8952          0.0.0.0:*               LISTEN      8093/nsd        
tcp6       0      0 ::1:53                  :::*                    LISTEN      8093/nsd        
tcp6       0      0 ::1:8952                :::*                    LISTEN      8093/nsd        
udp        0      0 216.189.149.179:53      0.0.0.0:*                           8093/nsd        
udp6       0      0 ::1:53                  :::*                                8093/nsd   

root@box:~# rndc flush -p 53
rndc: connect failed: 127.0.0.1#953: connection refused
root@box:~# rndc flush -p 8952
rndc: connect failed: 127.0.0.1#953: connection refused

bind9 isn’t running for some reason. Try:

sudo service bind9 restart

service bind9 restart doesn’t work. No message in /var/log/syslog.

I installed Mail-in-a-box on Openvz, ubuntu-14.04-x86_64-minimal. I doubt minimal version has some problems. Until i tried /usr/sbin/named -u bind -4 , haha, it works.

I can check system status now. Everything is okay. Thanks for your help.

By the way, minimal has no crontab pre-installed. So the auto backup can’t work. Users should install crontab themselves.

OpenVZ does something weird by disabling bind9. This has come up before. From Mail-in-a-Box’s perspective, an OpenVZ box is not a clean Ubuntu 14.04 machine.

Thanks for noting crontab isn’t installed. I’ll add it to Mail-in-a-Box.