500 Internal Server Error. Unable to access box.jackbaldry.co.uk

Hi,

Yesterday I noticed that I am unable to connect to the Admin Control Panel at box.jackbaldry.co.uk/admin.
I am able to access /mail, /files/*, and admin/munin but /admin results in 500 Internal Server Error.

I have tried apt-get update followed by apt-get upgrade and a reboot. I have also ran mailinabox and rebooted and neither resolved the issue.

Output from tail /var/log/syslog when loading box.jackbaldry.co.uk/admin:

Oct 16 11:37:11 box dovecot: imap-login: Login: user=<mail@jackbaldry.co.uk>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11139, TLS, session=<m/nNYDYiKwB/AAAB
Oct 16 11:37:11 box dovecot: imap(mail@jackbaldry.co.uk): Disconnected: Logged out in=127 out=1018

Any ideas to troubleshoot and resolve this?
In the mean time, is there way to add aliases from just being logged into the box?

Longer syslog output here:

Oct 16 11:35:01 box CRON[10549]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
Oct 16 11:35:01 box CRON[10550]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then munin-run apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then munin-run apt update 7200 12 >/dev/null; fi)
Oct 16 11:35:03 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 173.245.59.41#53
Oct 16 11:35:03 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 173.245.58.51#53
Oct 16 11:35:03 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 198.41.222.173#53
Oct 16 11:35:03 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 173.245.58.51#53
Oct 16 11:35:04 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 173.245.59.41#53
Oct 16 11:35:04 box named[2550]: error (unexpected RCODE REFUSED) resolving '7.0.0.9.5.2.0.0.0.0.0.0.0.0.0.0.0.d.0.0.1.0.0.0.0.c.0.b.3.0.a.2.ip6.arpa/PTR/IN': 198.41.222.173#53
Oct 16 11:35:11 box dovecot: imap-login: Login: user=<[username]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=10987, TLS, session=<rtymWTYiIQB/AAAB>
Oct 16 11:35:11 box dovecot: imap([username]): Disconnected: Logged out in=127 out=1018
Oct 16 11:35:51 box postfix/anvil[10534]: statistics: max connection rate 1/60s for (smtp:103.230.32.160) at Oct 16 11:32:28
Oct 16 11:35:51 box postfix/anvil[10534]: statistics: max connection count 1 for (smtp:103.230.32.160) at Oct 16 11:32:28
Oct 16 11:35:51 box postfix/anvil[10534]: statistics: max cache size 1 at Oct 16 11:32:28
Oct 16 11:36:11 box dovecot: imap-login: Login: user=<[username]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11044, TLS, session=<8GI6XTYiJgB/AAAB>
Oct 16 11:36:11 box dovecot: imap([username]): Disconnected: Logged out in=127 out=1018
Oct 16 11:37:11 box dovecot: imap-login: Login: user=<[username]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11139, TLS, session=<m/nNYDYiKwB/AAAB>
Oct 16 11:37:11 box dovecot: imap([username]): Disconnected: Logged out in=127 out=1018
Oct 16 11:38:11 box dovecot: imap-login: Login: user=<[username]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11232, TLS, session=<FL9hZDYiLgB/AAAB>
Oct 16 11:38:11 box dovecot: imap([username]): Disconnected: Logged out in=127 out=1018
Oct 16 11:38:19 box kernel: [ 3752.365361] [UFW BLOCK] IN=eth0 OUT= MAC=04:01:6d:56:84:01:84:b5:9c:f9:f0:30:08:00 SRC=89.248.171.137 DST=178.62.106.234 LEN=40 TOS=0x00 PREC=0x00 TTL=249 ID=58537 PROTO=TCP SPT=50680 DPT=5666 WINDOW=1024 RES=0x00 SYN URGP=0 
Oct 16 11:39:01 box CRON[11313]: (root) CMD (  [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Oct 16 11:39:11 box dovecot: imap-login: Login: user=<[username]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=11346, TLS, session=<MBH2ZzYiLwB/AAAB>
Oct 16 11:39:11 box dovecot: imap([username]): Disconnected: Logged out in=127 out=1018

Hello,

Please try.

$ cd ~/mailinabox/
$ sudo service mailinabox stop
$ DEBUG=1 management/daemon.py 

Then visit the control panel in your web browser and see if anything is printed in the console.

(When done, CTRL+C the process in the console and run sudo service mailinabox start to put the admin panel back in the background, to the extent it’s working at all.)

is there way to add aliases from just being logged into the box?

Yes, run tools/mail.py.

1 Like